binutils-gdb/gas/config
Nick Clifton cf869cce62 M68K TLS support.
ld/testsuite/
        * ld-m68k/got-multigot-12-13-14-34-35-ok.d: Update.
        * ld-m68k/got-multigot-14-ok.d: Update.
        * ld-m68k/m68k-got.exp: Update.
        * ld-m68k/got-negative-12-13-14-34-ok.d: Update.
        * ld-m68k/got-negative-14-ok.d: Update.
        * ld-m68k/tls-gd-1.d, ld-m68k/tls-gd-2.d: New tests.
        * ld-m68k/tls-gd-ie-1.d, ld-m68k/tls-ie-1.d: New tests.
        * ld-m68k/tls-ld-1.d, ld-m68k/tls-ld-2.d: New tests.
        * ld-m68k/tls-ld-1.s, ld-m68k/tls-ld-2.s, ld-m68k/tls-le-1.s:
        New test sources.
        * ld-m68k/tls-no-1.s, ld-m68k/tls-gd-ie-1.s, ld-m68k/tls-gd-1.s:
        New test sources.
        * ld-m68k/tls-gd-2.s, ld-m68k/tls-ie-1.s: New test sources.
        * ld-m68k/m68k.exp: Run new tests.
        (merge isa-a isa-a:nodiv): Fix.

        gas/testsuite/
        * gas/m68k/tls-gd-3.d, gas/m68k/tls-gd-3.s: New test.
        * gas/m68k/all.exp: Run it.

        gas/
        * config/m68k-parse.h (enum pic_relocation): Add values for TLS
        relocations.
        * config/m68k-parse.y (yylex): Parse TLS relocations.
        * config/tc-m68k.c (m68k_elf_cons): New static function.
        (md_pseudo_table): Use it.
        (get_reloc_code, tc_m68k_fix_adjustable, tc_gen_reloc): Handle TLS
        relocations.
        (md_apply_fix): Fix to set thread local flag.
        (m68k_elf_suffix): New static function; helper for m68k_elf_cons.

        include/elf/
        * m68k.h: Map TLS relocations to numbers.

        bfd/
        * bfd-in2.h: Regenerate.
        * elf32-m68k.c: Handle 2-slot GOT entries.  Rename variables and
        fields from n_entries to n_slots where appropriate, update comments.
        (HOWTO): Add TLS relocations.
        (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
        (enum elf_m68k_got_offset_size): New enum.
        (struct elf_m68k_got_entry.type): Move field to ...
        (struct elf_m68k_got_entry_key): ... here.  Update all uses.
        (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
        functions.
        (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
        functions.
        (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
        fields into n_entries array.  Update comments.
        (elf_m68k_init_got): Simplify, update all uses.
        (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
        (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
        GOT entries; update name, update all uses.
        (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
        (elf_m68k_get_got_entry): Update.
        (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
        simplify.
        (elf_m68k_remove_got_entry_type): Simplify.
        (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
        (elf_m68k_can_merge_gots): Update.
        (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
        (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
        GOT entries, simplify.
        (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
        (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
        field, remove obsoleted local_n_entries field.
        (elf_m68k_partition_multi_got_2): New static function.
        (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
        update.
        (elf_m68k_remove_got_entry_type): Update.
        (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
        (elf_m68k_check_relocs): Handle TLS relocations.  Remove unnecessary
        update of sgot->size and srelgot->size.
        (elf_m68k_gc_sweep_hook): Update.
        (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
        (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
        TLS relocations.
        * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
        * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.
2009-02-03 14:36:47 +00:00
..
aout_gnu.h
atof-ieee.c
atof-vax.c
bfin-aux.h
bfin-defs.h
bfin-lex.l
bfin-parse.y * config/bfin-parse.y: Use C style comments. 2008-10-20 01:03:50 +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
m68k-parse.h M68K TLS support. 2009-02-03 14:36:47 +00:00
m68k-parse.y M68K TLS support. 2009-02-03 14:36:47 +00:00
obj-aout.c
obj-aout.h
obj-coff.c
obj-coff.h
obj-ecoff.c
obj-ecoff.h
obj-elf.c * include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO, 2009-01-15 12:42:52 +00:00
obj-elf.h * config/obj-elf.h (LOCAL_LABEL_PREFIX): Conditionally define. 2009-01-23 14:45:48 +00:00
obj-evax.c
obj-evax.h
obj-fdpicelf.c
obj-fdpicelf.h
obj-multi.c
obj-multi.h
obj-som.c
obj-som.h
tc-alpha.c * include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO, 2009-01-15 12:42:52 +00:00
tc-alpha.h * include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO, 2009-01-15 12:42:52 +00:00
tc-arc.c
tc-arc.h
tc-arm.c gas: 2009-01-29 11:56:19 +00:00
tc-arm.h * gas/arm/attr-syntax.d: Do not run for non-ELF based ARM targets. 2009-01-19 15:46:31 +00:00
tc-avr.c /gas: 2009-01-26 13:38:52 +00:00
tc-avr.h
tc-bfin.c Remove unnecessary casts on obstack_alloc invocations. 2008-10-21 00:26:17 +00:00
tc-bfin.h
tc-cr16.c * config/tc-cr16.h (GLOBAL_OFFSET_TABLE_NAME): Defined 2008-11-27 11:57:29 +00:00
tc-cr16.h * config/tc-cr16.h (GLOBAL_OFFSET_TABLE_NAME): Defined 2008-11-27 11:57:29 +00:00
tc-cris.c * config/tc-cris.c (s_cris_dtpoff): New function. 2008-12-21 20:16:47 +00:00
tc-cris.h
tc-crx.c
tc-crx.h
tc-d10v.c
tc-d10v.h
tc-d30v.c
tc-d30v.h
tc-dlx.c
tc-dlx.h
tc-fr30.c
tc-fr30.h
tc-frv.c
tc-frv.h * include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO, 2009-01-15 12:42:52 +00:00
tc-generic.c
tc-generic.h
tc-h8300.c
tc-h8300.h
tc-hppa.c
tc-hppa.h
tc-i370.c
tc-i370.h
tc-i386.c * include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO, 2009-01-15 12:42:52 +00:00
tc-i386.h * include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO, 2009-01-15 12:42:52 +00:00
tc-i860.c
tc-i860.h
tc-i960.c
tc-i960.h
tc-ia64.c * include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO, 2009-01-15 12:42:52 +00:00
tc-ia64.h * include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO, 2009-01-15 12:42:52 +00:00
tc-ip2k.c * include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO, 2009-01-15 12:42:52 +00:00
tc-ip2k.h * include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO, 2009-01-15 12:42:52 +00:00
tc-iq2000.c
tc-iq2000.h
tc-lm32.c Add LM32 port. 2008-12-23 19:10:25 +00:00
tc-lm32.h Add LM32 port. 2008-12-23 19:10:25 +00:00
tc-m32c.c * config/tc-m32c.c (md_pseudo_table): Add support for .loc et al. 2008-11-26 18:44:14 +00:00
tc-m32c.h
tc-m32r.c
tc-m32r.h
tc-m68hc11.c
tc-m68hc11.h
tc-m68k.c M68K TLS support. 2009-02-03 14:36:47 +00:00
tc-m68k.h
tc-m68851.h
tc-maxq.c
tc-maxq.h
tc-mcore.c
tc-mcore.h
tc-mep.c * include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO, 2009-01-15 12:42:52 +00:00
tc-mep.h * config/tc-mep.h (DIFF_EXPR_OK): Do not define. 2009-01-29 09:03:13 +00:00
tc-mips.c * config/tc-mips.c (append_insn): Cope with a complex reloc 2009-01-27 13:48:14 +00:00
tc-mips.h
tc-mmix.c
tc-mmix.h 2008-10-07 H.J. Lu <hongjiu.lu@intel.com> 2008-10-07 14:21:59 +00:00
tc-mn10200.c
tc-mn10200.h
tc-mn10300.c
tc-mn10300.h
tc-msp430.c
tc-msp430.h
tc-mt.c
tc-mt.h
tc-ns32k.c Remove unnecessary casts on obstack_alloc invocations. 2008-10-21 00:26:17 +00:00
tc-ns32k.h
tc-openrisc.c
tc-openrisc.h
tc-or32.c
tc-or32.h
tc-pdp11.c PR 9779 2009-02-03 10:58:46 +00:00
tc-pdp11.h
tc-pj.c
tc-pj.h
tc-ppc.c * include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO, 2009-01-15 12:42:52 +00:00
tc-ppc.h * include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO, 2009-01-15 12:42:52 +00:00
tc-s390.c
tc-s390.h * config/obj-elf.h (LOCAL_LABEL_PREFIX): Conditionally define. 2009-01-23 14:45:48 +00:00
tc-score.c
tc-score.h
tc-sh64.c
tc-sh64.h
tc-sh.c
tc-sh.h
tc-sparc.c
tc-sparc.h
tc-spu.c bfd/ 2009-01-12 00:23:58 +00:00
tc-spu.h
tc-tic4x.c * coffgen.c (coff_write_symbols): Check to see if a symbol's flags 2008-09-30 10:50:03 +00:00
tc-tic4x.h
tc-tic30.c
tc-tic30.h
tc-tic54x.c
tc-tic54x.h
tc-v850.c
tc-v850.h
tc-vax.c
tc-vax.h
tc-xc16x.c
tc-xc16x.h
tc-xstormy16.c
tc-xstormy16.h
tc-xtensa.c 2009-01-07 Sterling Augustine <sterling@tensilica.com> 2009-01-07 17:41:09 +00:00
tc-xtensa.h 2008-11-04 Sterling Augustine <sterling@tensilica.com> 2008-11-04 23:11:02 +00:00
tc-z8k.c
tc-z8k.h
tc-z80.c
tc-z80.h
te-386bsd.h
te-aix5.h
te-armeabi.h 2009-01-16 Mark Shinwell <shinwell@codesourcery.com> 2009-01-16 11:38:14 +00:00
te-armlinuxeabi.h 2009-01-16 Mark Shinwell <shinwell@codesourcery.com> 2009-01-16 11:38:14 +00:00
te-dynix.h
te-epoc-pe.h
te-freebsd.h
te-generic.h
te-gnu.h
te-go32.h
te-hppa64.h
te-hppa.h
te-hppalinux64.h
te-hpux.h
te-i386aix.h
te-ia64aix.h
te-interix.h
te-irix.h
te-linux.h
te-lnews.h
te-lynx.h
te-mach.h
te-macos.h
te-nbsd532.h
te-nbsd.h
te-netware.h
te-pc532mach.h
te-pe.h
te-pep.h
te-psos.h
te-riscix.h
te-solaris.h
te-sparcaout.h
te-sun3.h
te-svr4.h
te-symbian.h
te-tmips.h
te-vms.h * include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO, 2009-01-15 12:42:52 +00:00
te-vxworks.h
te-wince-pe.h
vax-inst.h
xtensa-istack.h 2008-11-04 Sterling Augustine <sterling@tensilica.com> 2008-11-04 23:11:02 +00:00
xtensa-relax.c 2009-01-07 Sterling Augustine <sterling@tensilica.com> 2009-01-07 17:41:09 +00:00
xtensa-relax.h 2009-01-07 Sterling Augustine <sterling@tensilica.com> 2009-01-07 17:41:09 +00:00