binutils-gdb/include
Nathan Sidwell 0855e32bf5 bfd/
* reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
	BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
	BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
	relocations.
	* libbfd.h: Rebuilt.
	* bfd-in2.h: Rebuilt.
	* elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
	(elf32_arm_reloc_map): Likewise.
	(tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
	(elf32_arm_stub_long_branch_any_tls_pic,
	elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
	(DEF_STUBS): Add new stubs.
	(struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
	(elf32_arm_local_tlsdesc_gotent): New.
	(GOT_TLS_GDESC): New mask.
	(GOT_TLS_GD_ANY): Define.
	(struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
	(elf32_arm_compute_jump_table_size): New.
	(struct elf32_arm_link_hash_table): Add next_tls_desc_index,
	num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
	sgotplt_jump_table_size fields.
	(elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
	(elf32_arm_link_hash_table_create): Initialize new fields.
	(arm_type_of_stub): Check TLS desc relocs too.
	(elf32_arm_stub_name): TLS desc relocs can be shared.
	(elf32_arm_tls_transition): Determine relaxation.
	(arm_stub_required_alignment): Add tls stubs.
	(elf32_arm_size_stubs): Likewise.
	(elf32_arm_tls_relax): Perform TLS relaxing.
	(elf32_arm_final_link_relocate): Process TLS DESC relocations.
	(IS_ARM_TLS_GNU_RELOC): New.
	(IS_ARM_TLS_RELOC): Use it.
	(elf32_arm_relocate_section): Perform TLS relaxing.
	(elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
	desc relocations.
	(allocate_dynrelocs): Allocate tls desc relcoations.
	(elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
	symbols.
	(elf32_arm_size_dynamic_sections): Allocate tls trampolines and
	got slots.
	(elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
	symbol.
	(elf32_arm_finish_dynamic_symbol): Adjust.
	(arm_put_trampoline): New.
	(elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
	trampolines.
	(elf_backend_always_size_sections): Define.

	include/elf/
	* arm.h (R_ARM_TLS_DESC, R_ARM_TLS_GOTDESC, R_ARM_TLS_CALL,
	R_ARM_TLS_DESCSEQ, T_ARM_THM_TLS_CALL, R_ARM_THM_TLS_DESCSEQ): New
	relocations.

	gas/
	* doc/c-arm.texi: Document TLSDESC and TLSCALL relocations, and
	.tlsdescseq directive.
	* config/tc-arm.c (arm_typed_reg_parse): Check for potential reloc
	following a symbol.
	(s_arm_tls_descseq): New directive.
	(md_pseudo_table): Add it.
	(encode_branch): Allow TLS_CALL relocs too.
	(do_t_blx, do_t_branch23): Use encode_branch.
	(reloc_names): Add tlsdesc and tlscall.
	(md_apply_fix): Process tls desc relocations.
	(tc_gen_reloc): Likewise.
	(arm_fix_adjustable): Likewise.

	gas/testsuite/
	* gas/arm/tls.s: Add tlsdesc tests.
	* gas/arm/tls.d: Adjust.

	ld/testsuite/
	* ld-arm/arm-elf.exp: Added tests for new TLS handling
	relocations.
	* ld-arm/tls-descrelax-be32.d: New.
	* ld-arm/tls-descrelax-be32.s: New.
	* ld-arm/tls-descrelax-be8.d: New.
	* ld-arm/tls-descrelax-be8.s: New.
	* ld-arm/tls-descrelax-v7.d: New.
	* ld-arm/tls-descrelax-v7.s: New.
	* ld-arm/tls-descrelax.d: New.
	* ld-arm/tls-descrelax.s: New.
	* ld-arm/tls-descseq.d: New.
	* ld-arm/tls-descseq.r: New.
	* ld-arm/tls-descseq.s: New.
	* ld-arm/tls-gdesc-got.d: New.
	* ld-arm/tls-gdesc-got.s: New.
	* ld-arm/tls-gdesc-nlazy.g: New.
	* ld-arm/tls-gdesc-nlazy.s: New.
	* ld-arm/tls-gdesc.d: New.
	* ld-arm/tls-gdesc.r: New.
	* ld-arm/tls-gdesc.s: New.
	* ld-arm/tls-gdierelax.d: New.
	* ld-arm/tls-gdierelax.s: New.
	* ld-arm/tls-gdierelax2.d: New.
	* ld-arm/tls-gdierelax2.s: New.
	* ld-arm/tls-gdlerelax.d: New.
	* ld-arm/tls-gdlerelax.s: New.
	* ld-arm/tls-lib-loc.d: New.
	* ld-arm/tls-lib-loc.r: New.
	* ld-arm/tls-lib-loc.s: New.
	* ld-arm/tls-longplt-lib.d: New.
	* ld-arm/tls-longplt-lib.s: New.
	* ld-arm/tls-longplt.d: New.
	* ld-arm/tls-longplt.s: New.
	* ld-arm/tls-mixed.r: New.
	* ld-arm/tls-mixed.s: New.
	* ld-arm/tls-thumb1.d: New.
	* ld-arm/tls-thumb1.s: New.
	* ld-arm/arm-elf.exp: New.
2011-01-10 08:40:19 +00:00
..
aout Upgrade header files to use GPLv3 2010-04-15 10:26:09 +00:00
cgen * basic-modes.h (MAKEDI): New macro. 2010-01-06 05:25:24 +00:00
coff remove maxq-coff port 2010-06-29 04:17:34 +00:00
elf bfd/ 2011-01-10 08:40:19 +00:00
gdb run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
nlm Upgrade header files to use GPLv3 2010-04-15 10:26:09 +00:00
opcode PR gas/11395 2010-12-31 16:43:46 +00:00
som include/som: 2010-06-10 08:31:20 +00:00
vms 2010-05-27 Tristan Gingold <gingold@adacore.com> 2010-05-27 10:37:23 +00:00
alloca-conf.h * alloca-conf.h: Clarify comment. 2009-11-18 11:57:44 +00:00
ansidecl.h merge from gcc 2010-01-05 21:10:30 +00:00
bfdlink.h Applied patch series for LD plugin interface (six parts). 2010-10-14 01:31:33 +00:00
binary-io.h
bout.h Upgrade header files to use GPLv3 2010-04-15 10:26:09 +00:00
ChangeLog Move ChangeLog entry. 2010-12-29 16:57:42 +00:00
ChangeLog-9103 Sync include/ChangeLog-9103 from GCC to fix invalid UTF-8. 2009-08-16 12:06:21 +00:00
COPYING
COPYING3
demangle.h merge from gcc 2011-01-03 21:05:58 +00:00
dis-asm.h remove maxq-coff port 2010-06-29 04:17:34 +00:00
dwarf2.h merge from gcc 2010-11-05 18:06:02 +00:00
dyn-string.h merge from gcc 2009-06-01 19:40:44 +00:00
fibheap.h merge from gcc 2009-06-01 19:40:44 +00:00
filenames.h merge from gcc 2010-04-26 18:04:23 +00:00
floatformat.h merge from gcc 2011-01-03 21:05:58 +00:00
fnmatch.h
fopen-bin.h
fopen-same.h
fopen-vms.h
gdbm.h
getopt.h
hashtab.h merge from gcc 2010-06-10 18:30:24 +00:00
hp-symtab.h Upgrade header files to use GPLv3 2010-04-15 10:26:09 +00:00
ieee.h
libiberty.h merge from gcc 2011-01-03 21:05:58 +00:00
lto-symtab.h merge from gcc 2009-10-07 02:57:27 +00:00
MAINTAINERS
md5.h
oasys.h Upgrade header files to use GPLv3 2010-04-15 10:26:09 +00:00
objalloc.h
obstack.h
os9k.h
partition.h
plugin-api.h merge from gcc 2011-01-03 21:05:58 +00:00
progress.h Upgrade header files to use GPLv3 2010-04-15 10:26:09 +00:00
safe-ctype.h
sha1.h Upgrade header files to use GPLv3 2010-04-15 10:26:09 +00:00
simple-object.h merge from gcc 2010-11-17 02:03:43 +00:00
sort.h
splay-tree.h merge from gcc 2010-06-10 18:30:24 +00:00
symcat.h * symcat.h (CONCAT5, CONCAT6, XCONCAT5, XCONCAT6): Define. 2010-03-23 15:58:51 +00:00
xregex2.h
xregex.h
xtensa-config.h merge from gcc 2011-01-03 21:05:58 +00:00
xtensa-isa-internal.h Upgrade header files to use GPLv3 2010-04-15 10:26:09 +00:00
xtensa-isa.h Upgrade header files to use GPLv3 2010-04-15 10:26:09 +00:00