diff options
Diffstat (limited to 'ld/testsuite/ld-i386')
-rw-r--r-- | ld/testsuite/ld-i386/i386.exp | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/pr19645.d | 13 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/pr19645.s | 6 |
3 files changed, 20 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/i386.exp b/ld/testsuite/ld-i386/i386.exp index ab8f017..5ddf045 100644 --- a/ld/testsuite/ld-i386/i386.exp +++ b/ld/testsuite/ld-i386/i386.exp @@ -349,6 +349,7 @@ run_dump_test "pr19636-4a" run_dump_test "pr19636-4b" run_dump_test "pr19636-4c" run_dump_test "pr19636-4d" +run_dump_test "pr19645" if { !([istarget "i?86-*-linux*"] || [istarget "i?86-*-gnu*"] diff --git a/ld/testsuite/ld-i386/pr19645.d b/ld/testsuite/ld-i386/pr19645.d new file mode 100644 index 0000000..10b40b8 --- /dev/null +++ b/ld/testsuite/ld-i386/pr19645.d @@ -0,0 +1,13 @@ +#as: --32 --elf-stt-common=yes +#ld: -shared -Bsymbolic-functions -melf_i386 +#readelf: -r --wide --dyn-syms + +Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 1 entries: + +Offset +Info +Type +Sym. Value +Symbol's Name +[0-9a-f]+ +[0-9a-f]+ +R_386_GLOB_DAT +[0-9a-f]+ +foobar + +Symbol table '.dynsym' contains [0-9]+ entries: + Num: Value Size Type Bind Vis Ndx Name +#... + +[0-9]+: +[0-9a-f]+ +30 +OBJECT +GLOBAL +DEFAULT +[0-9]+ foobar +#pass diff --git a/ld/testsuite/ld-i386/pr19645.s b/ld/testsuite/ld-i386/pr19645.s new file mode 100644 index 0000000..5dadebe --- /dev/null +++ b/ld/testsuite/ld-i386/pr19645.s @@ -0,0 +1,6 @@ + .text + .global bar + .type bar,"function" +bar: + movl foobar@GOT(%ebx), %eax + .comm foobar,30,4 |