binutils-gdb/gas/config
Jakub Jelinek 37e55690c4 bfd/
* reloc.c (BFD_RELOC_386_TLS_TPOFF, BFD_RELOC_386_TLS_IE,
	BFD_RELOC_386_TLS_GOTIE): Add.
	* bfd-in2.h, libbfd.h: Rebuilt.
	* elf32-i386.c (elf_howto_table): Add R_386_TLS_TPOFF, R_386_TLS_IE
	and R_386_TLS_GOTIE.
	(elf_i386_reloc_type_lookup): Handle it.
	(struct elf_i386_link_hash_entry): Change tls_type type to unsigned
	char instead of enum, change GOT_* into defines.
	(GOT_TLS_IE_POS, GOT_TLS_IE_NEG, GOT_TLS_IE_BOTH): Define.
	(elf_i386_tls_transition): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
	(elf_i386_check_relocs): Likewise.  Avoid crash if local symbol is
	accessed both as normal and TLS symbol.  Move R_386_TLS_LDM and
	R_386_PLT32 cases so that R_386_TLS_IE can fall through.
	Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
	(elf_i386_gc_sweep_hook): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
	Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
	(allocate_dynrelocs): Allocate 2 .got and 2 .rel.got entries if
	tls_type is GOT_TLS_IE_BOTH.
	(elf_i386_size_dynamic_sections): Likewise.
	(elf_i386_relocate_section): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
	Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
	(elf_i386_finish_dynamic_symbol): Use tls_type & GOT_TLS_IE to catch
	all 4 GOT_TLS_* TLS types.
