OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
22 years agodaily update
Alan Modra [Sat, 13 Jul 2002 00:00:04 +0000 (00:00 +0000)]
daily update

22 years ago * elf32-cris.c (cris_elf_relocate_section): Drop nonsensical
Hans-Peter Nilsson [Fri, 12 Jul 2002 15:54:57 +0000 (15:54 +0000)]
* elf32-cris.c (cris_elf_relocate_section): Drop nonsensical
dynamic reference test in assertion when initializing GOT with
static contents.  Just assert that there are either no dynamic
sections, the symbol is defined in the regular objects or that the
symbol is undef weak.  Tweak comment.
(elf_cris_finish_dynamic_symbol): Emit .got reloc for a program
only if the symbol isn't defined in the program and isn't undef
weak.
(elf_cris_adjust_dynamic_symbol): Simplify condition for getting
rid of PLT entry: only do it if the symbol isn't defined in a DSO.
When doing so, clear ELF_LINK_HASH_NEEDS_PLT.  Tweak comments.
(elf_cris_discard_excess_program_dynamics): Don't consider
ELF_LINK_HASH_REF_DYNAMIC when omitting .got runtime relocs.

22 years ago * ld-cris/nodyn4.d, ld-cris/expdyn4.d, ld-cris/comref1.s,
Hans-Peter Nilsson [Fri, 12 Jul 2002 15:51:54 +0000 (15:51 +0000)]
* ld-cris/nodyn4.d, ld-cris/expdyn4.d, ld-cris/comref1.s,
ld-cris/euwref1.s, ld-cris/expdyn3.d, ld-cris/expdyn2.d,
ld-cris/expdref1.s: New tests.

22 years ago * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
Alan Modra [Fri, 12 Jul 2002 06:48:54 +0000 (06:48 +0000)]
* emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
(COMMONPAGESIZE): Define.

22 years ago * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
Alan Modra [Fri, 12 Jul 2002 03:47:36 +0000 (03:47 +0000)]
* config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
case with non CODE_64BIT case.  Don't warn on "qword ptr" if
not CODE_64BIT.

22 years agodaily update
Alan Modra [Fri, 12 Jul 2002 00:00:03 +0000 (00:00 +0000)]
daily update

22 years ago* configure.in: Remove two redundant tests.
DJ Delorie [Thu, 11 Jul 2002 20:14:41 +0000 (20:14 +0000)]
* configure.in: Remove two redundant tests.

22 years ago* configure.in (mips*-*-irix6*o32): Enable stabs.
DJ Delorie [Thu, 11 Jul 2002 19:38:34 +0000 (19:38 +0000)]
* configure.in (mips*-*-irix6*o32): Enable stabs.

22 years ago * elf32-i386.c (elf_i386_relocate_section): Don't complain about
Alan Modra [Thu, 11 Jul 2002 05:33:28 +0000 (05:33 +0000)]
* elf32-i386.c (elf_i386_relocate_section): Don't complain about
unresolved debugging relocs in dynamic applications.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.

22 years ago * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
Alan Modra [Thu, 11 Jul 2002 01:07:49 +0000 (01:07 +0000)]
* config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
(ppc_frob_file_before_adjust): New function.
* config/tc-ppc.h (tc_frob_symbol): Don't define.
(ppc_elf_frob_symbol): Don't declare.
(tc_frob_file_before_adjust): Define.
(ppc_frob_file_before_adjust): Declare.

