diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2014-08-27 07:39:48 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2014-08-27 07:39:48 -0700 |
commit | 29a9f53e857c5d55df852d0a5d5c41a9247c16a2 (patch) | |
tree | af3cf46d6e4fbfca19597e7966eb0e027d6896d8 /ld | |
parent | 2536ee9d03cb7c4af97bf4b29429bef3c30652c2 (diff) | |
download | gdb-29a9f53e857c5d55df852d0a5d5c41a9247c16a2.zip gdb-29a9f53e857c5d55df852d0a5d5c41a9247c16a2.tar.gz gdb-29a9f53e857c5d55df852d0a5d5c41a9247c16a2.tar.bz2 |
Don't attach dynamic sections to input from ld --just-symbols
bfd/
PR ld/17313
* elflink.c (elf_link_add_object_symbols): Don't attach dynamic
sections to input from ld --just-symbols.
2014-08-27 H.J. Lu <hongjiu.lu@intel.com>
PR ld/17313
* ld-i386/i386.exp (i386tests): Add tests for PR ld/17313.
* ld-x86-64/x86-64.exp (x86_64tests): Likewise.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/i386.exp | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/x86-64.exp | 4 |
3 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 6f5ff5e..a7bde81 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2014-08-27 H.J. Lu <hongjiu.lu@intel.com> + + PR ld/17313 + * ld-i386/i386.exp (i386tests): Add tests for PR ld/17313. + * ld-x86-64/x86-64.exp (x86_64tests): Likewise. + 2014-08-26 Jiong Wang <jiong.wang@arm.com> * ld-aarch64/copy-relocs-so.s: New test file. diff --git a/ld/testsuite/ld-i386/i386.exp b/ld/testsuite/ld-i386/i386.exp index 4d22182..875c816 100644 --- a/ld/testsuite/ld-i386/i386.exp +++ b/ld/testsuite/ld-i386/i386.exp @@ -183,6 +183,10 @@ set i386tests { {"TLS IE->LE transition" "-melf_i386" "" "--32" {tlsie1.s} {{objdump -dwr tlsie1.dd}} "tlsie1"} + {"PR ld/17313 (1)" "-melf_i386" "" + "--32" {zero.s} {} ""} + {"PR ld/17313 (2)" "-melf_i386 -shared --just-symbols=tmpdir/zero.o" "" + "--32" {lea1.s} {} "libpr17313.so"} } # So as to avoid rewriting every last test case here in a nacl variant, diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp index f6c392b..a9af367 100644 --- a/ld/testsuite/ld-x86-64/x86-64.exp +++ b/ld/testsuite/ld-x86-64/x86-64.exp @@ -136,6 +136,10 @@ set x86_64tests { {"build 32-bit object with 33 locals" "-melf_x86_64 -e 0" "" "--32" {32bit.s} {{ ld incompatible.l }} "dummy" } {"build 64-bit object" "-melf_x86_64 -e 0 --defsym foo=1" "" "--64" {64bit.s} {} "dummy" } {"link mixed objects" "-melf_x86_64 -e 0 tmpdir/32bit.o tmpdir/64bit.o" "" "" {} { { ld incompatible.l } } "mixed"} + {"PR ld/17313 (1)" "-melf_x86_64" "" + "--64" {dummy.s} {} ""} + {"PR ld/17313 (2)" "-melf_x86_64 -shared --just-symbols=tmpdir/dummy.o" "" + "--64" {lea1.s} {} "libpr17313.so"} } # So as to avoid rewriting every last test case here in a nacl variant, |