old-cross-binutils/gas/config
Alexandre Oliva 67a4f2b710 include/elf/ChangeLog:
Introduce TLS descriptors for i386 and x86_64.
* common.h (DT_TLSDESC_GOT, DT_TLSDESC_PLT): New.
* i386.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL, R_386_TLS_DESC):
New.
* x86-64.h (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
R_X86_64_TLSDESC): New.
bfd/ChangeLog:
Introduce TLS descriptors for i386 and x86_64.
* reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
* libbfd.h, bfd-in2.h: Rebuilt.
* elf32-i386.c (elf_howto_table): New relocations.
(R_386_tls): Adjust.
(elf_i386_reloc_type_lookup): Map new relocations.
(GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
(GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
(struct elf_i386_link_hash_entry): Add tlsdesc_got field.
(struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
(elf_i386_local_tlsdesc_gotent): New macro.
(struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
(elf_i386_compute_jump_table_size): New macro.
(link_hash_newfunc): Initialize tlsdesc_got.
(elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
(elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
R_386_TLS_DESC_CALL.
(elf_i386_check_relocs): Likewise.  Allocate space for
local_tlsdesc_gotent.
(elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
R_386_TLS_DESC_CALL.
(allocate_dynrelocs): Count function PLT relocations.  Reserve
space for TLS descriptors and relocations.
(elf_i386_size_dynamic_sections): Reserve space for TLS
descriptors and relocations.  Set up sgotplt_jump_table_size.
Don't zero reloc_count in srelplt.
(elf_i386_always_size_sections): New.  Set up _TLS_MODULE_BASE_.
(elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
R_386_TLS_DESC_CALL.
(elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
(elf_backend_always_size_sections): Define.
* elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
(R_X86_64_standard): Adjust.
(x86_64_reloc_map): Map new relocs.
(elf64_x86_64_rtype_to_howto): New, split out of...
(elf64_x86_64_info_to_howto): ... this function, and...
(elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
(GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
(GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
(struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
(struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
(elf64_x86_64_local_tlsdesc_gotent): New macro.
(struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
tlsdesc_got and sgotplt_jump_table_size fields.
(elf64_x86_64_compute_jump_table_size): New macro.
(link_hash_newfunc): Initialize tlsdesc_got.
(elf64_x86_64_link_hash_table_create): Initialize new fields.
(elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
R_X86_64_TLSDESC_CALL.
(elf64_x86_64_check_relocs): Likewise.  Allocate space for
local_tlsdesc_gotent.
(elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
R_X86_64_TLSDESC_CALL.
(allocate_dynrelocs): Count function PLT relocations.  Reserve
space for TLS descriptors and relocations.
(elf64_x86_64_size_dynamic_sections): Reserve space for TLS
descriptors and relocations.  Set up sgotplt_jump_table_size,
tlsdesc_plt and tlsdesc_got.  Make room for them.  Don't zero
reloc_count in srelplt.  Add dynamic entries for DT_TLSDESC_PLT
and DT_TLSDESC_GOT.
(elf64_x86_64_always_size_sections): New.  Set up
_TLS_MODULE_BASE_.
(elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
R_386_TLS_DESC_CALL.
(elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
(elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
DT_TLSDESC_GOT.  Set up TLS descriptor lazy resolver PLT entry.
(elf_backend_always_size_sections): Define.
binutils/ChangeLog:
Introduce TLS descriptors for i386 and x86_64.
* readelf.c (get_dynamic_type): Handle DT_TLSDESC_GOT and
DT_TLSDESC_PLT.
gas/ChangeLog:
Introduce TLS descriptors for i386 and x86_64.
* config/tc-i386.c (tc_i386_fix_adjustable): Handle
BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC_CALL,
BFD_RELOC_X86_64_GOTPC32_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL.
(optimize_disp): Emit fix up for BFD_RELOC_386_TLS_DESC_CALL and
BFD_RELOC_X86_64_TLSDESC_CALL immediately, and clear the
displacement bits.
(build_modrm_byte): Set up zero modrm for TLS desc calls.
(lex_got): Handle @tlsdesc and @tlscall.
(md_apply_fix, tc_gen_reloc): Handle the new relocations.
ld/testsuite/ChangeLog:
Introduce TLS descriptors for i386 and x86_64.
* ld-i386/i386.exp: Run on x86_64-*-linux* and amd64-*-linux*.
Add new tests.
* ld-i386/pcrel16.d: Add -melf_i386.
* ld-i386/pcrel8.d: Likewise.
* ld-i386/tlsbindesc.dd: New.
* ld-i386/tlsbindesc.rd: New.
* ld-i386/tlsbindesc.s: New.
* ld-i386/tlsbindesc.sd: New.
* ld-i386/tlsbindesc.td: New.
* ld-i386/tlsdesc.dd: New.
* ld-i386/tlsdesc.rd: New.
* ld-i386/tlsdesc.s: New.
* ld-i386/tlsdesc.sd: New.
* ld-i386/tlsdesc.td: New.
* ld-i386/tlsgdesc.dd: New.
* ld-i386/tlsgdesc.rd: New.
* ld-i386/tlsgdesc.s: New.
* ld-x86-64/x86-64.exp: Run new tests.
* ld-x86-64/tlsbindesc.dd: New.
* ld-x86-64/tlsbindesc.rd: New.
* ld-x86-64/tlsbindesc.s: New.
* ld-x86-64/tlsbindesc.sd: New.
* ld-x86-64/tlsbindesc.td: New.
* ld-x86-64/tlsdesc.dd: New.
* ld-x86-64/tlsdesc.pd: New.
* ld-x86-64/tlsdesc.rd: New.
* ld-x86-64/tlsdesc.s: New.
* ld-x86-64/tlsdesc.sd: New.
* ld-x86-64/tlsdesc.td: New.
* ld-x86-64/tlsgdesc.dd: New.
* ld-x86-64/tlsgdesc.rd: New.
* ld-x86-64/tlsgdesc.s: New.
2006-01-18 21:07:51 +00:00
..
aout_gnu.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
atof-ieee.c Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
atof-vax.c Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
bfin-aux.h * Makefile.am: Bfin support. 2005-09-30 15:05:07 +00:00
bfin-defs.h * config/bfin-defs.h (IS_BREG, IS_LREG): New macros. 2005-11-18 14:21:29 +00:00
bfin-lex.l bfd/ 2005-10-24 16:31:22 +00:00
bfin-parse.y * config/bfin-defs.h (IS_BREG, IS_LREG): New macros. 2005-11-18 14:21:29 +00:00
e-crisaout.c
e-criself.c
e-i386aout.c
e-i386coff.c
e-i386elf.c
e-mipsecoff.c
e-mipself.c
itbl-mips.h Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
m68k-parse.h * config/m68k-parse.h: Use ISO C90. 2005-06-23 11:40:29 +00:00
m68k-parse.y * config/m68k-parse.h: Use ISO C90. 2005-06-23 11:40:29 +00:00
obj-aout.c * README-vms: Delete. 2005-08-11 01:25:29 +00:00
obj-aout.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
obj-coff.c PR binutils/1568 2005-11-07 17:57:00 +00:00
obj-coff.h gas/ 2005-10-27 07:40:07 +00:00
obj-ecoff.c Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
obj-ecoff.h Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
obj-elf.c * dwarf2dbg.c (struct line_entry): Replace frag and frag_ofs 2005-09-20 18:24:48 +00:00
obj-elf.h * dwarf2dbg.c (struct line_entry): Replace frag and frag_ofs 2005-09-20 18:24:48 +00:00
obj-evax.c Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
obj-evax.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
obj-ieee.c Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
obj-ieee.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
obj-multi.c
obj-multi.h Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
obj-som.c Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
obj-som.h Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
tc-alpha.c * config/tc-ppc.c (ppc_pe_comm): Set bfd_com_section segment. 2005-11-16 01:49:48 +00:00
tc-alpha.h gas: 2005-06-07 17:54:22 +00:00
tc-arc.c This adjusts equate handling by 2005-10-11 11:16:17 +00:00
tc-arc.h gas: 2005-06-07 17:54:22 +00:00
tc-arm.c PR 1300 2005-12-27 11:55:37 +00:00
tc-arm.h 2005-10-08 Paul Brook <paul@codesourcery.com> 2005-10-08 17:07:19 +00:00
tc-avr.c Fixes for building on 64-bit hosts: 2006-01-11 17:39:50 +00:00
tc-avr.h * config/tc-avr.c: Convert to ISO C90 format. Fix formatting and generally 2005-10-12 10:56:46 +00:00
tc-bfin.c * config/tc-bfin.c (Expr_Node_Gen_Reloc): If have symbol + constant, 2005-10-24 18:35:59 +00:00
tc-bfin.h * config/tc-bfin.c (Expr_Node_Gen_Reloc): If have symbol + constant, 2005-10-24 18:35:59 +00:00
tc-cris.c Change 32-bit-branch expansion for --pic. 2005-12-07 06:41:56 +00:00
tc-cris.h PR gas/1049 2005-07-08 03:54:30 +00:00
tc-crx.c (reset_vars): Use strncpy to prevent overflowing the ins_parse buffer. 2005-07-14 15:34:16 +00:00
tc-crx.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-d10v.c gas: 2005-06-07 17:54:22 +00:00
tc-d10v.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-d30v.c gas: 2005-06-07 17:54:22 +00:00
tc-d30v.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-dlx.c gas: 2005-06-07 17:54:22 +00:00
tc-dlx.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-fr30.c Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
tc-fr30.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-frv.c Fixes for building on 64-bit hosts: 2006-01-11 17:39:50 +00:00
tc-frv.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-generic.c Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
tc-generic.h Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
tc-h8300.c * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-h8300.h 2005-08-18 Christian Groessler <chris@groessler.org> 2005-08-18 11:54:33 +00:00
tc-hppa.c Bug gas/1896 2005-11-25 02:08:22 +00:00
tc-hppa.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-i370.c Fixes for building on 64-bit hosts: 2006-01-11 17:39:50 +00:00
tc-i370.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-i386.c include/elf/ChangeLog: 2006-01-18 21:07:51 +00:00
tc-i386.h * config/tc-i386.h (tc_comment_chars): Define. 2005-11-07 06:01:18 +00:00
tc-i860.c gas: 2005-06-07 17:54:22 +00:00
tc-i860.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-i960.c * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-i960.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-ia64.c Fix PR 994, core dump with section switching. 2005-11-23 04:34:13 +00:00
tc-ia64.h This adjusts equate handling by 2005-10-11 11:16:17 +00:00
tc-ip2k.c gas: 2005-06-07 17:54:22 +00:00
tc-ip2k.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-iq2000.c gas: 2005-06-07 17:54:22 +00:00
tc-iq2000.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-m32c.c * config/tc-m32c.c (m32c_md_end): Only pad code sections. 2005-12-14 02:27:34 +00:00
tc-m32c.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-m32r.c This adjusts equate handling by 2005-10-11 11:16:17 +00:00
tc-m32r.h This adjusts equate handling by 2005-10-11 11:16:17 +00:00
tc-m68hc11.c gas: 2005-06-07 17:54:22 +00:00
tc-m68hc11.h * dwarf2dbg.c (struct line_entry): Replace frag and frag_ofs 2005-09-20 18:24:48 +00:00
tc-m68k.c * dwarf2dbg.c (struct line_entry): Replace frag and frag_ofs 2005-09-20 18:24:48 +00:00
tc-m68k.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-m68851.h Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
tc-maxq.c * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-maxq.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-mcore.c * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-mcore.h 2005-08-18 Christian Groessler <chris@groessler.org> 2005-08-18 11:54:33 +00:00
tc-mips.c bfd/ 2005-11-23 14:04:18 +00:00
tc-mips.h bfd/ 2005-11-23 14:04:18 +00:00
tc-mmix.c PR gas/2101 2006-01-03 05:56:15 +00:00
tc-mmix.h This adjusts equate handling by 2005-10-11 11:16:17 +00:00
tc-mn10200.c Fixes for building on 64-bit hosts: 2006-01-11 17:39:50 +00:00
tc-mn10200.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-mn10300.c Fixes for building on 64-bit hosts: 2006-01-11 17:39:50 +00:00
tc-mn10300.h This adjusts equate handling by 2005-10-11 11:16:17 +00:00
tc-msp430.c 2005-09-09 Dmitry Diky <diwil@spec.ru> 2005-09-09 08:46:19 +00:00
tc-msp430.h 2005-08-12 Dmitry Diky <diwil@spec.ru> 2005-08-12 11:54:23 +00:00
tc-mt.c * config/tc-mt.c (mt_arch): Default to ms1_16_002. 2005-12-27 18:38:05 +00:00
tc-mt.h Second part of ms1 to mt renaming. 2005-12-16 10:23:12 +00:00
tc-ns32k.c * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-ns32k.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-openrisc.c Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
tc-openrisc.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-or32.c * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-or32.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-pdp11.c Fix compile time warnings from a GCC 4.0 compiler 2005-07-05 15:07:46 +00:00
tc-pdp11.h Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
tc-pj.c gas: 2005-06-07 17:54:22 +00:00
tc-pj.h gas: 2005-06-07 17:54:22 +00:00
tc-ppc.c * config/tc-ppc.c (ppc_frob_file_before_adjust): Do not reference 2005-11-17 13:32:27 +00:00
tc-ppc.h This adjusts equate handling by 2005-10-11 11:16:17 +00:00
tc-s390.c * config/tc-s390.c (md_parse_option): Add cpu type z9-109. 2005-08-12 18:00:56 +00:00
tc-s390.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-sh.c This adjusts equate handling by 2005-10-11 11:16:17 +00:00
tc-sh.h This adjusts equate handling by 2005-10-11 11:16:17 +00:00
tc-sh64.c This adjusts equate handling by 2005-10-11 11:16:17 +00:00
tc-sh64.h This adjusts equate handling by 2005-10-11 11:16:17 +00:00
tc-sparc.c * config/tc-sparc.c (isoctal): Fix thinko. 2005-11-08 16:37:56 +00:00
tc-sparc.h * frags.h: Remove ANSI_PROTOTYPES conditional code. 2005-07-08 05:57:21 +00:00
tc-tic4x.c gas/ 2005-09-30 15:48:24 +00:00
tc-tic4x.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-tic30.c * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-tic30.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-tic54x.c Fixes for building on 64-bit hosts: 2006-01-11 17:39:50 +00:00
tc-tic54x.h This adjusts equate handling by 2005-10-11 11:16:17 +00:00
tc-v850.c Fixes for building on 64-bit hosts: 2006-01-11 17:39:50 +00:00
tc-v850.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-vax.c Fix typo in previous delta 2005-12-22 15:46:55 +00:00
tc-vax.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-xstormy16.c gas: 2005-06-07 17:54:22 +00:00
tc-xstormy16.h * README-vms: Delete. 2005-08-11 01:25:29 +00:00
tc-xtensa.c include: 2005-12-30 23:34:00 +00:00
tc-xtensa.h * config/tc-xtensa.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define. 2005-12-30 00:57:27 +00:00
tc-z8k.c Re-enable GAS for z8k-coff 2005-08-26 09:47:49 +00:00
tc-z8k.h Re-enable GAS for z8k-coff 2005-08-26 09:47:49 +00:00
tc-z80.c config/tc-z80.c (emit_ldreg): fix bug in ld rr,<xx> 2005-12-02 22:31:16 +00:00
tc-z80.h * expr.c (op_encoding): Map '=' to O_SINGLE_EQ, if defined. 2005-11-07 02:15:47 +00:00
te-386bsd.h Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
te-aix5.h
te-armeabi.h * configure.tgt: Set emulation for arm-*-eabi*. 2005-03-16 17:27:17 +00:00
te-armlinuxeabi.h * configure.tgt: Set emulation for arm-*-eabi*. 2005-03-16 17:27:17 +00:00
te-dynix.h
te-epoc-pe.h
te-freebsd.h Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
te-generic.h
te-gnu.h * configure.tgt (i386-*-gnu*): Set em=gnu. 2005-11-16 03:44:10 +00:00
te-go32.h
te-hppa.h Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
te-hppa64.h
te-hppalinux64.h
te-hpux.h
te-i386aix.h
te-ia64aix.h
te-interix.h
te-irix.h Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
te-linux.h
te-lnews.h
te-lynx.h
te-mach.h
te-macos.h
te-nbsd.h Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
te-nbsd532.h
te-netware.h Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
te-pc532mach.h
te-pe.h
te-psos.h
te-riscix.h
te-sparcaout.h Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
te-sun3.h Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
te-svr4.h
te-symbian.h * configure.tgt: Set emulation for arm-*-eabi*. 2005-03-16 17:27:17 +00:00
te-tmips.h Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
te-vxworks.h Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
te-wince-pe.h
vax-inst.h Update the address and phone number of the FSF 2005-05-05 09:13:19 +00:00
xtensa-istack.h * config/tc-xtensa.c (xg_find_narrowest_format): Optimize 1 slot case. 2005-12-20 18:13:32 +00:00
xtensa-relax.c include: 2005-12-30 23:34:00 +00:00
xtensa-relax.h * config/tc-xtensa.c: Remove excess whitespace. 2005-05-06 21:27:47 +00:00