22 years ago * config/tc-ppc.c (md_pseudo_table): Warning fix.
Alan Modra [Thu, 11 Jul 2002 01:06:58 +0000 (01:06 +0000)]
* config/tc-ppc.c (md_pseudo_table): Warning fix.
(ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
flags.
(ppc_size): Delete.
(ppc_xcoff64): Rename to ppc_obj64.
(md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
(ppc_set_cpu): Set PPC_OPCODE_32 too.
(ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
or bfd_mach_ppc.
(ppc_target_format): Use ppc_obj64 to select format.
(md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
(ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
(ppc_elf_suffix): Likewise.  Don't depend on BFD_DEFAULT_TARGET_SIZE.
(tc_frob_symbol): Likewise.
(md_assemble): Use ppc_obj64 instead of ppc_size.  Don't depend on
BFD_DEFAULT_TARGET_SIZE.
(ppc_tc): Likewise.
(ppc_is_toc_sym): Likewise.
(md_apply_fix3): Likewise.
* config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
BFD_DEFAULT_TARGET_SIZE.
(ELF_TC_SPECIAL_SECTIONS): Likewise.
(tc_frob_symbol): Likewise.

22 years agodaily update
Alan Modra [Thu, 11 Jul 2002 00:00:05 +0000 (00:00 +0000)]
daily update

22 years ago * readelf.c (get_dynamic_type): Handle DT_GNU_PRELINKED,
Jakub Jelinek [Wed, 10 Jul 2002 15:28:34 +0000 (15:28 +0000)]
* readelf.c (get_dynamic_type): Handle DT_GNU_PRELINKED,
DT_GNU_CONFLICT* and DT_GNU_LIBLISZ*.
(get_section_type_name): Handle SHT_GNU_LIBLIST.
(process_dynamic_segment): Handle DT_GNU_CONFLICTSZ,
DT_GNU_LIBLISTSZ and DT_GNU_PRELINKED.
(process_gnu_liblist): New.
(process_file): Call it.

* elf/common.h (SHT_GNU_LIBLIST, DT_GNU_PRELINKED,
DT_GNU_CONFLICT*, DT_GNU_LIBLIST*): Define.

22 years ago * elf64-ppc.c (ONES): Define.
Alan Modra [Wed, 10 Jul 2002 11:46:19 +0000 (11:46 +0000)]
* elf64-ppc.c (ONES): Define.
(ppc64_elf_howto_table): Use ONES here to avoid warnings.  Fill in
missing src_mask fields.  Tweak R_PPC64_NONE, R_PPC64_COPY.  Fill
in missing dst_mask fields on R_PPC64_PLT32, R_PPC64_PLTREL32.

22 years ago * elf64-ppc.c (ppc64_elf_get_symbol_info): Delete.
Alan Modra [Wed, 10 Jul 2002 10:28:44 +0000 (10:28 +0000)]
* elf64-ppc.c (ppc64_elf_get_symbol_info): Delete.
(ppc64_elf_set_private_flags): Delete.
(ppc64_elf_section_from_shdr): Delete.
(ppc64_elf_merge_private_bfd_data): Remove flag checking/merging code.
(ppc64_elf_fake_sections): Delete.
(bfd_elf64_bfd_set_private_flags): Don't define.
(bfd_elf64_get_symbol_info): Likewise.
(elf_backend_section_from_shdr): Likewise.
(elf_backend_fake_sections): Likewise.

22 years ago * elf.c: (assign_section_numbers) Set sh_entsize for .stab only
Alan Modra [Wed, 10 Jul 2002 04:59:42 +0000 (04:59 +0000)]
* elf.c: (assign_section_numbers) Set sh_entsize for .stab only
when not already set.
* elf64-sparc.c: (sparc64_elf_fake_sections): New function.
(elf_backend_fake_sections): Define.

22 years agomerge from gcc
DJ Delorie [Wed, 10 Jul 2002 00:01:58 +0000 (00:01 +0000)]
merge from gcc

22 years agodaily update
Alan Modra [Wed, 10 Jul 2002 00:00:04 +0000 (00:00 +0000)]
daily update

22 years ago * merge.c (_bfd_merge_section): Remove redundant output_section check.
Alan Modra [Tue, 9 Jul 2002 23:47:22 +0000 (23:47 +0000)]
* merge.c (_bfd_merge_section): Remove redundant output_section check.
Formatting.
(_bfd_merge_sections): Don't set SEC_EXCLUDE on unused sections.

22 years ago * config/tc-mips.c (macro_build): Handle MIPS16 insns.
Thiemo Seufer [Tue, 9 Jul 2002 14:21:40 +0000 (14:21 +0000)]
* config/tc-mips.c (macro_build): Handle MIPS16 insns.
(mips_ip): Likewise.
* mips.h (INSN_MIPS16): New define.
* mips-dis.c (mips_isa_type): Add MIPS16 insn handling.
* mips-opc.c (I16): New define.
(mips_builtin_opcodes): Make jalx an I16 insn.

22 years ago * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
Alan Modra [Tue, 9 Jul 2002 09:46:18 +0000 (09:46 +0000)]
* config/tc-i386.c (md_pseudo_table <file>): Warning fix.
(BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
(md_apply_fix3): Formatting.  Remove redundant test.
(tc_gen_reloc): Remove redundant code.
(tc_i386_force_relocation): Delete.  Movy body of function to..
* config/tc-i386.h (TC_FORCE_RELOCATION): .. here.

22 years ago * ld-scripts/dynamic-sections*: New test.
Richard Sandiford [Tue, 9 Jul 2002 08:47:24 +0000 (08:47 +0000)]
    * ld-scripts/dynamic-sections*: New test.

22 years ago * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
Alan Modra [Tue, 9 Jul 2002 08:13:06 +0000 (08:13 +0000)]
* emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.

22 years agooops, forgot to commit.
Alan Modra [Tue, 9 Jul 2002 07:49:49 +0000 (07:49 +0000)]
oops, forgot to commit.

22 years ago * elf32-cris.c (cris_elf_relocate_section): Move sanity-check for
Hans-Peter Nilsson [Tue, 9 Jul 2002 03:49:27 +0000 (03:49 +0000)]
* elf32-cris.c (cris_elf_relocate_section): Move sanity-check for
NULL sym_hashes to just before use.
<case R_CRIS_32_GOTREL>: In test for local symbol, accept also
symbol with non-default visibility.
<case R_CRIS_32_GOTREL, case R_CRIS_32_PLT_GOTREL>: Ditto.
<case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>:
Ditto.
(cris_elf_gc_sweep_hook): Only decrease h->plt.refcount for
symbol with non-default visibility.
(cris_elf_check_relocs): At tests for local symbol before
increasing h->plt.refcount, also check for non-default
visibility.  Ditto when checking for local symbol to eliminate
pc-relative runtime relocs.

22 years ago * ld-cris/libdso-3.d, ld-cris/dso-3.s, ld-cris/noglob1.s,
Hans-Peter Nilsson [Tue, 9 Jul 2002 03:46:49 +0000 (03:46 +0000)]
* ld-cris/libdso-3.d, ld-cris/dso-3.s, ld-cris/noglob1.s,
ld-cris/noglob1.d: New tests.

22 years ago * configure.tgt: Add hppaobsd.o.
Alan Modra [Tue, 9 Jul 2002 02:42:13 +0000 (02:42 +0000)]
* configure.tgt: Add hppaobsd.o.
* Makefile.am: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
powerpc-*-openbsd* and sparc64-*-openbsd*.
* Makefile.in: Regenerate.
* emulparams/hppaobsd.sh: New file.

22 years ago * configure.in: Add hppa-*-openbsd* target, change
Alan Modra [Tue, 9 Jul 2002 02:41:16 +0000 (02:41 +0000)]
* configure.in: Add hppa-*-openbsd* target, change
alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
with sparc64 cpu.
* configure: Regenerate.

22 years agoFix typo last change
Hans-Peter Nilsson [Tue, 9 Jul 2002 02:41:15 +0000 (02:41 +0000)]
Fix typo last change

22 years agomerge from gcc
DJ Delorie [Tue, 9 Jul 2002 01:01:18 +0000 (01:01 +0000)]
merge from gcc

22 years ago * ld-cris/libdso-1.d: Tweak for change in size of dynamic sections.
Hans-Peter Nilsson [Tue, 9 Jul 2002 00:50:01 +0000 (00:50 +0000)]
* ld-cris/libdso-1.d: Tweak for change in size of dynamic sections.

22 years ago* config/tc-mips.c (macro): Shift the 32-bit address range
Maciej W. Rozycki [Tue, 9 Jul 2002 00:42:57 +0000 (00:42 +0000)]
* config/tc-mips.c (macro): Shift the 32-bit address range
accessible with a lone "lui" down by 32768.

22 years agodaily update
Alan Modra [Tue, 9 Jul 2002 00:00:06 +0000 (00:00 +0000)]
daily update

22 years ago* config/tc-mips.c (load_address): Use non-trapping "daddu"
Maciej W. Rozycki [Mon, 8 Jul 2002 22:42:09 +0000 (22:42 +0000)]
* config/tc-mips.c (load_address): Use non-trapping "daddu"
instead of "dadd" in address calculations.
(macro): Likewise.

22 years ago* configure.in: Don't build grez.
DJ Delorie [Mon, 8 Jul 2002 22:18:40 +0000 (22:18 +0000)]
* configure.in: Don't build grez.
* Makefile.in: Ditto.

22 years ago* Makefile.in: Remove references to bsp, cygmon, libstub.
DJ Delorie [Mon, 8 Jul 2002 20:43:20 +0000 (20:43 +0000)]
* Makefile.in: Remove references to bsp, cygmon, libstub.
* configure.in: Ditto.

* configure.in: Remove leftover reference to gdbtest.

22 years ago* configure.in (gxx_include_dir): Change to match versioned
DJ Delorie [Mon, 8 Jul 2002 17:14:04 +0000 (17:14 +0000)]
* configure.in (gxx_include_dir):  Change to match versioned
C++ headers if --enable-version-specific-runtime-libs is used.

22 years ago * gas/i386/intel16.s: New.
Alan Modra [Mon, 8 Jul 2002 10:40:37 +0000 (10:40 +0000)]
* gas/i386/intel16.s: New.
* gas/i386/intel16.d: New.
* gas/i386/i386.exp: Run it.

22 years agogas/ChangeLog
Alan Modra [Mon, 8 Jul 2002 10:03:11 +0000 (10:03 +0000)]
gas/ChangeLog
* config/tc-i386.c (process_suffix): Remove intel mode movsx and
movzx fudges.
(md_assemble): Instead, zap the suffix here.

include/opcode/ChangeLog
* i386.h: Remove IgnoreSize from movsx and movzx.

22 years ago * elf.c: Formatting.
Alan Modra [Mon, 8 Jul 2002 08:13:37 +0000 (08:13 +0000)]
* elf.c: Formatting.
(IS_SOLARIS_PT_INTERP): Add p_paddr and p_memsz checks.
(INCLUDE_SECTION_IN_SEGMENT): Remove IS_SOLARIS_PT_INTERP.
(copy_private_bfd_data): Set p_vaddr on broken Solaris PT_INTERP
segments.

22 years ago * cofflink.c (_bfd_coff_final_link): On PE COFF systems, take into
Mark Mitchell [Mon, 8 Jul 2002 05:34:08 +0000 (05:34 +0000)]
* cofflink.c (_bfd_coff_final_link): On PE COFF systems, take into
account the impact of relocation count overflow when computing
section offsets.
* coffcode.h (coff_write_relocs): Use obj_pe when deciding whether
or not to apply the PE COFF reloc overflow handling.  Fix a
fencepost error in deciding whether or not to use that technique.

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

22 years ago * elf-bfd.h (struct elf_reloc_cookie): Remove locsym_shndx,
Alan Modra [Sun, 7 Jul 2002 09:10:41 +0000 (09:10 +0000)]
* elf-bfd.h (struct elf_reloc_cookie): Remove locsym_shndx,
change type of locsyms.
(bfd_elf_get_elf_syms): Declare.
* elf.c (bfd_elf_get_elf_syms): New function.
(group_signature): Use bfd_elf_get_elf_syms.
(bfd_section_from_r_symndx): Likewise.
* elfcode.h (elf_slurp_symbol_table): Likewise.
* elflink.h (elf_link_is_defined_archive_symbol): Likewise.
(elf_link_add_object_symbols): Likewise.  Reorganise to increase
locality of various data structures.  Properly free internal relocs.
(elf_bfd_final_link): Properly free internal relocs.
(elf_link_check_versioned_symbol): Use bfd_elf_get_elf_syms.
(elf_link_input_bfd): Likewise.
(elf_gc_mark): Likewise.  Properly free internal relocs.
(elf_gc_sweep): Properly free internal relocs.
(elf_reloc_symbol_deleted_p): No need to swap syms in.
(elf_bfd_discard_info): Use bfd_elf_get_elf_syms.  Properly free
internal relocs.
* elf-m10200.c (mn10200_elf_relax_section): Use bfd_elf_get_elf_syms.
Properly free possibly cached info.
(mn10200_elf_relax_delete_bytes): Remove symbol swapping code.
(mn10200_elf_symbol_address_p): Pass in internal syms.  Remove
symbol swapping code.
(mn10200_elf_get_relocated_section_contents): Use bfd_elf_get_elf_syms.
Properly free possibly cached info.
* elf-m10300.c (mn10300_elf_relax_section): As above for elf-m10200.c.
(mn10300_elf_relax_delete_bytes): Likewise.
(mn10300_elf_symbol_address_p): Likewise.
(mn10300_elf_get_relocated_section_contents): Likewise.
* elf32-h8300.c (elf32_h8_relax_section): As above for elf-m10200.c.
(elf32_h8_relax_delete_bytes): Likewise.
(elf32_h8_symbol_address_p): Likewise.
(elf32_h8_get_relocated_section_contents): Likewise.
* elf32-m32r.c (m32r_elf_relax_section): As above for elf-m10200.c.
(m32r_elf_relax_delete_bytes): Likewise.
(m32r_elf_get_relocated_section_contents): Likewise.
* elf32-sh.c (sh_elf_reloc_loop): Free section contents using
elf_section_data to determine whether cached.
(sh_elf_relax_section): As above for elf-m10200.c.
(sh_elf_relax_delete_bytes): Likewise.
(sh_elf_get_relocated_section_contents): Likewise.
* elf32-xstormy16.c (xstormy16_elf_relax_section): As above.
* elf64-alpha.c (elf64_alpha_relax_section): As above.  Also delay
reading of local syms.
* elf64-mmix.c (mmix_elf_relax_section): Likewise.
* elf64-sh64.c (sh_elf64_get_relocated_section_contents): As above.
* elfxx-ia64.c (elfNN_ia64_relax_section): As above.
* elfxx-mips.c (_bfd_mips_elf_check_relocs): Properly free internal
relocs.
* elf32-arm.h (bfd_elf32_arm_process_before_allocation): Properly
free internal relocs and section contents.  Don't read symbols.
* elf32-hppa.c (get_local_syms): Use bfd_elf_get_elf_syms.
(elf32_hppa_size_stubs): Don't free local syms.
* elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Delay
reading of local syms.  Use bfd_elf_get_elf_syms.  Properly free
possibly cached info.
* elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
* elf64-hppa.c (elf64_hppa_check_relocs): Use bfd_elf_get_elf_syms.
* elf64-ppc.c (struct ppc_link_hash_table): Delete bfd_count and
all_local_syms.
(get_local_syms): Delete function.
(edit_opd): Use bfd_elf_get_elf_syms.  Free on error exit.  Cache
on exit.
(ppc64_elf_size_stubs): Use bfd_elf_get_elf_syms.  Free/cache on exit.

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

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

22 years agoThis makes gprof work with non-standard text sections.
Jim Wilson [Fri, 5 Jul 2002 20:29:38 +0000 (20:29 +0000)]
This makes gprof work with non-standard text sections.
* syms.c (decode_section_type): New.
(bfd_decode_symclass): Call decode_section_type.

22 years ago * ldlang.c (print_wild_statement): Fix output formatting.
Alan Modra [Fri, 5 Jul 2002 12:54:28 +0000 (12:54 +0000)]
* ldlang.c (print_wild_statement): Fix output formatting.

22 years agodaily update
Alan Modra [Fri, 5 Jul 2002 00:00:05 +0000 (00:00 +0000)]
daily update

22 years ago* ltcf-cxx.sh (hpux*): Modify to support ia64-*-hpux*.
Alexandre Oliva [Thu, 4 Jul 2002 22:51:16 +0000 (22:51 +0000)]
* ltcf-cxx.sh (hpux*): Modify to support ia64-*-hpux*.

22 years ago * merge.c (_bfd_merged_section_offset): Avoid accessing byte before
Jakub Jelinek [Thu, 4 Jul 2002 15:57:24 +0000 (15:57 +0000)]
* merge.c (_bfd_merged_section_offset): Avoid accessing byte before
section content start.
Reported by Michael Schumacher <mike@hightec-rt.com>.

22 years ago * ldlang.c: (strip_excluded_output_sections): New function.
Alan Modra [Thu, 4 Jul 2002 14:41:01 +0000 (14:41 +0000)]
* ldlang.c: (strip_excluded_output_sections): New function.
(lang_process): Call it.
(lang_size_sections_1): Revert 2002-06-10 change.

22 years ago * section.c (_bfd_strip_section_from_output): Remove unnecessary
Alan Modra [Thu, 4 Jul 2002 14:40:25 +0000 (14:40 +0000)]
* section.c (_bfd_strip_section_from_output):  Remove unnecessary
link order code.  Don't actually remove the output section here;
Just set a flag for the linker to do so.
* elflink.c (_bfd_elf_link_renumber_dynsyms): Test for removed
sections when setting up output section dynsyms.

22 years ago * elflink.h (elf_link_add_object_symbols): Revert 1999-09-02 hpux
Alan Modra [Thu, 4 Jul 2002 13:26:30 +0000 (13:26 +0000)]
* elflink.h (elf_link_add_object_symbols): Revert 1999-09-02 hpux
fudge.
* elf.c (bfd_section_from_shdr): Work around broken hpux shared
libs here instead.

22 years agodaily update
Alan Modra [Thu, 4 Jul 2002 00:00:04 +0000 (00:00 +0000)]
daily update

22 years ago* configure.in: Make --without-x work.
DJ Delorie [Wed, 3 Jul 2002 23:35:31 +0000 (23:35 +0000)]
* configure.in: Make --without-x work.

22 years ago Remove next release number until the release is actually upon us.
Nick Clifton [Wed, 3 Jul 2002 17:16:29 +0000 (17:16 +0000)]
 Remove next release number until the release is actually upon us.

22 years ago New directory. Created to contain a copy of the texi2pod.pl script so that
Nick Clifton [Wed, 3 Jul 2002 11:20:13 +0000 (11:20 +0000)]
 New directory.  Created to contain a copy of the texi2pod.pl script so that
it is in the same place as the version in the FSF GCC sources.

22 years ago* configure.in: Rearrange target Makefile fragment collection.
DJ Delorie [Wed, 3 Jul 2002 03:23:47 +0000 (03:23 +0000)]
* configure.in: Rearrange target Makefile fragment collection.

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

22 years ago * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
Alan Modra [Tue, 2 Jul 2002 23:56:53 +0000 (23:56 +0000)]
* Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
Run "make dep-am".
* Makefile.in: Regenerate.

22 years ago * lib/ld-lib.exp (default_ld_nm): Run nm with LC_ALL=C to ensure
Alan Modra [Tue, 2 Jul 2002 23:54:39 +0000 (23:54 +0000)]
* lib/ld-lib.exp (default_ld_nm): Run nm with LC_ALL=C to ensure
consistent sorting.
(run_dump_test): Likewise for objdump/nm/objcopy/readelf.
* ld-sh/sh64/sh64.exp (run_ld_link_tests): Likewise.

22 years ago * lib/gas-defs.exp (run_dump_test): Run objdump/nm/objcopy/readelf
Alan Modra [Tue, 2 Jul 2002 23:50:14 +0000 (23:50 +0000)]
* lib/gas-defs.exp (run_dump_test): Run objdump/nm/objcopy/readelf
with LC_ALL=C to ensure consistent sorting.

22 years ago * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
Alan Modra [Tue, 2 Jul 2002 23:48:45 +0000 (23:48 +0000)]
* Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
* Makefile.in: Regenerate.

22 years ago* Makefile.in: Don't try to build gdbtest, tgas, ispell, inet, or
DJ Delorie [Tue, 2 Jul 2002 18:57:43 +0000 (18:57 +0000)]
* Makefile.in: Don't try to build gdbtest, tgas, ispell, inet, or
cvs[src].
* configure.in: Ditto.

22 years ago2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
Martin Schwidefsky [Tue, 2 Jul 2002 09:05:51 +0000 (09:05 +0000)]
2002-07-02  Martin Schwidefsky  <schwidefsky@de.ibm.com>
* elf64-s390.c (create_got_section): Set .got section alignment to
8 bytes.
(elf_s390_check_relocs): Set .rela.dyn section alignment to 8 bytes.

22 years ago2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
Martin Schwidefsky [Tue, 2 Jul 2002 09:04:43 +0000 (09:04 +0000)]
2002-07-02  Martin Schwidefsky  <schwidefsky@de.ibm.com>
* config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
to symbols in merge sections, even non pc-relative ones.

22 years ago * elf.c (_bfd_elf_reloc_type_class): Fix comment grammar.
Alan Modra [Tue, 2 Jul 2002 04:31:22 +0000 (04:31 +0000)]
* elf.c (_bfd_elf_reloc_type_class): Fix comment grammar.

22 years ago * ldfile.c (ldfile_try_open_bfd): Formatting.
Alan Modra [Tue, 2 Jul 2002 04:26:39 +0000 (04:26 +0000)]
* ldfile.c (ldfile_try_open_bfd): Formatting.

22 years ago * ldmisc.c (demangle): Move so that it doesn't intrude between
Alan Modra [Tue, 2 Jul 2002 04:21:57 +0000 (04:21 +0000)]
* ldmisc.c (demangle): Move so that it doesn't intrude between
vfinfo comment and body.  Add comment.

22 years ago * budemang.c: New file, "demangle" function.
Alan Modra [Tue, 2 Jul 2002 04:21:25 +0000 (04:21 +0000)]
* budemang.c: New file, "demangle" function.
* budemang.h: New file.
* addr2line.c (translate_addresses): Use "demangle".
* nm.c (print_symname): Likewise.
* objdump.c (objdump_print_symname): Likewise.
(dump_symbols): Likewise.  Also, don't use bfd_asymbol_name macro
here since that obfuscates.
* rdcoff.c: Don't #include demangle.h.
* Makefile.am (CFILES): Add budemang.c, emul_aix.c,
emul_vanilla.c.  Remove emul_$(EMULATION).c.  Sort.
(HFILES): Add budemang.h.  Sort.
(nm_new_SOURCES, objdump_SOURCES, addr2line_SOURCES): Add budemang.c.
Run "make dep-am".
* Makefile.in: Regenerate.
* po/POTFILES.in: Regenerate.

22 years agomerge from gcc
DJ Delorie [Tue, 2 Jul 2002 04:09:35 +0000 (04:09 +0000)]
merge from gcc

22 years agodaily update
Alan Modra [Tue, 2 Jul 2002 00:00:05 +0000 (00:00 +0000)]
daily update

22 years agotypo fix
Alan Modra [Mon, 1 Jul 2002 23:47:10 +0000 (23:47 +0000)]
typo fix

22 years agoRemove redundant entry.
DJ Delorie [Mon, 1 Jul 2002 23:18:33 +0000 (23:18 +0000)]
Remove redundant entry.

22 years agomerge from gcc:
DJ Delorie [Mon, 1 Jul 2002 23:12:32 +0000 (23:12 +0000)]
merge from gcc:

2002-07-01  Nathanael Nerode <neroden@gcc.gnu.org>

* Makefile.in: Eliminate 'apache' targets.
* configure.in: Eliminate 'apache' targets.

* configure.in: Eliminate redundant tests.  Reorganize.

* Makefile.in: Eliminate last reference to LIBGCC1_TEST.

* config-ml.in: Eliminate references to Cygnus configure.

* Makefile.in: Eliminate references to building emacs.

2002-07-01  Denis Chertykov  <denisc@overta.ru>

* configure.in: Add support for ip2k.

22 years agomerge from gcc
DJ Delorie [Mon, 1 Jul 2002 18:02:30 +0000 (18:02 +0000)]
merge from gcc

22 years agoinclude/elf:
Jason Thorpe [Mon, 1 Jul 2002 16:43:38 +0000 (16:43 +0000)]
include/elf:

2002-07-01  Matt Thomas  <matt@3am-software.com>

* Rename EF_* to EF_VAX_*.

bfd:

2002-07-01  Matt Thomas  <matt@3am-software.com>

* elf32-vax.c (elf32_vax_print_private_bfd_data): Change EF_*
to EF_VAX_*.

binutils:

2002-07-01  Matt Thomas  <matt@3am-software.com>

* readelf.c: Include "elf/vax.h".
(guess_is_rela): Move EM_VAX from unknown to RELA case.
(dump_relocations): Handle VAX relocations.
(get_machine_flags): Handle VAX machine flags.

22 years ago * elfxx-mips.c (ABI_64_P): Fix comment.
Thiemo Seufer [Mon, 1 Jul 2002 10:01:01 +0000 (10:01 +0000)]
* elfxx-mips.c (ABI_64_P): Fix comment.
(MIPS_ELF_OPTIONS_SECTION_NAME,MIPS_ELF_STUB_SECTION_NAME): Use the
new section names for N64 ABI.
(mips_elf_output_extsym): No special _gp_disp handling for NewABI.
(mips_elf_calculate_relocation): Code formatting.
(mips_elf_create_dynamic_relocation): Likewise.
(_bfd_mips_elf_fake_sections): IRIX6 needs this hack, too.
(_bfd_mips_elf_size_dynamic_sections): Handle GOT_PAGE for any NewABI.
(_bfd_mips_elf_relocate_section): No special handling for R_MIPS_64
in any NewABI.
(_bfd_mips_elf_finish_dynamic_symbol): No special _gp_disp handling
for NewABI.
(_bfd_mips_elf_modify_segment_map): Handle any N64 ABI.
(_bfd_mips_elf_gc_sweep_hook): NewABI GOT relocs should be handled
here, too.

22 years ago * elf64-x86-64.c (elf64_x86_64_relocate_section): Only convert
Andreas Schwab [Mon, 1 Jul 2002 08:47:13 +0000 (08:47 +0000)]
* elf64-x86-64.c (elf64_x86_64_relocate_section): Only convert
R_X86_64_64 to R_X86_64_RELATIVE.

22 years ago * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
Alan Modra [Mon, 1 Jul 2002 08:32:30 +0000 (08:32 +0000)]
* emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.

22 years ago * vaxbsd.c: New BFD backend for VAX BSD and Ultrix.
Alan Modra [Mon, 1 Jul 2002 08:31:53 +0000 (08:31 +0000)]
* vaxbsd.c: New BFD backend for VAX BSD and Ultrix.
* Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Add new backend.
Run "make dep-am".
* config.bfd (vax-*-bsd* | vax-*-ultrix*): Use vaxbsd_vec instead of
host_aout_vec.
* configure.in (vaxbsd_vec): Add.
* targets.c (vaxbsd_vec): Add.
* Makefile.in: Rebuild.
* configure: Rebuild.
* po/SRC-POTFILES.in: Rebuild.

22 years ago * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
Alan Modra [Mon, 1 Jul 2002 08:07:31 +0000 (08:07 +0000)]
* ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
* ldlang.c (entry_sym): Likewise.
(ldlang_undef_chain_list_type): Likewise.
(lang_finish): Adjust references to entry_symbol.
(lang_add_entry): Likewise.
(lang_gc_sections): Use link_info.gc_sym_list.
(lang_process): Set link_info.gc_sym_list.
* ldlex.l: Include bfdlink.h.
* ldmain.c (main): Init link_info.gc_sym_list.
* emultempl/aix.em: Adjust references to entry_symbol.
* emultempl/armcoff.em: Likewise.
* emultempl/armelf.em: Likewise.
* emultempl/pe.em: Likewise.
* emultempl/ppc64elf.em (ppc_after_open): New function.
(LDEMUL_AFTER_OPEN): Define.
* emulparams/elf64ppc.sh: KEEP .opd sections.

22 years ago * elflink.h (elf_gc_mark): Pass in the section whose relocs we are
Alan Modra [Mon, 1 Jul 2002 08:06:47 +0000 (08:06 +0000)]
* elflink.h (elf_gc_mark): Pass in the section whose relocs we are
examining to gc_mark_hook, rather than the bfd.
(elf_gc_sections): Adjust.
* elf-bfd.h (struct elf_backend_data <gc_mark_hook>): Likewise.
* elf-m10300.c (mn10300_elf_gc_mark_hook): Likewise.
* elf32-arm.h (elf32_arm_gc_mark_hook): Likewise.
* elf32-avr.c (elf32_avr_gc_mark_hook): Likewise.
* elf32-cris.c (cris_elf_gc_mark_hook): Likewise.
* elf32-d10v.c (elf32_d10v_gc_mark_hook): Likewise.
* elf32-fr30.c (fr30_elf_gc_mark_hook): Likewise.
* elf32-hppa.c (elf32_hppa_gc_mark_hook): Likewise.
* elf32-i386.c (elf_i386_gc_mark_hook): Likewise.
* elf32-m32r.c (m32r_elf_gc_mark_hook): Likewise.
* elf32-m68k.c (elf_m68k_gc_mark_hook): Likewise.
* elf32-mcore.c (mcore_elf_gc_mark_hook): Likewise.
* elf32-openrisc.c (openrisc_elf_gc_mark_hook): Likewise.
* elf32-ppc.c (ppc_elf_gc_mark_hook): Likewise.
* elf32-s390.c (elf_s390_gc_mark_hook): Likewise.
* elf32-sh.c (sh_elf_gc_mark_hook): Likewise.
* elf32-sparc.c (elf32_sparc_gc_mark_hook): Likewise.
* elf32-v850.c (v850_elf_gc_mark_hook): Likewise.
* elf32-vax.c (elf_vax_gc_mark_hook): Likewise.
* elf32-xstormy16.c (xstormy16_elf_gc_mark_hook): Likewise.
* elf64-mmix.c (mmix_elf_gc_mark_hook): Likewise.
* elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
* elf64-s390.c (elf_s390_gc_mark_hook): Likewise.
* elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
* elfxx-mips.c (_bfd_mips_elf_gc_mark_hook): Likewise.
* elfxx-mips.h (_bfd_mips_elf_gc_mark_hook): Likewise.
* elf64-x86-64.c (elf64_x86_64_gc_mark_hook): Likewise.
* elf32-frv.c (elf32_frv_gc_mark_hook): Likewise.  Also remove
redundant local sym tests.
* elf64-ppc.c (struct ppc_link_hash_entry): Add is_entry.
(link_hash_newfunc): Init is_entry.
(ppc64_elf_copy_indirect_symbol): Copy is_entry.
(ppc64_elf_link_hash_table_create): Init all_local_syms.
(create_linkage_sections): Use bfd_make_section_anyway rather than
bfd_make_section.
(ppc64_elf_mark_entry_syms): New function.
(ppc64_elf_check_relocs): Don't bother testing elf_bad_symtab.  Set
up opd entry to function section map.
(ppc64_elf_gc_mark_hook): Special case opd section relocs, and
relocs that reference the opd section.
(edit_opd): New function.
(ppc64_elf_size_dynamic_sections): Call get_local_syms and edit_opd.
(ppc64_elf_setup_section_lists): Don't calculate htab->bfd_count here.
(get_local_syms): Do so here.  Exit if we already have local syms.
Remove bogus comment imported from elf32-hppa.c.  Don't attempt to
read local syms on non-ELF input.
(ppc64_elf_size_stubs): Call _bfd_elf64_link_read_relocs rather
than duplicating it's function here.  Adjust free of internal
relocs to suit.
(ppc64_elf_relocate_section): Adjust local syms in opd section.
* elf64-ppc.h (ppc64_elf_mark_entry_syms): Declare.
* elf32-hppa.c (elf32_hppa_size_stubs): Call
_bfd_elf32_link_read_relocs rather than duplicating it's function
here.  Adjust free of internal relocs to suit.

22 years ago * bfdlink.h (struct bfd_sym_chain): Declare.
Alan Modra [Mon, 1 Jul 2002 08:04:47 +0000 (08:04 +0000)]
* bfdlink.h (struct bfd_sym_chain): Declare.
(struct bfd_link_info): Add gc_sym_list.  Formatting fixes.

22 years ago * elf64-x86-64.c (elf64_x86_64_check_relocs): Certain relocations
Andreas Jaeger [Mon, 1 Jul 2002 06:42:27 +0000 (06:42 +0000)]
* elf64-x86-64.c (elf64_x86_64_check_relocs): Certain relocations
are not allowed in shared libs code, enforce -fPIC.

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

22 years ago * readelf.c (dump_relocations): Handle 68HC11/68HC12 relocations.
Stephane Carrez [Sun, 30 Jun 2002 18:43:33 +0000 (18:43 +0000)]
* readelf.c (dump_relocations): Handle 68HC11/68HC12 relocations.

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

22 years ago * mmo.c (mmo_write_loc_chunk): Don't eliminate leading and
Hans-Peter Nilsson [Sat, 29 Jun 2002 21:45:09 +0000 (21:45 +0000)]
* mmo.c (mmo_write_loc_chunk): Don't eliminate leading and
trailing zero-sequences when there's previous left-over data.

22 years ago * ld-mmix/sec-8m.d, ld-mmix/sec-8m.s, ld-mmix/sec-8a.s,
Hans-Peter Nilsson [Sat, 29 Jun 2002 21:33:28 +0000 (21:33 +0000)]
* ld-mmix/sec-8m.d, ld-mmix/sec-8m.s, ld-mmix/sec-8a.s,
ld-mmix/sec-8b.s, ld-mmix/sec-8d.s: New test.

22 years ago * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
Stephane Carrez [Sat, 29 Jun 2002 15:52:31 +0000 (15:52 +0000)]
* config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.

22 years ago * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
Stephane Carrez [Sat, 29 Jun 2002 10:33:45 +0000 (10:33 +0000)]
* emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
* emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
* emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
(EEPROM_START_ADDR): Define.
(EEPROM_MEMORY): Define.
* emulparams/m68hc12elf.sh: Likewise.
* scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
section to put soft registers in .page0.
* scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.

22 years ago * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
Stephane Carrez [Sat, 29 Jun 2002 10:32:34 +0000 (10:32 +0000)]
* config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
.softregs and .eeprom.

22 years ago2002-06-28 David O'Brien <obrien@FreeBSD.org>
David O'Brien [Sat, 29 Jun 2002 04:54:59 +0000 (04:54 +0000)]
2002-06-28  David O'Brien  <obrien@FreeBSD.org>
* NEWS: Note the next release is 2.13.

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

22 years agodaily update
Alan Modra [Fri, 28 Jun 2002 00:01:04 +0000 (00:01 +0000)]
daily update

22 years ago * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
Jeff Law [Thu, 27 Jun 2002 22:57:50 +0000 (22:57 +0000)]
* emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
section.  Add ${RELOCATING-0}.

22 years ago * elf64-hppa.c (elf64_hppa_reloc_type_class): New function.
Jeff Law [Thu, 27 Jun 2002 22:57:02 +0000 (22:57 +0000)]
    * elf64-hppa.c (elf64_hppa_reloc_type_class): New function.
        (elf64_hppa_finish_dynamic_sections): Check other_rel_sec, dlt_rel_sec
        and opd_rel_sec in order for starting rela section.  Check _raw_size.
        (elf_backend_reloc_type_class): Define.

22 years ago2002-06-27 Kevin Buettner <kevinb@redhat.com>
Alan Modra [Thu, 27 Jun 2002 11:51:42 +0000 (11:51 +0000)]
2002-06-27  Kevin Buettner <kevinb@redhat.com>

* dwarf2.c (decode_line_info): Handle older, non-standard, 64-bit
DWARF2 formats.

22 years ago * cpu-powerpc.c: Comment on ordering of arch_info.
Alan Modra [Thu, 27 Jun 2002 11:29:15 +0000 (11:29 +0000)]
* cpu-powerpc.c: Comment on ordering of arch_info.
* elf32-ppc.c (ppc_elf_object_p): New function.
(elf_backend_object_p): Define.
* elf64-ppc.c (ppc64_elf_object_p): New function.
(elf_backend_object_p): Define.