Allow building x32 DSO from x86-64 object file.
commitf89df307089850d80aacea36f871a2fa05e3771f
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 9 Jun 2011 05:51:09 +0000 (9 05:51 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 9 Jun 2011 05:51:09 +0000 (9 05:51 +0000)
treeb39e19bda44314c0cee36d7c01095ad359ff6d7e
parent49ff87ce145804dbda77bc86e3e3f20e68f15d9c
Allow building x32 DSO from x86-64 object file.

bfd/

2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>

* elf64-x86-64.c (elf_x86_64_check_relocs): Allow R_X86_64_64
relocations in SEC_DEBUGGING sections when building shared
libraries.

ld/testsuite/

2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>

* ld-x86-64/simple.c: New.
* ld-x86-64/x86-64-x32.rd: Likewise.

* ld-x86-64/x86-64.exp: Check building x32 DSO from x86-64
object file.
bfd/ChangeLog
bfd/elf64-x86-64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-x86-64/simple.c [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64-x32.rd [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp