OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
22 years ago * elf64-alpha.c (elf64_alpha_relax_with_lituse): Reject undefined
Richard Henderson [Sun, 2 Jun 2002 03:58:40 +0000 (03:58 +0000)]
    * elf64-alpha.c (elf64_alpha_relax_with_lituse): Reject undefined
        symbols from JSR relaxation.
        (elf64_alpha_size_plt_section_1): New.
        (elf64_alpha_calc_dynrel_sizes): Split out .rela.got bits ...
        (elf64_alpha_size_rela_got_1): ... here.
        (elf64_alpha_size_dynamic_sections): Split out .rela.got bits ...
        (elf64_alpha_size_rela_got_section): ... here.
        (elf64_alpha_size_plt_section): New.
        (elf64_alpha_relax_section): Call them.
        (elf64_alpha_size_got_sections): Remove output_bfd arg.
        (elf64_alpha_finish_dynamic_symbol): Check gotent use_count.

22 years ago include/elf/
Richard Henderson [Sun, 2 Jun 2002 02:28:45 +0000 (02:28 +0000)]
include/elf/
        * alpha.h (LITUSE_ALPHA_ADDR, LITUSE_ALPHA_BASE, LITUSE_ALPHA_BYTOFF,
        LITUSE_ALPHA_JSR, LITUSE_ALPHA_TLSGD, LITUSE_ALPHA_TLSLDM): New.

gas/
        * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
        Rename them LITUSE_ALPHA_*.

