OSDN Git Service

Replace IRELATIVE relocations with RELATIVE in .rel.dyn.
authorhjl <hjl>
Fri, 21 Oct 2011 19:37:13 +0000 (19:37 +0000)
committerhjl <hjl>
Fri, 21 Oct 2011 19:37:13 +0000 (19:37 +0000)
commita946169ff0210a4b3c92cfbe77a999360d0b0858
tree0abaff6dfa837fd3c182eab5decf3bbe3473953b
parent2ffc72269ddf1bb96e706706ce3360cc1507f13b
Replace IRELATIVE relocations with RELATIVE in .rel.dyn.

bfd/

2011-10-21  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13302
* elf32-i386.c (elf_i386_relocate_section): Replace
R_386_IRELATIVE with R_386_RELATIVE.

* elf64-x86-64.c (elf_x86_64_relocate_section): Replace
R_X86_64_IRELATIVE with R_X86_64_RELATIVE.

ld/testsuite/

2011-10-21  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13302
* ld-i386/i386.exp: Run pr13302.

* ld-i386/pr13302.d: New.
* ld-i386/pr13302.s: Likewise.

* ld-x86-64/pr13082-5b.d: Updated.
* ld-x86-64/pr13082-6a.d: Likewise.
* ld-x86-64/pr13082-6b.d: Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/pr13302.d [new file with mode: 0644]
ld/testsuite/ld-i386/pr13302.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr13082-5b.d
ld/testsuite/ld-x86-64/pr13082-6a.d
ld/testsuite/ld-x86-64/pr13082-6b.d