diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2007-04-12 19:26:09 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2007-04-12 19:26:09 +0000 |
commit | 9e3313aecd599cca275c602250d928cc6755177b (patch) | |
tree | 3e6cb207cff0dbdb1c2669cef335c3894d41bdb9 /ld | |
parent | 1aa9ef630cd7777c24e5d1592c54fbeffad22fd8 (diff) | |
download | gdb-9e3313aecd599cca275c602250d928cc6755177b.zip gdb-9e3313aecd599cca275c602250d928cc6755177b.tar.gz gdb-9e3313aecd599cca275c602250d928cc6755177b.tar.bz2 |
bfd/
* elfxx-mips.c (mips_elf_calculate_relocation): Set DT_TEXTREL
when creating a __GOTT_BASE__ or __GOTT_INDEX__ relocation
in a read-only section.
(_bfd_mips_elf_check_relocs): Likewise.
ld/testsuite/
* ld-mips-elf/vxworks1-lib.td: New test.
* ld-mips-elf/mips-elf.exp: Run it.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/mips-elf.exp | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/vxworks1-lib.td | 3 |
3 files changed, 9 insertions, 1 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index bea757e..da49ab7 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-04-12 Richard Sandiford <richard@codesourcery.com> + + * ld-mips-elf/vxworks1-lib.td: New test. + * ld-mips-elf/mips-elf.exp: Run it. + 2007-04-05 H.J. Lu <hongjiu.lu@intel.com> PR ld/4304 diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp index 5bb5c38..d022c8d 100644 --- a/ld/testsuite/ld-mips-elf/mips-elf.exp +++ b/ld/testsuite/ld-mips-elf/mips-elf.exp @@ -21,7 +21,7 @@ if {[istarget "mips*-*-vxworks"]} { {"VxWorks shared library test 1" "-shared -Tvxworks1.ld" "-mips2" {vxworks1-lib.s} {{readelf --relocs vxworks1-lib.rd} {objdump -dr vxworks1-lib.dd} - {readelf --symbols vxworks1-lib.nd}} + {readelf --symbols vxworks1-lib.nd} {readelf -d vxworks1-lib.td}} "libvxworks1.so"} {"VxWorks executable test 1 (dynamic)" \ "tmpdir/libvxworks1.so -Tvxworks1.ld -q --force-dynamic" diff --git a/ld/testsuite/ld-mips-elf/vxworks1-lib.td b/ld/testsuite/ld-mips-elf/vxworks1-lib.td new file mode 100644 index 0000000..9f223e3 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/vxworks1-lib.td @@ -0,0 +1,3 @@ +#... + 0x0+16 \(TEXTREL\) +0x0 +#pass |