aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2002-08-27 * gas/mcore/allinsn.d: Escape dots. Pass -z to objdump and adjustAlan Modra7-38/+49
to suit. Match coff relocs. Match "from address pool" comments. * gas/sparc/pcrel.s: Use 2b label in expressions. * gas/sparc/pcrel64.s: Likewise. * gas/sparc/pcrel.d: Adjust to suit. * gas/sparc/pcrel64.d: Likewise. * gas/vtable/vtable.exp: Move xfails to .. (proc vtable_setup_xfails): .. here. Add i866.
2002-08-27 * gas/macros/macros.exp (strings): Update xfails.Alan Modra2-6/+11
2002-08-26 * gas/m68k/all.exp: xfail non-ELF targets on pcrel test.Alan Modra2-0/+5
2002-08-26 * gas/m68hc11/insns.d: Quote dots.Alan Modra3-3/+6
* gas/m68hc11/opers12.d: Likewise.
2002-08-26 * gas/ieee-fp/x930509a.exp: Run the test but xfail. Add c80 to xfails.Alan Modra2-8/+9
2002-08-26 * gas/vax/quad.exp: Use quad_elf.s for ELF targets.Alan Modra4-1/+13
* gas/vax/quad.s: Align * gas/vax/quad_elf.s: New version of quad.s with %reg.
2002-08-26 * gas/sparc/sparc.exp (sparc_elf_setup): New.Alan Modra2-0/+14
Use it to xfail for non-ELF targets.
2002-08-26 * gas/tic54x/align.s: Add comment.Alan Modra4-4/+9
* gas/tic54x/align.d: Adjust .text size for 2002-05-23 write.c change. * gas/tic54x/extaddr.d: Similarly adjust disassembly tail.
2002-08-22Fix arm-aout failuresNick Clifton14-9/+67
2002-08-22 * gas/ppc/ppc.exp: Don't run e500 test on xcoff targets.Alan Modra3-23/+25
* gas/ppc/astest2.d: Escape dots.
2002-08-20[gas/]Richard Sandiford4-51/+67
* config/tc-mips.c (macro2): Implement rotates by zero using shifts by zero. [gas/testsuite] * gas/mips/rol.s: Add rotate by zero tests. * gas/mips/rol.d: Update accordingly. * gas/mips/rol64.d: Expect rotates by zero to use dsrl.
2002-08-192002-08-19 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni4-0/+49
From matthew green <mrg@redhat.com> * e500.s: New tests for e500 instructions. * e500.d: Results for new test. * ppc.exp: Test e500.s.
2002-08-16Correct date on previous ChangeLog entry.Stephen Clarke1-1/+1
2002-08-16 * gas/sh/sh64/datal32-3.d: Formatting change to match the currentStephen Clarke2-1/+6
output of objdump.
2002-08-16 * gas/all/gas.exp (forward references): Don't test c30.Alan Modra10-48/+96
* gas/d30v/guard-debug.d: Use -gstabs rather than -g. * gas/elf/ehopt0.s: Don't use "$" in labels. * gas/ieee-fp/x930509a.exp: Don't test c30. * gas/m68hc11/malis.d: Adjust -I so that test runs when not building in source dir. * gas/mri/mri.exp: Don't run on "m68hc*". * gas/sh/basic.exp (do_fp): Match LE too. (pcrel-coff): Run this version for "sh*-pe*" and rename "sh*-hms" to "sh*-rtems". * gas/sh/pcrel-coff.d: Add -EB to objdump flags. * gas/vtable/vtable.exp: Don't run on linuxecoff. setup_xfail in preference to not running on ELF targets that might one day pass. Add more xfails. Add more targets to the REL list.
2002-08-142002-08-14 H.J. Lu <hjl@gnu.org>H.J. Lu4-3/+10
* gas/mips/elempic.d: Treat "addiu" and "daddiu" as equivalent when $0 is source. * gas/mips/telempic.d: Likewise. * gas/mips/telempic.d: Likewise.
2002-08-13 * gas/m68hc11/all.exp: Run the new test.Stephane Carrez13-536/+1265
* gas/m68hc11/insns12.s: New file to test specific 68HC12 insns. * gas/m68hc11/insns12.d: New file. * gas/m68hc11/branchs12.s: New test. * gas/m68hc11/branchs12.d: New test. * gas/m68hc11/all_insns.d: Dump the relocs to verify that they are against symbols and not sections (for linker relaxation). * gas/m68hc11/insns-dwarf2.d: Likewise. * gas/m68hc11/insns.d: Likewise. * gas/m68hc11/lbranch.d: Likewise. * gas/m68hc11/lbranch-dwarf2.d: Likewise. * gas/m68hc11/opers12.d: Likewise. * gas/m68hc11/opers12-dwarf2.d: Likewise.
2002-08-12[gas/]Richard Sandiford4-0/+28
* config/tc-mips.c (mips_ip): Don't work out the value of constant %hi()s here. [gas/testsuite/] * gas/mips/elf-consthilo.[sd]: New test. * gas/mips/mips.exp: Run it.
2002-08-09* config/tc-mips.c (macro): Handle a register plus a 16-bitMaciej W. Rozycki2-1/+6
immediate offset in "dla" and "la" expansions. * gas/mips/empic.d: Treat "addiu" and "daddiu" as equivalent when $0 is source. * mips-opc.c (mips_builtin_opcodes): Remove "dla" and "la" as aliases to "daddiu" and "addiu".
2002-08-09 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()Jakub Jelinek3-0/+93
at start of insn, pass it to output_disp and output_imm. (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen in displacement for R_386_32 reloc, use R_386_GOTPC and compute properly addend. (output_imm): Added arguments. Compute properly addend for R_386_GOTPC. (md_apply_fix3): Remove R_386_GOTPC handling. * testsuite/gas/i386/gotpc.s: New. * testsuite/gas/i386/gotpc.d: New. * testsuite/gas/i386/i386.exp: Add gotpc test.
2002-08-06 * gas/ppc/altivec_xcoff64.d: Adjust for aix5 target.Alan Modra3-6/+11
* gas/ppc/booke_xcoff64.d: Likewise. Also fix relocs.
2002-08-022002-08-01 H.J. Lu <hjl@gnu.org>H.J. Lu3-0/+12
* gas/mips/elf-rel6.s: Add ".p2align 4". * gas/mips/elf-rel6.d: Check nop.
2002-08-01[gas/]Richard Sandiford4-0/+32
* config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend handling to BFD_RELOC_MIPS16_GPREL. [gas/testsuite/] * gas/mips/elf-rel6.[sd]: New test. * gas/mips/mips.exp: Run it.
2002-07-29[ gas/testsuite/ChangeLog ]Chris Demetriou4-0/+20
2002-07-26 Chris Demetriou <cgd@broadcom.com> * gas/mips/elf_ase_mips16.d: New file to test ELF MIPS16 ASE marking. * gas/mips/elf_ase_mips16.s: Likewise. * gas/mips/mips.exp: Run the new test. [ ld/testsuite/ChangeLog ] 2002-07-26 Chris Demetriou <cgd@broadcom.com> * ld-mips-elf/mips16-1.d: Check that ASE flag is actually set.
2002-07-26 * gas/ppc/altivec.d: Invoke "as" with "-a32".Alan Modra2-1/+5
2002-07-25[gas/]Richard Sandiford3-2/+7
* doc/c-mips.texi: Remove -mcpu. Document -mabi. * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro. (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros. * configure, config.in: Regenerate. * config/tc-mips.c (file_mips_abi): Rename to mips_abi. (mips_set_options): Remove "abi" field. (mips_opts): Update accordingly. Replace all uses of mips_opts.abi with mips_abi. (mips_cpu): Remove. (mips_arch_string, mips_arch_info): New vars. (mips_tune_string, mips_tune_info): New vars. (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros. (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI. (mips_isa_to_str, mips_cpu_to_str): Remove. (mips_ip): If the selected architecture is a generic ISA rather than a processor, only mention the ISA level in error messages. (OPTION_MCPU): Remove. (OPTION_FP64): New. (md_longopts): Add -mfp64, remove -mcpu. (mips_set_option_string): New fn. (md_parse_option): Make -mipsN update file_mips_isa rather than mips_opts.isa. Use mips_set_option_string to set -march or -mtune. Don't let -mgp32 and -mfp32 change the ABI. (show): Move to end of file. Constify string argument. (md_show_usage): Move to the end of the file. Read available architectures from mips_cpu_info_table. (mips_set_architecture): New fn. (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN is an alias for -march=mipsN. Don't change the ABI based on other flags. Infer the register size from the ABI as well as the architecture. Complain about more conflicting arguments. Unify logic with GCC. (s_mipsset): Don't change the ABI. (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32. (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just "mipsN"-type entries. Remove entries that vary only in the manufacturer's prefix, or that have "000" replaced by "k". Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000. (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns. (mips_parse_cpu): New fn. (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove. (mips_cpu_info_from_isa): Minor formatting tweak. [gas/testsuite] * gas/mips/mips-gp32-fp64.d, * gas/mips/mips-gp32-fp64-pic.d: Add -mfp64.
2002-07-19 * gas/mmix/list-pseudoints.l: Adjust for changes in gas sectionHans-Peter Nilsson7-13/+22
padding. * gas/mmix/greg7.d: Ditto. * gas/mmix/greg8.d: Ditto. * gas/mmix/fb-2.d: Ditto. * gas/mmix/comment-1.d: Ditto. * gas/mmix/byte-1.d: Ditto.
2002-07-172002-07-17 H.J. Lu <hjl@gnu.org>H.J. Lu3-49/+54
* gas/ia64/dv-branch.d: Updated. * gas/ia64/opc-b.d: Likewise.
2002-07-08 * gas/i386/intel16.s: New.Alan Modra4-0/+33
* gas/i386/intel16.d: New. * gas/i386/i386.exp: Run it.
2002-07-02 * lib/gas-defs.exp (run_dump_test): Run objdump/nm/objcopy/readelfAlan Modra2-33/+45
with LC_ALL=C to ensure consistent sorting.
2002-06-182002-06-18 Dave Brolley <brolley@redhat.com>Dave Brolley4-0/+3904
* gas/frv: New testsuite.
2002-06-17Fix comment.Joern Rennecke1-1/+1
2002-06-17 * gas/sh/dsp.s: Add three more instructions.Joern Rennecke3-1/+12
* gas/sh/dsp.d: Update.
2002-06-142002-06-14 H.J. Lu <hjl@gnu.org>Daniel Jacobowitz3-3/+6
Daniel Jacobowitz <drow@mvista.com> * dwarf2dbg.h (dwarf2_directive_file): Return char *. * dwarf2dbg.c (dwarf2_directive_file): Return filename. * config/tc-mips.c (s_mips_file): Call s_app_file_string and new_logical_line for the first .file directive. * read.c (s_app_file_string): New function. (s_app_file): Call it. * read.h (s_app_file_string): Add declaration. 2002-06-14 Daniel Jacobowitz <drow@mvista.com> * configure.in: Remove MIPS_STABS_ELF. * configure: Regenerated. * config.in: Regenerated. * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug for MIPS targets. * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around ".extern". (pdr_seg): Declare unconditionally. (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF. (s_mips_end): Likewise. Generate stabs function markers. (s_mips_ent): Generate stabs function markers. (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not ELF. (s_mips_mask): Likewise. (mips_flag_mdebug): New. (md_longopts): Add "mdebug" and "no-mdebug". (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG. (mips_after_parse_args): Set mips_flag_mdebug. * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS. 2002-06-14 Daniel Jacobowitz <drow@mvista.com> * gas/mips/lineno.d: Use --gstabs. * gas/mips/mips.exp (lineno.s): Remove XFAIL.
2002-06-12Add and fix tests to reflect changing text alignment to 4 bytes.Tom Rix7-4/+54
2002-06-06 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,Joern Rennecke3-11/+19
but warn about it. * testsuite/gas/sh/pcrel.s: Also test @(symbol,pc). * testsuite/gas/sh/pcrel.d: Update. * testsuite/gas/sh/pcrel.l: New file.
2002-06-06 * gas/testsuite/gas/hppa/basic/add.s: Set code level to 1.1.Jeff Law9-1/+22
* gas/testsuite/gas/hppa/basic/branch.s: Likewise. * gas/testsuite/gas/hppa/basic/dcor.s: Likewise. * gas/testsuite/gas/hppa/basic/logical.s: Likewise. * gas/testsuite/gas/hppa/basic/shladd.s: Likewise. * gas/testsuite/gas/hppa/basic/sub.s: Likewise. * gas/testsuite/gas/hppa/basic/unit.s: Likewise. * gas/testsuite/gas/hppa/unsorted/unsorted.exp: Return if target "*-*-linux*".
2002-05-31[ opcodes/ChangeLog ]Chris Demetriou4-0/+291
2002-05-31 Chris G. Demetriou <cgd@broadcom.com> Ed Satterthwaite <ehs@broadcom.com> * mips-opc.c: Add support for SB-1 MDMX subset and extensions. [ gas/testsuite/ChangeLog ] 2002-05-31 Chris G. Demetriou <cgd@broadcom.com> * gas/mips/sb1-ext-mdmx.s: New file. * gas/mips/sb1-ext-mdmx.d: Likewise. * gas/mips/mips.exp: Run new "sb1-ext-mdmx" test.
2002-05-312002-05-31 Chris G. Demetriou <cgd@broadcom.com>Chris Demetriou2-1/+7
* gas/mips/mips.exp: Use elf-rel2 and elfel-rel2 for mipsisa64*-*-* targets, rather than e32-rel2 and e32el-rel2.
2002-05-312002-05-30 Chris G. Demetriou <cgd@broadcom.com>Chris Demetriou3-145/+151
* gas/mips/mips64-mdmx.s: Tweak to more thoroughly cover instruction encodings. * gas/mips/mips64-mdmx.d: Likewise.
2002-05-31[ gas/ChangeLog ]Chris Demetriou4-0/+521
2002-05-30 Chris G. Demetriou <cgd@broadcom.com> Ed Satterthwaite <ehs@broadcom.com> * config/tc-mips.c (mips_set_options): New "ase_mdmx" member. (mips_opts): Initialize "ase_mdmx" member. (file_ase_mdmx): New variable. (CPU_HAS_MDMX): New macro. (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx based on command line options and configuration defaults. (macro_build): Note in comment that use of MDMX in macros is not currently allowed. (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and "Z" MDMX operand types. (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set, and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand types. (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option): Add support for "-mdmx" and "-no-mdmx" options. (OPTION_ELF_BASE): Move to accomodate new options. (s_mipsset): Support ".set mdmx" and ".set nomdmx". (mips_elf_final_processing): Set MDMX ASE ELF header flag if file_ase_mdmx was set. * doc/as.texinfo: Document -mdmx and -no-mdmx options. * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set nomdmx" directives. [ gas/testsuite/ChangeLog ] 2002-05-30 Chris G. Demetriou <cgd@broadcom.com> * gas/mips/mips64-mdmx.s: New file. * gas/mips/mips64-mdmx.d: Likewise. * gas/mips/mips.exp: Run new "mips64-mdmx" test. [ include/opcode/ChangeLog ] 2002-05-30 Chris G. Demetriou <cgd@broadcom.com> * mips.h (OP_SH_ALN, OP_MASK_ALN, OP_SH_VSEL, OP_MASK_VSEL) (MDMX_FMTSEL_IMM_QH, MDMX_FMTSEL_IMM_OB, MDMX_FMTSEL_VEC_QH) (MDMX_FMTSEL_VEC_OB, INSN_READ_MDMX_ACC, INSN_WRITE_MDMX_ACC) (INSN_MDMX): New constants, for MDMX support. (opcode character list): Add "O", "Q", "X", "Y", and "Z" for MDMX. [ opcodes/ChangeLog ] 2002-05-30 Chris G. Demetriou <cgd@broadcom.com> Ed Satterthwaite <ehs@broadcom.com> * mips-dis.c (print_insn_arg): Add support for 'O', 'Q', 'X', 'Y', and 'Z' formats, for MDMX. (mips_isa_type): Add MDMX instructions to the ISA bit mask for bfd_mach_mipsisa64. * mips-opc.c: Add support for MDMX instructions. (MX): New definition. * mips-dis.c: Update copyright years to include 2002.
2002-05-30include/elf/Richard Henderson8-0/+133
* alpha.h (R_ALPHA_TLSGD, R_ALPHA_TLSLDM, R_ALPHA_DTPMOD64, R_ALPHA_GOTDTPREL, R_ALPHA_DTPREL64, R_ALPHA_DTPRELHI, R_ALPHA_DTPRELLO, R_ALPHA_DTPREL16, R_ALPHA_GOTTPREL, R_ALPHA_TPREL64, R_ALPHA_TPRELHI, R_ALPHA_TPRELLO, R_ALPHA_TPREL16): New. bfd/ * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD, ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New. (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove. (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove. (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated. (struct alpha_elf_obj_tdata): Rename total_got_entries and n_local_got_entries to total_got_size and local_got_size. (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs. (alpha_got_entry_size): New. (elf64_alpha_relax_with_lituse): Use it. (elf64_alpha_relax_without_lituse): Likewise. (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES. (get_got_entry): New. (elf64_alpha_check_relocs): Handle TLS relocs. Reorganize. (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask. (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type. (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise. (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size. (elf64_alpha_calc_got_offsets): Likewise. (alpha_dynamic_entries_for_reloc): New. (elf64_alpha_calc_dynrel_sizes): Use it. (elf64_alpha_size_dynamic_sections): Likewise. (elf64_alpha_relocate_section): Handle TLS relocations. * reloc.c: Add Alpha TLS relocations. * bfd-in2.h, libbfd.h: Rebuild. gas/ * expr.h (operatorT): Add O_md17..O_md32. * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd, O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel, O_tprelhi, O_tprello, O_tprel): New. (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them. (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New. (LITUSE_TLSGD, LITUSE_TLSLDM): New. (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld, saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field. (md_apply_fix3): Handle TLS relocations. (alpha_force_relocation, alpha_fix_adjustable): Likewise. (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the associated TLS reloc. Check lituse_tls relocs match up. (emit_insn): Handle TLS relocations. (ldX_op): Remove. gas/testsuite/ * gas/alpha/elf-tls-1.s, gas/alpha/elf-tls-1.d: New. * gas/alpha/elf-tls-2.s, gas/alpha/elf-tls-1.l: New. * gas/alpha/elf-tls-3.s, gas/alpha/elf-tls-1.l: New. * gas/alpha/alpha.exp: Run them.
2002-05-30Some d10v gas tests.Tom Rix79-0/+5593
2002-05-28Add DLX targetNick Clifton14-0/+358
2002-05-24New d10v tests.Tom Rix87-19/+791
2002-05-232002-05-23 H.J. Lu <hjl@gnu.org>H.J. Lu3-0/+7
* gas/mips/elf-rel.d: Skip the padding. * gas/mips/elfel-rel.d: Likewise.
2002-05-23Don't match "A-F".H.J. Lu1-1/+1
2002-05-232002-05-23 H.J. Lu <hjl@gnu.org>H.J. Lu4-0/+19
* gas/all/align2.d: New. * gas/all/align2.s: New. * gas/all/gas.exp: Run align2.
2002-05-23 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCALJakub Jelinek10-0/+322
for symbols from SHF_TLS section. (_bfd_elf_print_private_bfd_data): Add PT_TLS. (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections. (map_sections_to_segments): Build PT_TLS segment if necessary. (assign_file_positions_for_segments): Likewise. (get_program_header_size): Account for PT_TLS segment. (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from SEC_THREAD_LOCAL sections to STT_TLS. * reloc.c: Add 386 and IA-64 TLS relocs. * section.c (SEC_THREAD_LOCAL): Define. (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS): Remove. * elflink.h (elf_link_add_object_symbols): Support .tcommon. (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS unconditionally. (struct elf_final_link_info): Add first_tls_sec. (elf_bfd_final_link): Set first_tls_sec. Compute elf_hash_table (info)->tls_segment. (elf_link_output_extsym): Handle STT_TLS symbols. (elf_link_input_bfd): Likewise. * syms.c (BSF_THREAD_LOCAL): Define. * bfd-in2.h: Rebuilt. * libbfd.h: Rebuilt. * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff, elf_i386_mkobject, elf_i386_object_p): New functions. (elf_howto_table): Add TLS relocs. (elf_i386_reloc_type_lookup): Support TLS relocs. (elf_i386_info_to_howto_rel): Likewise. (struct elf_i386_link_hash_entry): Add tls_type. (struct elf_i386_obj_tdata): New. (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type): New macros. (struct elf_i386_link_hash_table): Add tls_ldm_got. (link_hash_newfunc): Clear tls_type. (elf_i386_check_relocs): Support TLS relocs. (elf_i386_gc_sweep_hook): Likewise. (allocate_dynrelocs): Likewise. (elf_i386_size_dynamic_sections): Likewise. (elf_i386_relocate_section): Likewise. (elf_i386_finish_dynamic_symbol): Likewise. (bfd_elf32_mkobject, elf_backend_object_p): Define. * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset, dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done, want_tprel, want_dtpmod, want_dtprel. (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions. (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to R_IA64_LTOFF_TPREL22. (elf_code_to_howto_index): Add TLS relocs. (elfNN_ia64_check_relocs): Support TLS relocs. (allocate_global_data_got): Account for TLS .got data. (allocate_dynrel_entries): Account for TLS dynamic relocations. (elfNN_ia64_install_value): Supprt TLS relocs. (set_got_entry): Support TLS relocs. (elfNN_ia64_relocate_section): Likewise. * config/obj-elf.c (elf_common): Renamed from obj_elf_common. (obj_elf_common): Call elf_common. (obj_elf_tls_common): New function. (elf_pseudo_tab): Support .tls_common. (special_sections): Add .tdata and .tbss. (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS sections. (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS). (obj_elf_parse_section_letters): Include T in error message. * config/tc-ppc.c (ppc_section_letter): Likewise. * config/tc-alpha.c (alpha_elf_section_letter): Likewise. (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as SEC_MERGE. * config/tc-sparc.c (md_apply_fix3): Likewise. * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs. Define them if not BFD_ASSEMBLER. (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF and @NTPOFF. (md_apply_fix3): Add TLS relocs. * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE, FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE, FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE. (pseudo_func): Support @dtpmod(), @dtprel() and @tprel(). (ia64_elf_section_letter): Include T in error message. (md_begin): Support TLS operators. (md_operand): Likewise. (ia64_gen_real_reloc_type): Support TLS relocs. * testsuite/gas/i386/tlspic.s: New file. * testsuite/gas/i386/tlsd.s: New file. * testsuite/gas/i386/tlsnopic.s: New file. * testsuite/gas/i386/tlsd.d: New file. * testsuite/gas/i386/tlsnopic.d: New file. * testsuite/gas/i386/tlspic.d: New file. * testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests. * testsuite/gas/ia64/tls.s: New file. * testsuite/gas/ia64/tls.d: New file. * testsuite/gas/ia64/ia64.exp: Add tls test. * write.c (adjust_reloc_syms): Don't change symbols in SEC_THREAD_LOCAL sections to STT_SECTION + addend. * elf/common.h (PT_TLS, SHF_TLS, STT_TLS, DF_STATIC_TLS): Define. * elf/ia64.h (R_IA64_LTOFF_TPREL22): Renamed from R_IA64_LTOFF_TP22. * elf/i386.h: Add TLS relocs. * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss. * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for output section if necessary. Handle .tbss. (lang_size_sections): Clear _raw_size for .tbss section (it allocates space in PT_TLS segment only). * ldwrite.c (build_link_order): Build link order for .tbss too. * readelf.c (get_segment_type): Add PT_TLS. (get_elf_section_flags): Add SHF_TLS. (get_dynamic_flags): Optimize. Add DF_STATIC_TLS. (process_dynamic_segment): Use puts instead of printf. (get_symbol_type): Support STT_TLS. * objdump.c (dump_section_header): Remove SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS. Add SEC_THREAD_LOCAL.
2002-05-222002-05-22 H.J. Lu <hjl@gnu.org>H.J. Lu3-4078/+6
* gas/mips/elf-rel.d: Updated for the subsegs_finish change in write.c. * gas/mips/elfel-rel.d: Likewise.