Browse Source
Recent BPF patch removed and renamed the list of relocations based on the limitations of BPF instruction set. This patch is a correction to the tests.users/aburgess/try-core-file-pid0
13 changed files with 4 additions and 100 deletions
@ -1,5 +0,0 @@ |
|||
mov %r1,1 |
|||
mov %r2,2 |
|||
mov %r3,3 |
|||
ja bar |
|||
exit |
|||
@ -1,22 +0,0 @@ |
|||
#as: --EL |
|||
#source: baz.s |
|||
#source: bar.s |
|||
#objdump: -dr |
|||
#ld: -EL |
|||
#name: jump with disp16 reloc |
|||
|
|||
.*: +file format .*bpf.* |
|||
|
|||
Disassembly of section .text: |
|||
|
|||
[0-9a-f]+ <.*>: |
|||
*[0-9a-f]+: b7 01 00 00 01 00 00 00 mov %r1,1 |
|||
*[0-9a-f]+: b7 02 00 00 02 00 00 00 mov %r2,2 |
|||
*[0-9a-f]+: b7 03 00 00 03 00 00 00 mov %r3,3 |
|||
*[0-9a-f]+: 05 00 01 00 00 00 00 00 ja 1 |
|||
*[0-9a-f]+: 95 00 00 00 00 00 00 00 exit |
|||
|
|||
[0-9a-f]+ <bar>: |
|||
*[0-9a-f]+: bf 21 00 00 00 00 00 00 mov %r1,%r2 |
|||
*[0-9a-f]+: bf 13 00 00 00 00 00 00 mov %r3,%r1 |
|||
*[0-9a-f]+: 95 00 00 00 00 00 00 00 exit |
|||
@ -1,19 +0,0 @@ |
|||
#as: --EB |
|||
#source: reloc-insn32.s |
|||
#objdump: -d |
|||
#ld: -Tdata=0xdabeef -EB |
|||
#name: reloc INSN32 BE |
|||
|
|||
.*: +file format .*bpfbe |
|||
|
|||
Disassembly of section .text: |
|||
|
|||
[0-9a-f]+ <main>: |
|||
*[0-9a-f]+: b7 10 00 00 00 da be f3[ ]*mov %r1,0xdabef3 |
|||
*[0-9a-f]+: 16 10 00 02 00 da be f3[ ]*jeq32 %r1,0xdabef3,2 |
|||
*[0-9a-f]+: 38 00 00 00 00 da be ff[ ]*ldabsdw 0xdabeff |
|||
*[0-9a-f]+: 95 00 00 00 00 00 00 00[ ]*exit |
|||
|
|||
[0-9a-f]+ <baz>: |
|||
*[0-9a-f]+: 07 10 00 00 00 da be ef[ ]*add %r1,0xdabeef |
|||
*[0-9a-f]+: 62 20 00 08 00 da be f7[ ]*stw \[%r2\+8\],0xdabef7 |
|||
@ -1,19 +0,0 @@ |
|||
#as: --EL |
|||
#source: reloc-insn32.s |
|||
#objdump: -d |
|||
#ld: -Tdata=0xdabeef -EL |
|||
#name: reloc INSN32 LE |
|||
|
|||
.*: +file format .*bpfle |
|||
|
|||
Disassembly of section .text: |
|||
|
|||
[0-9a-f]+ <main>: |
|||
*[0-9a-f]+: b7 01 00 00 f3 be da 00[ ]*mov %r1,0xdabef3 |
|||
*[0-9a-f]+: 16 01 02 00 f3 be da 00[ ]*jeq32 %r1,0xdabef3,2 |
|||
*[0-9a-f]+: 38 00 00 00 ff be da 00[ ]*ldabsdw 0xdabeff |
|||
*[0-9a-f]+: 95 00 00 00 00 00 00 00[ ]*exit |
|||
|
|||
[0-9a-f]+ <baz>: |
|||
*[0-9a-f]+: 07 01 00 00 ef be da 00[ ]*add %r1,0xdabeef |
|||
*[0-9a-f]+: 62 02 08 00 f7 be da 00[ ]*stw \[%r2\+8\],0xdabef7 |
|||
@ -1,20 +0,0 @@ |
|||
.data |
|||
foo: |
|||
.string "foo" |
|||
bar: |
|||
.string "bar" |
|||
d64: |
|||
.dword bar |
|||
d32: |
|||
.word d64 |
|||
|
|||
.text |
|||
main: |
|||
mov %r1, bar |
|||
jeq32 %r1, bar, baz |
|||
ldabsdw d32 |
|||
exit |
|||
|
|||
baz: |
|||
add %r1, foo |
|||
stw [%r2 + 8], d64 |
|||
Loading…
Reference in new issue