gas/
	* config/tc-i386.c (tc_i386_fix_adjustable): Handle
	BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
	(BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
	if not defined.
	(lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
	(md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
	BFD_RELOC_386_TLS_GOTIE.
gas/testsuite/
	* gas/i386/tlspic.s: Add tests.
	* gas/i386/tlspic.d: Regenerated.
	* gas/i386/tlsnopic.s: Add tests.
	* gas/i386/tlsnopic.d: Regenerated.
include/
	* elf/i386.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE):
	Define.
ld/testsuite/
	* ld-i386/i386.exp: New.
	* ld-i386/tlsbin.dd: New test.
	* ld-i386/tlsbinpic.s: New test.
	* ld-i386/tlsbin.rd: New test.
	* ld-i386/tlsbin.s: New test.
	* ld-i386/tlsbin.sd: New test.
	* ld-i386/tlsbin.td: New test.
	* ld-i386/tlslib.s: New test.
	* ld-i386/tlsnopic1.s: New test.
	* ld-i386/tlsnopic2.s: New test.
	* ld-i386/tlsnopic.dd: New test.
	* ld-i386/tlsnopic.rd: New test.
	* ld-i386/tlsnopic.sd: New test.
	* ld-i386/tlspic1.s: New test.
	* ld-i386/tlspic2.s: New test.
	* ld-i386/tlspic.dd: New test.
	* ld-i386/tlspic.rd: New test.
	* ld-i386/tlspic.sd: New test.
	* ld-i386/tlspic.td: New test.
2002-09-19 19:01:18 +00:00
..
aout_gnu.h 2002-06-08 Matt Thomas <matt@3am-software.com> 2002-06-09 00:45:42 +00:00
atof-ieee.c Fix thinko in last commit. 2002-04-11 11:21:01 +00:00
atof-tahoe.c Fix copyright notices 2001-03-08 23:24:26 +00:00
atof-vax.c Fix copyright notices 2001-03-08 23:24:26 +00:00
e-crisaout.c * configure.in: Add CRIS support. 2000-07-20 17:45:28 +00:00
e-criself.c * configure.in: Add CRIS support. 2000-07-20 17:45:28 +00:00
e-i386aout.c * symbols.c: Add missing prototypes. 2001-08-09 14:42:07 +00:00
e-i386coff.c * symbols.c: Add missing prototypes. 2001-08-09 14:42:07 +00:00
e-i386elf.c * symbols.c: Add missing prototypes. 2001-08-09 14:42:07 +00:00
e-mipsecoff.c 19990502 sourceware import 1999-05-03 07:29:11 +00:00
e-mipself.c 19990502 sourceware import 1999-05-03 07:29:11 +00:00
itbl-mips.h Fix copyright notices 2001-03-08 23:24:26 +00:00
m68k-parse.h Fix copyright notices 2001-03-08 23:24:26 +00:00
m68k-parse.y Locale changes from Bruno Haible <haible@clisp.cons.org>. 2001-09-19 05:33:36 +00:00
m88k-opcode.h Fix copyright notices 2001-03-08 23:24:26 +00:00
obj-aout.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
obj-aout.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
obj-bout.c * dwarf2dbg.c: Always include dwarf2dbg.h. 2002-08-27 11:09:43 +00:00
obj-bout.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
obj-coff.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
obj-coff.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
obj-ecoff.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
obj-ecoff.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
obj-elf.c * config/obj-elf.c (obj_elf_change_section): Move prototype to 2002-09-17 07:38:14 +00:00
obj-elf.h * config/obj-elf.c (obj_elf_change_section): Move prototype to 2002-09-17 07:38:14 +00:00
obj-evax.c Fix copyright notices 2001-03-08 23:24:26 +00:00
obj-evax.h Fix copyright notices 2001-03-08 23:24:26 +00:00
obj-hp300.c Fix copyright notices 2001-03-08 23:24:26 +00:00
obj-hp300.h Fix copyright notices 2001-03-08 23:24:26 +00:00
obj-ieee.c * write.c (size_seg): Check adjustment to last frag. 2002-05-23 08:08:48 +00:00
obj-ieee.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
obj-multi.c 19990502 sourceware import 1999-05-03 07:29:11 +00:00
obj-multi.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
obj-som.c Fix copyright notices 2001-03-08 23:24:26 +00:00
obj-som.h Fix copyright notices 2001-03-08 23:24:26 +00:00
obj-vms.c Locale changes from Bruno Haible <haible@clisp.cons.org>. 2001-09-19 05:33:36 +00:00
obj-vms.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-a29k.c * as.c: Replace CONST with const. 2002-06-08 07:37:16 +00:00
tc-a29k.h Fix copyright notices 2001-03-08 23:24:26 +00:00
tc-alpha.c * config/tc-alpha.c (md_pcrel_from): Only adjust special for 2002-09-19 16:13:38 +00:00
tc-alpha.h 2002-09-16 Bruno Haible <bruno@clisp.org> 2002-09-17 02:24:40 +00:00
tc-arc.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-arc.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-arm.c Note that an implemented BFD_RELOC_ARM_IMMEDIATE has been done. 2002-09-17 19:23:00 +00:00
tc-arm.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-avr.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-avr.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-cris.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-cris.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-d10v.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-d10v.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-d30v.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-d30v.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-dlx.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-dlx.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-fr30.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-fr30.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-frv.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-frv.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-generic.c 19990502 sourceware import 1999-05-03 07:29:11 +00:00
tc-generic.h Fix copyright notices 2001-03-08 23:24:26 +00:00
tc-h8300.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-h8300.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-h8500.c * as.c: Replace CONST with const. 2002-06-08 07:37:16 +00:00
tc-h8500.h Fix copyright notices 2001-03-08 23:24:26 +00:00
tc-hppa.c * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for 2002-09-09 21:31:40 +00:00
tc-hppa.h * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for 2002-09-09 21:31:40 +00:00
tc-i370.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-i370.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-i386.c bfd/ 2002-09-19 19:01:18 +00:00
tc-i386.h 2002-09-16 Bruno Haible <bruno@clisp.org> 2002-09-17 02:24:40 +00:00
tc-i860.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-i860.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-i960.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-i960.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-ia64.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-ia64.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-ip2k.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-ip2k.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-m32r.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-m32r.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-m68hc11.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-m68hc11.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-m68k.c Handle situation where architecture has not yet been selected. 2002-09-19 14:52:15 +00:00
tc-m68k.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-m88k.c * as.c: Replace CONST with const. 2002-06-08 07:37:16 +00:00
tc-m88k.h * write.c (size_seg): Check adjustment to last frag. 2002-05-23 08:08:48 +00:00
tc-m68851.h Fix copyright notices 2001-03-08 23:24:26 +00:00
tc-mcore.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-mcore.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-mips.c [ gas/ChangeLog ] 2002-09-18 21:33:07 +00:00
tc-mips.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-mmix.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-mmix.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-mn10200.c Update all uses of md_apply_fix to use md_apply_fix3. Make it a void function. 2001-11-15 21:29:00 +00:00
tc-mn10200.h Update all uses of md_apply_fix to use md_apply_fix3. Make it a void function. 2001-11-15 21:29:00 +00:00
tc-mn10300.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-mn10300.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-ns32k.c Fix bugs and remove compile time warnings for N"32K port. 2002-07-31 16:23:29 +00:00
tc-ns32k.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-openrisc.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-openrisc.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-or32.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-or32.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-pdp11.c * as.c: Replace CONST with const. 2002-06-08 07:37:16 +00:00
tc-pdp11.h Fix copyright notices 2001-03-08 23:24:26 +00:00
tc-pj.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-pj.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-ppc.c Do not count FAKE operands when deciding if any operands have been skipped. 2002-09-13 09:16:02 +00:00
tc-ppc.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-s390.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-s390.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-sh64.c bfd: 2002-06-04 02:57:44 +00:00
tc-sh64.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-sh.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-sh.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-sparc.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-sparc.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-tahoe.c * as.c: Replace CONST with const. 2002-06-08 07:37:16 +00:00
tc-tahoe.h Fix copyright notices 2001-03-08 23:24:26 +00:00
tc-tic4x.c * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED. 2002-09-17 08:35:10 +00:00
tc-tic4x.h Add TMS320C4x support 2002-08-28 10:38:51 +00:00
tc-tic30.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-tic30.h Fix copyright notices 2001-03-08 23:24:26 +00:00
tc-tic54x.c * config/obj-coff.h: Fix formatting. 2002-05-11 09:53:52 +00:00
tc-tic54x.h Fix tic54x testsuite failures and Lmem disassembly bugs. 2001-11-13 14:22:53 +00:00
tc-tic80.c * as.c: Replace CONST with const. 2002-06-08 07:37:16 +00:00
tc-tic80.h Fix copyright notices 2001-03-08 23:24:26 +00:00
tc-v850.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-v850.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-vax.c 2002-06-08 Matt Thomas <matt@3am-software.com> 2002-06-09 00:45:42 +00:00
tc-vax.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-w65.c * config/tc-w65.c (md_section_align): Fix typo. 2002-08-26 08:55:33 +00:00
tc-w65.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-xstormy16.c gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-xstormy16.h gas reloc rewrite. 2002-09-05 00:01:18 +00:00
tc-z8k.c opcodes: Fix definition of "in rd,imm16" opcode. 2002-08-22 19:22:35 +00:00
tc-z8k.h Fix copyright notices 2001-03-08 23:24:26 +00:00
te-386bsd.h Fix copyright notices 2001-03-08 23:24:26 +00:00
te-aix5.h * config/te-aix5.h: Typo fix. 2002-03-22 02:07:36 +00:00
te-aux.h Apply David O'Brien's comment patch. 2000-05-14 18:53:18 +00:00
te-delt88.h 19990502 sourceware import 1999-05-03 07:29:11 +00:00
te-delta.h 19990502 sourceware import 1999-05-03 07:29:11 +00:00
te-dpx2.h Apply David O'Brien's comment patch. 2000-05-14 18:53:18 +00:00
te-dynix.h 19990502 sourceware import 1999-05-03 07:29:11 +00:00
te-epoc-pe.h 19990502 sourceware import 1999-05-03 07:29:11 +00:00
te-freebsd.h Fix copyright notices 2001-03-08 23:24:26 +00:00
te-generic.h 19990502 sourceware import 1999-05-03 07:29:11 +00:00
te-go32.h Apply David O'Brien's comment patch. 2000-05-14 18:53:18 +00:00
te-hp300.h Fix copyright notices 2001-03-08 23:24:26 +00:00
te-hppa64.h Add linux-elf flavour to pseudos in tc-hppa.c and some tidying 2000-07-09 08:16:21 +00:00
te-hppa.h Fix copyright notices 2001-03-08 23:24:26 +00:00
te-hppalinux64.h Add linux-elf flavour to pseudos in tc-hppa.c and some tidying 2000-07-09 08:16:21 +00:00
te-hpux.h ia64-hpux patches from Steve Ellcey. 2000-11-07 01:21:10 +00:00
te-i386aix.h Apply David O'Brien's comment patch. 2000-05-14 18:53:18 +00:00
te-ia64aix.h Added ia64-*-aix* configuration. 2001-02-22 17:16:38 +00:00
te-ic960.h Fix copyright notices 2001-03-08 23:24:26 +00:00
te-interix.h Apply David O'Brien's comment patch. 2000-05-14 18:53:18 +00:00
te-linux.h 19990502 sourceware import 1999-05-03 07:29:11 +00:00
te-lnews.h 19990502 sourceware import 1999-05-03 07:29:11 +00:00
te-lynx.h 19990502 sourceware import 1999-05-03 07:29:11 +00:00
te-mach.h 19990502 sourceware import 1999-05-03 07:29:11 +00:00
te-macos.h 19990502 sourceware import 1999-05-03 07:29:11 +00:00
te-nbsd532.h Apply David O'Brien's comment patch. 2000-05-14 18:53:18 +00:00
te-nbsd.h Fix copyright notices 2001-03-08 23:24:26 +00:00
te-pc532mach.h Apply David O'Brien's comment patch. 2000-05-14 18:53:18 +00:00
te-pe.h 19990502 sourceware import 1999-05-03 07:29:11 +00:00
te-ppcnw.h Fix copyright notices 2001-03-08 23:24:26 +00:00
te-psos.h Apply David O'Brien's comment patch. 2000-05-14 18:53:18 +00:00
te-riscix.h 19990502 sourceware import 1999-05-03 07:29:11 +00:00
te-sparcaout.h Fix copyright notices 2001-03-08 23:24:26 +00:00
te-sun3.h Fix copyright notices 2001-03-08 23:24:26 +00:00
te-svr4.h 19990502 sourceware import 1999-05-03 07:29:11 +00:00
te-sysv32.h Apply David O'Brien's comment patch. 2000-05-14 18:53:18 +00:00
te-tmips.h Fix copyright notices 2001-03-08 23:24:26 +00:00
te-wince-pe.h Add support for WinCE targeted toolchains. 2000-02-24 19:49:18 +00:00
vax-inst.h 2002-06-08 Matt Thomas <matt@3am-software.com> 2002-06-09 00:45:42 +00:00
vms-a-conf.h 19990502 sourceware import 1999-05-03 07:29:11 +00:00
vms-conf.h 2000-11-14 Kazu Hirata <kazu@hxi.com> 2000-11-14 20:57:30 +00:00