bfd/
        * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New.
        (elf64_alpha_relocate_section): Use them.  Reject LE TLS relocs
        in shared libraries.  Fix DTPRELHI and TPRELHI value.
        (INSN_ADDQ, INSN_RDUNIQ): New.
        (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent.
        (elf64_alpha_relax_with_lituse): Return boolean.  Remove irelend
        argument.  Reject dynamic symbols.  Use LITUSE symbolic constants.
        (elf64_alpha_relax_got_load): Rename from relax_without_lituse.
        Handle GOTDTPREL and GOTTPREL relocations.
        (elf64_alpha_relax_gprelhilo): New.
        (elf64_alpha_relax_tls_get_addr): New.
        (elf64_alpha_relax_find_tls_segment): New.
        (elf64_alpha_relax_section): Handle TLS relocations.
        (ALPHA_ELF_LINK_HASH_TLS_IE): New.
        (elf64_alpha_check_relocs): Set it.

22 years agodaily update
Alan Modra [Sun, 2 Jun 2002 00:00:06 +0000 (00:00 +0000)]
daily update

22 years ago * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
Marek Michalkiewicz [Sat, 1 Jun 2002 23:28:59 +0000 (23:28 +0000)]
* scripttempl/avr.sc: Changes to support current GCC and avr-libc,
C++ constructors/destructors, loosely based on the m68hc11 port.

22 years ago * elf64-alpha.c (elf64_alpha_relax_section): Don't store computed gp.
Richard Henderson [Sat, 1 Jun 2002 21:56:41 +0000 (21:56 +0000)]
    * elf64-alpha.c (elf64_alpha_relax_section): Don't store computed gp.

22 years ago * elf64-alpha.c: Remove dead code.
Richard Henderson [Sat, 1 Jun 2002 21:28:59 +0000 (21:28 +0000)]
    * elf64-alpha.c: Remove dead code.

22 years ago * elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic
Richard Henderson [Sat, 1 Jun 2002 21:25:33 +0000 (21:25 +0000)]
    * elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic
        check; don't suppress dynamic relocs for non-allocated sections.

22 years agoFill-out d10v enum so that there are no ``=''.
Andrew Cagney [Sat, 1 Jun 2002 18:15:42 +0000 (18:15 +0000)]
Fill-out d10v enum so that there are no ``=''.

22 years agodaily update
Alan Modra [Sat, 1 Jun 2002 00:00:05 +0000 (00:00 +0000)]
daily update

22 years ago2002-05-31 Chris G. Demetriou <cgd@broadcom.com>
Chris Demetriou [Fri, 31 May 2002 20:46:07 +0000 (20:46 +0000)]
2002-05-31  Chris G. Demetriou  <cgd@broadcom.com>

        * mips-opc.c: Clean up a few whitespace issues, and sort a
        few entries understanding that 'x' follows 'w' in the alphabet.

22 years ago* Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with BUILD_PREFIX,
DJ Delorie [Fri, 31 May 2002 20:09:45 +0000 (20:09 +0000)]
* Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with BUILD_PREFIX,
BUILD_PREFIX_1, to correct nomenclature.
* configure: Likewise.

22 years ago* Makefile.in: Eliminate version-specific references to tcl8.1, tk8.1.
DJ Delorie [Fri, 31 May 2002 19:42:41 +0000 (19:42 +0000)]
* Makefile.in: Eliminate version-specific references to tcl8.1, tk8.1.
* configure.in: Eliminate version-specific references to tcl8.1, tk8.1.

22 years ago* config-ml.in: Propogate DESTDIR also.
DJ Delorie [Fri, 31 May 2002 19:30:32 +0000 (19:30 +0000)]
* config-ml.in: Propogate DESTDIR also.

22 years ago[ opcodes/ChangeLog ]
Chris Demetriou [Fri, 31 May 2002 18:27:03 +0000 (18:27 +0000)]
[ opcodes/ChangeLog ]
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.

22 years ago2002-05-31 Chris G. Demetriou <cgd@broadcom.com>
Chris Demetriou [Fri, 31 May 2002 16:48:07 +0000 (16:48 +0000)]
2002-05-31  Chris G. Demetriou  <cgd@broadcom.com>

        * gas/mips/mips.exp: Use elf-rel2 and elfel-rel2 for
        mipsisa64*-*-* targets, rather than e32-rel2 and e32el-rel2.

22 years ago2002-05-31 Michal Ludvig <mludvig@suse.cz>
Michal Ludvig [Fri, 31 May 2002 15:28:33 +0000 (15:28 +0000)]
2002-05-31  Michal Ludvig  <mludvig@suse.cz>

* elf/dwarf2.h (DW_CFA_low_user, DW_CFA_high_user): Renamed
to DW_CFA_lo_user, DW_CFA_hi_user respectively.

22 years agoAllow stm.l and ldm.l insns to accept parentheses enclosed register lists.
Nick Clifton [Fri, 31 May 2002 14:29:58 +0000 (14:29 +0000)]
Allow stm.l and ldm.l insns to accept parentheses enclosed register lists.

22 years ago2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
Chris Demetriou [Fri, 31 May 2002 06:35:37 +0000 (06:35 +0000)]
2002-05-30  Chris G. Demetriou  <cgd@broadcom.com>

        * gas/mips/mips64-mdmx.s: Tweak to more thoroughly cover
        instruction encodings.
        * gas/mips/mips64-mdmx.d: Likewise.

22 years ago * Makefile.in: Regenerate.
Alan Modra [Fri, 31 May 2002 04:33:55 +0000 (04:33 +0000)]
* Makefile.in: Regenerate.
* aclocal.m4: Regenerate.
* config.in: Regenerate.
* configure: Regenerate.

22 years ago * Makefile.am: Run "make dep-am".
Alan Modra [Fri, 31 May 2002 04:27:37 +0000 (04:27 +0000)]
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* po/POTFILES.in: Regenerate.

22 years ago * bfd-in2.h: Regenerate.
Alan Modra [Fri, 31 May 2002 04:23:27 +0000 (04:23 +0000)]
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* po/SRC-POTFILES.in: Regenerate.

22 years ago * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
Alan Modra [Fri, 31 May 2002 04:19:32 +0000 (04:19 +0000)]
* elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
space for bss .plt.

22 years ago * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
Alan Modra [Fri, 31 May 2002 03:02:35 +0000 (03:02 +0000)]
* Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
(ei386nto.c): Add rule.
* Makefile.in: Regenerate.
* configure.tgt: Add i[3456]86-*-nto-qnx*.
* emulparams/i386nto.sh: New file.

22 years ago * configure.in: Add i386-*-nto-qnx*.
Alan Modra [Fri, 31 May 2002 03:00:58 +0000 (03:00 +0000)]
* configure.in: Add i386-*-nto-qnx*.
* configure: Regenerate.

22 years ago * Makefile.am (BFD32_BACKENDS): Add elf32-i386qnx.lo.
Alan Modra [Fri, 31 May 2002 02:59:47 +0000 (02:59 +0000)]
* Makefile.am (BFD32_BACKENDS): Add elf32-i386qnx.lo.
(BFD32_BACKENDS_CFILES): Add elf32-i386qnx.c.
Run "make dep-am".
* Makefile.in: Regenerate.
* config.bfd: Add i[3456]86-*-nto-qnx* support.
* configure.in: Add bfd_elf32_i386qnx_vec support.
* configure: Regenerate.
* elf-bfd.h (struct elf_backend_data): Add set_nonloadable_filepos,
is_contained_by_filepos, and copy_private_bfd_data_p.
* elf.c (assign_file_positions_for_segments): Call backend
set_nonloadable_filepos.  Fix non-K&R call to _bfd_error_handler.
(IS_CONTAINED_BY_FILEPOS): Define.
(INCLUDE_SECTION_IN_SEGMENT): Also test IS_CONTAINED_BY_FILEPOS.
(copy_private_bfd_data): Use IS_CONTAINED_BY_FILEPOS.  Typo fix.
Fix non-K&R call to _bfd_error_handler.
(_bfd_elf_copy_private_section_data): Use backend
copy_private_bfd_data_p.
* elf32-i386.c: Don't include elfxx-target.h when
ELF32_I386_C_INCLUDED is defined.
* elf32-i386qnx.c: New QNX elf backend file.
* elfxx-target.h: Add elf_backend_set_nonloadable_filepos,
elf_backend_is_contained_by_filepos, and
elf_backend_do_copy_private_bfd_data.
* targets.c: Add bfd_target bfd_elf32_i386qnx_vec.

22 years ago * elfarm-oabi.c (bfd_elf32_arm_add_glue_sections_to_bfd): Define.
Alan Modra [Fri, 31 May 2002 02:28:53 +0000 (02:28 +0000)]
* elfarm-oabi.c (bfd_elf32_arm_add_glue_sections_to_bfd): Define.
Move other similar defines to start of file.

22 years ago * config/tc-mips.c (mips_ip): Use unsigned long values for
Thiemo Seufer [Fri, 31 May 2002 02:27:15 +0000 (02:27 +0000)]
* config/tc-mips.c (mips_ip): Use unsigned long values for
warning output.

22 years ago * config/tc-mips.c (s_cpsetup): Fix initialization of
Thiemo Seufer [Fri, 31 May 2002 02:20:04 +0000 (02:20 +0000)]
* config/tc-mips.c (s_cpsetup): Fix initialization of
mips_cpreturn_register and mips_cpreturn_offset.

22 years ago * config/tc-mips.c (s_cpsetup): Fix comment.
Thiemo Seufer [Fri, 31 May 2002 02:04:55 +0000 (02:04 +0000)]
* config/tc-mips.c (s_cpsetup): Fix comment.

22 years ago * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
Thiemo Seufer [Fri, 31 May 2002 01:58:18 +0000 (01:58 +0000)]
* config/tc-mips.c (md_begin): Add $ra as alias name for $31.
(mips_ip): Likewise.
(mips16_ip): Likewise.
(tc_get_register): Likewise.

22 years ago[ gas/ChangeLog ]
Chris Demetriou [Fri, 31 May 2002 01:17:18 +0000 (01:17 +0000)]
[ gas/ChangeLog ]
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.

22 years agoAdd 16 bit R_RBA.
Tom Rix [Fri, 31 May 2002 01:07:21 +0000 (01:07 +0000)]
Add 16 bit R_RBA.

22 years agodaily update
Alan Modra [Fri, 31 May 2002 00:00:06 +0000 (00:00 +0000)]
daily update

22 years ago * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
Thiemo Seufer [Thu, 30 May 2002 23:38:19 +0000 (23:38 +0000)]
* config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
command line switch conforming to gcc conventions.
* doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.

22 years ago * config/tc-mips.c (macro_build_jalr): New Function.
Thiemo Seufer [Thu, 30 May 2002 23:32:47 +0000 (23:32 +0000)]
* config/tc-mips.c (macro_build_jalr): New Function.
(md_begin): NewABI uses big GOTs.
(macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
(load_address): Add some NewABI PIC support.
(macro): Likewise.
(md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
(tc_gen_reloc): Don't encode NewABI vtables in REL relocations.

22 years ago * doc/c-alpha.texi: Add docs for tls relocations.
Richard Henderson [Thu, 30 May 2002 22:34:41 +0000 (22:34 +0000)]
    * doc/c-alpha.texi: Add docs for tls relocations.

22 years ago * config/tc-mips.c (load_address): Use mips_gp_register instead
Thiemo Seufer [Thu, 30 May 2002 22:29:20 +0000 (22:29 +0000)]
* config/tc-mips.c (load_address): Use mips_gp_register instead
of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
instead.
(macro): Use mips_gp_register instead of hardcoded value.

22 years agoinclude/elf/
Richard Henderson [Thu, 30 May 2002 22:01:38 +0000 (22:01 +0000)]
include/elf/
        * 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.

22 years ago * ld-bootstrap/bootstrap.exp: Test --relax.
Richard Henderson [Thu, 30 May 2002 21:39:41 +0000 (21:39 +0000)]
    * ld-bootstrap/bootstrap.exp: Test --relax.

22 years ago * config/tc-mips.c (mips_gprel_offset): New variable.
Thiemo Seufer [Thu, 30 May 2002 21:06:14 +0000 (21:06 +0000)]
* config/tc-mips.c (mips_gprel_offset): New variable.
(s_gpvalue): Use it.

22 years agod10v fixes.
Tom Rix [Thu, 30 May 2002 16:16:30 +0000 (16:16 +0000)]
d10v fixes.

22 years agoSome d10v gas tests.
Tom Rix [Thu, 30 May 2002 16:12:23 +0000 (16:12 +0000)]
Some d10v gas tests.

22 years agoFix for invalid conflict warning.
Tom Rix [Thu, 30 May 2002 15:25:37 +0000 (15:25 +0000)]
Fix for invalid conflict warning.

22 years agoRemove double printed import table lines; add Bound-To comment.
Nick Clifton [Thu, 30 May 2002 11:06:10 +0000 (11:06 +0000)]
Remove double printed import table lines; add Bound-To comment.

22 years ago* NEWS: Add entry for VAX ELF support.
Jason Thorpe [Thu, 30 May 2002 02:58:04 +0000 (02:58 +0000)]
* NEWS: Add entry for VAX ELF support.

22 years ago* configure.in (vax-*-netbsd*): Don't build gas for this
Jason Thorpe [Thu, 30 May 2002 02:47:47 +0000 (02:47 +0000)]
* configure.in (vax-*-netbsd*): Don't build gas for this
platform.

22 years ago2002-05-29 Matt Thomas <matt@3am-software.com>
Jason Thorpe [Thu, 30 May 2002 02:40:03 +0000 (02:40 +0000)]
2002-05-29  Matt Thomas  <matt@3am-software.com>
            Jason Thorpe  <thorpej@wasabisystems.com>

* Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
(eelf32vax.c)
(evaxnbsd.c): New rules.
* Makefile.in: Regenerate.
* configure.tgt (vax-*-netbsdelf*)
(vax-*-netbsdaout*)
(vax-*-netbsd*): New targets.
* emulparams/elf32vax.sh: New file.
* emulparams/vaxnbsd.sh: New file.

22 years ago2002-05-29 Matt Thomas <matt@3am-software.com>
Jason Thorpe [Thu, 30 May 2002 02:14:13 +0000 (02:14 +0000)]
2002-05-29  Matt Thomas  <matt@3am-software.com>

* Makefile.am (BFD32_BACKENDS): Add elf32-vax.lo.
(BFD32_BACKENDS_CFILES): Add elf32-vax.c.
(elf32-vax.lo): New rule.
* Makefile.in: Regenerate.
* configure.in (bfd_elf32_vax_vec)
(vaxnetbsd_vec): New vectors.
* configure: Regenerate.
* config.bfd (vax-*-netbsdelf*)
(vax-*-netbsdaout*)
(vax-*-netbsd*): New targets.
* elf32-vax.c: New file.
* reloc.c: Add VAX relocations.
* bfd-in2.h: Regenerate.
* targets.c (_bfd_target_vector): Add bfd_elf32_vax_vec.

22 years ago2002-05-29 Matt Thomas <matt@3am-software.com>
Jason Thorpe [Thu, 30 May 2002 01:43:48 +0000 (01:43 +0000)]
2002-05-29  Matt Thomas  <matt@3am-software.com>

* vax.h: New file

22 years ago * MAINTAINERS: Add self as M68k maintainer.
Ben Elliston [Thu, 30 May 2002 01:14:21 +0000 (01:14 +0000)]
* MAINTAINERS: Add self as M68k maintainer.

22 years ago* config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec
Jason Thorpe [Wed, 29 May 2002 21:10:18 +0000 (21:10 +0000)]
* config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec
and bfd_elf32_bigarm_vec to targ_selvecs.

22 years ago* peXXigen.c (pe_print_idata): Fix seg faults on printing import tables with
Christopher Faylor [Wed, 29 May 2002 20:06:28 +0000 (20:06 +0000)]
* peXXigen.c (pe_print_idata): Fix seg faults on printing import tables with
auto-imported symbols.

22 years agoFix genreation of arm <->thumb glue stubs by ensuring that they are in the last secti...
Nick Clifton [Wed, 29 May 2002 16:03:04 +0000 (16:03 +0000)]
Fix genreation of arm <->thumb glue stubs by ensuring that they are in the last section linked.

22 years agoMove declaration and initialisation of saw_line and saw_func out of for loop.
Nick Clifton [Wed, 29 May 2002 08:46:58 +0000 (08:46 +0000)]
Move declaration and initialisation of saw_line and saw_func out of for loop.
(Actual patch accidentally checked in yesterday!)

22 years ago * binutils-all/objcopy.exp (strip_test_with_saving_a_symbol):
Alan Modra [Wed, 29 May 2002 05:00:33 +0000 (05:00 +0000)]
* binutils-all/objcopy.exp (strip_test_with_saving_a_symbol):
Revert 2001-11-15.  Instead allow `D main'.

22 years ago * elf64-ppc.c (ppc64_elf_get_symbol_info): New function.
Alan Modra [Wed, 29 May 2002 05:00:01 +0000 (05:00 +0000)]
* elf64-ppc.c (ppc64_elf_get_symbol_info): New function.
(bfd_elf64_get_symbol_info): Define.
* elfxx-target.h (bfd_elfNN_get_symbol_info): Only define if undef.

22 years ago * cpu-h8300.c: Make default h8300 machine first in machine list.
Alan Modra [Wed, 29 May 2002 00:58:46 +0000 (00:58 +0000)]
* cpu-h8300.c: Make default h8300 machine first in machine list.

22 years agodaily update
Alan Modra [Wed, 29 May 2002 00:00:05 +0000 (00:00 +0000)]
daily update

22 years ago2002-05-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
Marek Michalkiewicz [Tue, 28 May 2002 20:06:27 +0000 (20:06 +0000)]
2002-05-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>

* configure.in (noconfigdirs): Don't compile libiberty, libstdcxx
and libgcj for AVR.

22 years ago * config/tc-mips.c: Replace GP in comments by $gp.
Thiemo Seufer [Tue, 28 May 2002 19:23:09 +0000 (19:23 +0000)]
* config/tc-mips.c: Replace GP in comments by $gp.
(mips_big_got): Initialize.
(mips_trap): Initialize.
(load_address): Use mips_gp_register instead of hardcoded value.
Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
(macro): Use mips_gp_register instead of hardcoded value.
(macro2): Change load_address calls.
(md_pcrel_from): Comment formatting.
(s_cpload): Use mips_gp_register instead of hardcoded value.
(s_cprestore): Likewise. Comment formatting.
(s_gpword): Fix data type.
(s_cpadd): Use mips_gp_register instead of hardcoded value.
(nopic_need_relax): Replace GP in comments by $gp.
(mips_elf_final_processing): Better comment.

22 years agoAdd DLX target
Nick Clifton [Tue, 28 May 2002 17:56:42 +0000 (17:56 +0000)]
Add DLX target

22 years agoAdd noew about DLX contribution.
Nick Clifton [Tue, 28 May 2002 14:20:42 +0000 (14:20 +0000)]
Add noew about DLX contribution.

22 years agoAdd DLX target
Nick Clifton [Tue, 28 May 2002 14:08:47 +0000 (14:08 +0000)]
Add DLX target

22 years ago * ld-cris/libdso-2.d: Tweak for combreloc now default on.
Hans-Peter Nilsson [Tue, 28 May 2002 01:44:46 +0000 (01:44 +0000)]
* ld-cris/libdso-2.d: Tweak for combreloc now default on.

22 years agodaily update
Alan Modra [Tue, 28 May 2002 00:26:27 +0000 (00:26 +0000)]
daily update

22 years agoInstall new elf_chaos.sc script.
Nick Clifton [Mon, 27 May 2002 17:52:56 +0000 (17:52 +0000)]
Install new elf_chaos.sc script.

22 years agoAdd missing semicolon
Nick Clifton [Mon, 27 May 2002 16:16:04 +0000 (16:16 +0000)]
Add missing semicolon

22 years agoFix transaltion problems.
Nick Clifton [Mon, 27 May 2002 15:46:10 +0000 (15:46 +0000)]
Fix transaltion problems.

22 years agooops - omitted from previous delta
Nick Clifton [Mon, 27 May 2002 15:16:25 +0000 (15:16 +0000)]
oops - omitted from previous delta

22 years agoNew Swedish translation
Nick Clifton [Mon, 27 May 2002 15:15:52 +0000 (15:15 +0000)]
New Swedish translation

22 years ago * unwind-ia64.c (unw_print_brmask): Don't use sprintf.
Alan Modra [Mon, 27 May 2002 08:40:35 +0000 (08:40 +0000)]
* unwind-ia64.c (unw_print_brmask): Don't use sprintf.
(unw_print_grmask): Likewise.
(unw_print_frmask): Likewise.

22 years ago * ldlang.c (lang_size_sections_1): Move check for conflicting load
Richard Sandiford [Mon, 27 May 2002 08:22:08 +0000 (08:22 +0000)]
* ldlang.c (lang_size_sections_1): Move check for conflicting load
addresses and regions from here...
(lang_get_regions): ...to this new function.
(lang_leave_output_section_statement): Use lang_get_regions.
(lang_leave_overlay): Likewise.
* mri.c (mri_draw_tree): Pass null as last argument to
lang_leave_output_section_statement.
* emultempl/elf32.em (gld*_place_orphan): Likewise.
* emultempl/mmo.em (mmo_place_orphan): Likewise.
* emultempl/pe.em (gld*_place_orphan): Likewise.

22 years agodaily update
Alan Modra [Mon, 27 May 2002 00:00:06 +0000 (00:00 +0000)]
daily update

22 years ago * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
Thiemo Seufer [Sun, 26 May 2002 18:46:37 +0000 (18:46 +0000)]
* config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
by the define. Remove superfluous check of mips_opts.mips16.
(append_insn): Likewise. Canonicalize variable increments.
(macro_build): Canonicalize variable increments.
(macro_build_lui): Likewise.
(load_register): Likewise.
(load_address): Move pointer initialization.
(macro): Move pointer to a more local scope. Canonicalize variable
increments. Better comments. Replace magic constant for RA by the
define.
(macro2): Replace magic constant for RA by the define. Canonicalize
variable increments.
(mips_ip): Canonicalize variable increments.
(mips16_ip): Replace magic constant for RA by the define.
(my_getSmallParser): Canonicalize variable increments/decrements.
(my_getPercentOp): Likewise.
(my_getSmallExpression): Likewise.
(s_align): Likewise.
(s_mipsset): Likewise.
(s_cpsetup): Likewise.
(s_insn): Remove superfluous check of mips_opts.mips16.
(s_mips_stab): Likewise.
(mips_handle_align): Canonicalize variable increments.
(s_mips_ent): Likewise.
(s_mips_end): Add comment.

22 years ago * arsup.c: Remove ARGSUSED.
Kazu Hirata [Sun, 26 May 2002 14:55:04 +0000 (14:55 +0000)]
* arsup.c: Remove ARGSUSED.
* debug.c: Likewise.
* ieee.c: Likewise.
* nlmconv.c: Likewise.
* prdbg.c: Likewise.
* stabs.c: Likewise.
* wrstabs.c: Likewise.

22 years agogas:
Jason Thorpe [Sun, 26 May 2002 05:04:53 +0000 (05:04 +0000)]
gas:
* configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
* configure: Regenerate.

ld:
* configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.

22 years agodaily update
Alan Modra [Sun, 26 May 2002 00:00:05 +0000 (00:00 +0000)]
daily update

22 years ago * ldemul.c: Fix formatting.
Kazu Hirata [Sat, 25 May 2002 20:39:25 +0000 (20:39 +0000)]
* ldemul.c: Fix formatting.
* ldfile.c: Likewise.
* pe-dll.c: Likewise.
* pe-dll.h: Likewise.

22 years ago * ldlang.c (lang_process): Formatting, grammar.
Alan Modra [Sat, 25 May 2002 13:10:11 +0000 (13:10 +0000)]
* ldlang.c (lang_process): Formatting, grammar.

22 years ago * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Formatting.
Alan Modra [Sat, 25 May 2002 13:09:37 +0000 (13:09 +0000)]
* elf32-m68k.c (elf32_m68k_print_private_bfd_data): Formatting.

22 years ago * Makefile.am (sh-dis.lo): Don't put make commands in deps.
Alan Modra [Sat, 25 May 2002 12:55:19 +0000 (12:55 +0000)]
* Makefile.am (sh-dis.lo): Don't put make commands in deps.
* Makefile.in: Regenerate.
* arc-dis.c: Use #include "" instead of <> for local header files.
* m68k-dis.c: Likewise.

22 years ago * ldlex.l: Use #include "" instead of <> for local header files.
Alan Modra [Sat, 25 May 2002 12:54:12 +0000 (12:54 +0000)]
* ldlex.l: Use #include "" instead of <> for local header files.

22 years ago * ia64.h: Use #include "" instead of <> for local header files.
Alan Modra [Sat, 25 May 2002 12:53:48 +0000 (12:53 +0000)]
* ia64.h: Use #include "" instead of <> for local header files.
* sparc.h: Likewise.

22 years ago * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
Alan Modra [Sat, 25 May 2002 12:53:29 +0000 (12:53 +0000)]
* Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
* Makefile.in: Regenerate.
* dep-in.sed: Reorder to match OBJS in Makefile.am.
* configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
* configure: Regenerate.
* as.h: Use #include "" instead of <> for local header files.
* flonum-konst.c: Likewise.
* flonum-mult.c: Likewise.
* gasp.c: Likewise.
* listing.c: Likewise.
* config/tc-ia64.h: Likewise.
* config/tc-v850.h: Likewise.

22 years ago * arlex.l: Use #include "" instead of <> for local header files.
Alan Modra [Sat, 25 May 2002 12:51:38 +0000 (12:51 +0000)]
* arlex.l: Use #include "" instead of <> for local header files.
* coffdump.c: Likewise.
* coffgrok.c: Likewise.
* nlmconv.c: Likewise.
* nlmheader.y: Likewise.
* srconv.c: Likewise.
* strings.c: Likewise.
* sysdump.c: Likewise.
* unwind-ia64.h: Likewise.
* windres.h: Likewise.
* winduni.h: Likewise.

22 years ago * chew.c: Use #include "" instead of <> for local header files.
Alan Modra [Sat, 25 May 2002 12:50:18 +0000 (12:50 +0000)]
* chew.c: Use #include "" instead of <> for local header files.

22 years ago * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
Alan Modra [Sat, 25 May 2002 10:13:23 +0000 (10:13 +0000)]
* elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
(ppc64_elf_check_relocs): Don't set up function descriptor symbol
strings to point inside function code sym string.
(func_desc_adjust): Likewise.
(ppc64_elf_hide_symbol): Rewrite code to look up function code sym.

22 years agodaily update
Alan Modra [Sat, 25 May 2002 00:00:06 +0000 (00:00 +0000)]
daily update

22 years agoAdd self as d10v maintainer.
Tom Rix [Fri, 24 May 2002 19:29:07 +0000 (19:29 +0000)]
Add self as d10v maintainer.

22 years ago2002-05-24 Michal Ludvig <mludvig@suse.cz>
Michal Ludvig [Fri, 24 May 2002 14:25:08 +0000 (14:25 +0000)]
2002-05-24  Michal Ludvig  <mludvig@suse.cz>

* elf64-x86-64.c (elf64_x86_64_grok_prstatus): Added.
(elf64_x86_64_grok_psinfo): Added.

22 years agoAdd a target for i386-netbsdpe.
Nick Clifton [Fri, 24 May 2002 09:26:58 +0000 (09:26 +0000)]
Add a target for i386-netbsdpe.

22 years ago * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
Alan Modra [Fri, 24 May 2002 04:07:38 +0000 (04:07 +0000)]
* elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
and is_func_descriptor.
(func_desc_adjust): Hide function code sym in shared libs unless
there is a matching exported function descriptor sym.

22 years agoNew d10v tests.
Tom Rix [Fri, 24 May 2002 03:05:50 +0000 (03:05 +0000)]
New d10v tests.

22 years ago * size.c: Fix formatting.
Kazu Hirata [Fri, 24 May 2002 00:33:36 +0000 (00:33 +0000)]
* size.c: Fix formatting.
* srconv.c: Likewise.
* stabs.c: Likewise.
* sysdump.c: Likewise.
* unwind-ia64.c: Likewise.
* wrstabs.c: Likewise.

22 years ago* sim-d10v.h: Delete file. Moved to include/gdb/.
Andrew Cagney [Fri, 24 May 2002 00:12:18 +0000 (00:12 +0000)]
* sim-d10v.h: Delete file.  Moved to include/gdb/.

* sim-d10v.h: New file.  Moved from include/sim-d10v.h.

* Makefile.in (INCLUDE): Add "gdb/sim-d10v.h".
* interp.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".

* d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
* Makefile.in (sim_d10v_h): Update definition.

22 years agodaily update
Alan Modra [Fri, 24 May 2002 00:00:06 +0000 (00:00 +0000)]
daily update

22 years ago2002-05-23 H.J. Lu <hjl@gnu.org>
H.J. Lu [Thu, 23 May 2002 17:25:22 +0000 (17:25 +0000)]
2002-05-23  H.J. Lu <hjl@gnu.org>

* gas/mips/elf-rel.d: Skip the padding.
* gas/mips/elfel-rel.d: Likewise.

22 years agoDon't match "A-F".
H.J. Lu [Thu, 23 May 2002 17:17:13 +0000 (17:17 +0000)]
Don't match "A-F".

22 years ago2002-05-23 H.J. Lu <hjl@gnu.org>
H.J. Lu [Thu, 23 May 2002 17:12:49 +0000 (17:12 +0000)]
2002-05-23  H.J. Lu <hjl@gnu.org>

* gas/all/align2.d: New.
* gas/all/align2.s: New.

* gas/all/gas.exp: Run align2.

22 years ago * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
Jakub Jelinek [Thu, 23 May 2002 13:12:53 +0000 (13:12 +0000)]
* elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
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.