bfd/
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 23 Aug 2007 16:13:37 +0000 (16:13 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 23 Aug 2007 16:13:37 +0000 (16:13 +0000)
commit142411caf2c5e5625b3870049219e1c52e2ffaec
treeab2942b407f292abe049b2f6e1c532a233bba446
parentf467aa98dd0bed5ff38471789d6134b9d3bd75cf
bfd/

2007-08-23  H.J. Lu  <hongjiu.lu@intel.com>

* elf32-i386.c: Include "bfd_stdint.h".
(elf_i386_rtype_to_howto): New function.
(elf_i386_info_to_howto_rel): Use it.
(x86_64_opcode16): New union type.
(elf_i386_check_tls_transition): New function.
(elf_i386_tls_transition): Updated to check transition and
issue an error if a transition isn't supported.
(elf_i386_check_relocs): Return FALSE if
elf_i386_tls_transition returns FALSE.
(elf_i386_gc_sweep_hook): Likewise.
(elf_i386_relocate_section): Likewise. Remove BFD_ASSERT
on TLS transitions.

* elf64-x86-64.c: Include "bfd_stdint.h".
(x86_64_opcode16): New union type.
(x86_64_opcode32): Likewise.
(elf64_x86_64_check_tls_transition): New function.
(elf64_x86_64_tls_transition): Updated to check transition and
issue an error if a transition isn't supported.
(elf64_x86_64_check_relocs): Return FALSE if
elf64_x86_64_tls_transition returns FALSE.
(elf64_x86_64_gc_sweep_hook): Likewise.
(elf64_x86_64_relocate_section): Likewise. Remove BFD_ASSERT
on TLS transitions.

ld/testsuite/

2007-08-23  H.J. Lu  <hongjiu.lu@intel.com>

* ld-i386/tlsbinpic.s: Add a new GD -> IE test.

* ld-i386/tlsgd1.s: Add a new GD -> LE test.

* ld-i386/tlsbin.dd: Updated.
* ld-i386/tlsbin.rd: Likewise.
* ld-i386/tlsgd1.dd: Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-i386/tlsbin.dd
ld/testsuite/ld-i386/tlsbin.rd
ld/testsuite/ld-i386/tlsbinpic.s
ld/testsuite/ld-i386/tlsgd1.dd
ld/testsuite/ld-i386/tlsgd1.s