external/binutils.git
23 years ago*** empty log message ***
gdbadmin [Mon, 8 Oct 2001 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

23 years agomerge from gcc
DJ Delorie [Sun, 7 Oct 2001 22:42:23 +0000 (22:42 +0000)]
merge from gcc

23 years agomerge from gcc
DJ Delorie [Sun, 7 Oct 2001 17:24:36 +0000 (17:24 +0000)]
merge from gcc

23 years ago * config/obj-elf.c: Standardize error/warning messages - don't
Alan Modra [Sun, 7 Oct 2001 06:16:54 +0000 (06:16 +0000)]
* config/obj-elf.c: Standardize error/warning messages - don't
capitalise, no final period or newline, don't say "ignoring" for
as_bad messages.  In some cases, change the wording to that used
elsewhere for similar messages.
(obj_elf_section_name): New function, split out from ..
(obj_elf_section): .. here.  Correctly mask off SHF_MERGE if
entsize not specified.

23 years agodaily update
Alan Modra [Sun, 7 Oct 2001 00:00:06 +0000 (00:00 +0000)]
daily update

23 years ago*** empty log message ***
gdbadmin [Sun, 7 Oct 2001 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

23 years ago* config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Define.
Mark Kettenis [Sat, 6 Oct 2001 19:19:27 +0000 (19:19 +0000)]
* config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Define.

23 years ago * dwarf2.c (comp_unit_find_nearest_line): Check for end of
Stephane Carrez [Sat, 6 Oct 2001 10:01:09 +0000 (10:01 +0000)]
* dwarf2.c (comp_unit_find_nearest_line): Check for end of
compilation unit.

23 years ago * bfd.c (bfd_assert): Report bfd version.
Alan Modra [Sat, 6 Oct 2001 07:40:44 +0000 (07:40 +0000)]
* bfd.c (bfd_assert): Report bfd version.
(_bfd_abort): Likewise.

23 years ago * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
Alan Modra [Sat, 6 Oct 2001 07:25:40 +0000 (07:25 +0000)]
* elflink.h (elf_link_input_bfd): Don't zero discarded link-once
section sym values.  Instead replace any relocs against them with
relocs against STN_UNDEF, which has a zero value.

23 years ago * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
Alan Modra [Sat, 6 Oct 2001 06:41:47 +0000 (06:41 +0000)]
* elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
relocs.

23 years ago*** empty log message ***
gdbadmin [Sat, 6 Oct 2001 00:00:08 +0000 (00:00 +0000)]
*** empty log message ***

23 years agodaily update
Alan Modra [Sat, 6 Oct 2001 00:00:07 +0000 (00:00 +0000)]
daily update

23 years ago * som.h (som_exec_data): New field "version_id".
Jeff Law [Fri, 5 Oct 2001 21:55:12 +0000 (21:55 +0000)]
    * som.h (som_exec_data): New field "version_id".
        * som.c (som_object_setup): Record the version_id if it
        exists.
        (som_prep_headers): Do not initialize version_id here.
        (som_finish_writing): Initialize version_id here.

23 years ago2001-10-05 H.J. Lu <hjl@gnu.org>
H.J. Lu [Fri, 5 Oct 2001 16:40:23 +0000 (16:40 +0000)]
2001-10-05  H.J. Lu  <hjl@gnu.org>

* genscripts.sh: Fix a typo in the last change.

23 years ago * doc/as.texinfo: Document M and S ELF section flags.
Jakub Jelinek [Fri, 5 Oct 2001 16:36:55 +0000 (16:36 +0000)]
* doc/as.texinfo: Document M and S ELF section flags.

* emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
-z nocombreloc in usage.

23 years ago * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
Thiemo Seufer [Fri, 5 Oct 2001 16:14:39 +0000 (16:14 +0000)]
* elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
according to the MIPS/SGI ELF64 ABI Draft.
(mips_elf_sort_hash_table): Typo.

23 years ago * subsegs.c (subseg_text_p): Return 0 for absolute section.
Alan Modra [Fri, 5 Oct 2001 10:53:00 +0000 (10:53 +0000)]
* subsegs.c (subseg_text_p): Return 0 for absolute section.
* read.c (do_align): If in absolute section, warn about and ignore
non-zero fill pattern.

23 years ago* config/tc-mn10300.c (tc_gen_reloc): Don't free
Alexandre Oliva [Fri, 5 Oct 2001 07:49:24 +0000 (07:49 +0000)]
* config/tc-mn10300.c (tc_gen_reloc): Don't free
reloc->sym_ptr_ptr if it's not allocated.

23 years agodaily update
Alan Modra [Fri, 5 Oct 2001 00:00:06 +0000 (00:00 +0000)]
daily update

23 years ago*** empty log message ***
gdbadmin [Fri, 5 Oct 2001 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

23 years ago2001-10-04 Frank Ch. Eigler <fche@redhat.com>
Frank Ch. Eigler [Thu, 4 Oct 2001 22:11:12 +0000 (22:11 +0000)]
2001-10-04  Frank Ch. Eigler  <fche@redhat.com>

* lib/insight-support.exp (gdbtk_start): Don't exit dejagnu
if gdb child process crashes, just signal an error.

23 years ago * config/tc-mips.c (prev_insn_reloc_type): Make it an array to hold a
Thiemo Seufer [Thu, 4 Oct 2001 20:07:00 +0000 (20:07 +0000)]
* config/tc-mips.c (prev_insn_reloc_type): Make it an array to hold a
relocation triple.
(prev_insn_fixp): Likewise.
(append_insn): Changed prototype to accept a relocation pointer.
(imm_reloc): Make it an array.
(offset_reloc): Likewise.
(md_assemble): Handle triple relocations.
(append_insn): Likewise. Add handling for some NewABI relocations.
(mips_no_prev_insn): Handle triple relocations.
(macro_build): Likewise. Add handling for some NewABI relocations.
Move handling for the 'u' case to append_insn().
(mips16_macro_build): Handle triple relocations.
(macro_build_lui): Likewise. Don't handle _gp_disp as special symbol
for NewABI.
(mips_ip): Handle triple relocations.
(mips16_ip): Likewise.
(mips_force_relocation): Force handling of triple relocations
without symbols for NewABI.
(md_apply_fix): Add handling for some NewABI relocations.

23 years ago * config/tc-i386.c (parse_register): If not producing code for
Alan Modra [Thu, 4 Oct 2001 18:01:46 +0000 (18:01 +0000)]
* config/tc-i386.c (parse_register): If not producing code for
x86_64, reject x86_64 register name matches.
(md_assemble): Remove now redundant check for x86_64 regs.

23 years agoFix a comment typo in last commit.
Alan Modra [Thu, 4 Oct 2001 16:18:32 +0000 (16:18 +0000)]
Fix a comment typo in last commit.

23 years ago * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
Alan Modra [Thu, 4 Oct 2001 16:09:03 +0000 (16:09 +0000)]
* elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
copying flags if this is a weakdef.

23 years agosomehow missed committing this.
Alan Modra [Thu, 4 Oct 2001 15:37:38 +0000 (15:37 +0000)]
somehow missed committing this.
* dep-in.sed: Remove symcat.h from dependencies.

23 years ago * main.c (enable_external_editor): Don't declare.
Tom Tromey [Thu, 4 Oct 2001 15:04:27 +0000 (15:04 +0000)]
* main.c (enable_external_editor): Don't declare.
(captured_main): Don't set enable_external_editor.

23 years ago * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
Alan Modra [Thu, 4 Oct 2001 12:30:26 +0000 (12:30 +0000)]
* elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
packing.

23 years ago * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
Alan Modra [Thu, 4 Oct 2001 05:50:29 +0000 (05:50 +0000)]
* elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
to 1 rather than 0 to avoid confusing copy_indirect_symbol.
(mips_elf_sort_hash_table_f): Compare got.offset against 1.

23 years ago * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
Alan Modra [Thu, 4 Oct 2001 05:40:43 +0000 (05:40 +0000)]
* Makefile.am (BFD_H_DEPS): Add symcat.h.  Ensure everything
depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
backends we configure.  Run "make dep-am".
(install-data-local): Install symcat.h.
* dep-in.sed: Remove symcat.h from dependencies.
* Makefile.in: Regenerate.

23 years ago * config/tc-ppc.c (md_assemble <DS relocs>): Test ppc_size as well
Alan Modra [Thu, 4 Oct 2001 05:03:44 +0000 (05:03 +0000)]
* config/tc-ppc.c (md_assemble <DS relocs>): Test ppc_size as well
as BFD_DEFAULT_TARGET_SIZE.
(ppc_tc): Likewise.
(ppc_is_toc_sym): Likewise.
(md_apply_fix3): Likewise.

23 years ago Testcase updates for the previous patch.
Thiemo Seufer [Thu, 4 Oct 2001 00:57:01 +0000 (00:57 +0000)]
 Testcase updates for the previous patch.

23 years agodaily update
Alan Modra [Thu, 4 Oct 2001 00:03:26 +0000 (00:03 +0000)]
daily update

23 years ago*** empty log message ***
gdbadmin [Thu, 4 Oct 2001 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

23 years ago* genscripts.sh: Include a comment at the top of each generated
Jim Blandy [Wed, 3 Oct 2001 21:36:43 +0000 (21:36 +0000)]
* genscripts.sh: Include a comment at the top of each generated
script, explaining its purpose.

23 years ago * config/tc-mips.c (mips_64): Remove.
Thiemo Seufer [Wed, 3 Oct 2001 20:30:15 +0000 (20:30 +0000)]
* config/tc-mips.c (mips_64): Remove.
(mips_target_format): Move downwards in file, use HAVE_64BIT_OBJECTS
in it.
(mips_abi_level, mips_abi): New enum.
(mips_32bit_abi): Remove.
(HAVE*PRS): Use mips_abi instead of mips_32bit_abi.
(HAVE_NEWABI): New define.
(HAVE_64BIT_OBJECTS): New define.
(HAVE_32BIT_ADDRESSES): Don't return true for 64bit objects.
(HAVE_64BIT_ADDRESSES): New define, inverse of HAVE_32BIT_ADDRESSES.
(support_64bit_objects): New prototype.
(md_begin): Use mips_abi instead of mips_32bit_abi. Don't write
.reginfo section for n32, use .MIPS.options instead.
(support_64bit_objects): New function, code from md_parse_option.
(md_longopts): Add -n32 option.
(md_parse_option): Use mips_abi instead of mips_32bit_abi/mips64.
Add -n32 option. Protect with OBJ_ELF.
(s_mipsset): Use mips_abi instead of mips_32bit_abi.
(mips_elf_final_processing): Likewise. Don't write .reginfo section
for n32, use .MIPS.options instead.

23 years agoAdd support for -z nocopyreloc.
Alan Modra [Wed, 3 Oct 2001 15:11:48 +0000 (15:11 +0000)]
Add support for -z nocopyreloc.

23 years agoMissed mention of regenerating po/POTFILES.in
Alan Modra [Wed, 3 Oct 2001 14:17:12 +0000 (14:17 +0000)]
Missed mention of regenerating po/POTFILES.in

23 years ago * elf64-mips.c (elf_backend_may_use_rela_p): New define.
Thiemo Seufer [Wed, 3 Oct 2001 14:12:12 +0000 (14:12 +0000)]
* elf64-mips.c (elf_backend_may_use_rela_p): New define.
(elf_backend_default_use_rela_p): New define.

23 years ago * binutils-all/readelf.exp: Exclude mips*-*-elf* from 'readelf -wi'
Thiemo Seufer [Wed, 3 Oct 2001 13:51:09 +0000 (13:51 +0000)]
* binutils-all/readelf.exp: Exclude mips*-*-elf* from 'readelf -wi'
test.

23 years agoRegenerate configure to include the gettext.m4 change. Update
Alan Modra [Wed, 3 Oct 2001 13:46:35 +0000 (13:46 +0000)]
Regenerate configure to include the gettext.m4 change.  Update
opcodes/po/POTFILES.in

23 years ago * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
Alan Modra [Wed, 3 Oct 2001 13:16:18 +0000 (13:16 +0000)]
* elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
change.

23 years agobfd/ChangeLog
Alan Modra [Wed, 3 Oct 2001 12:29:10 +0000 (12:29 +0000)]
bfd/ChangeLog
* configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h.
* configure: Regenerate.
* Makefile.am (BFD_H_FILES): Add version.h.
* Makefile.in: Regenerate.
* po/SRC-POTFILES.in: Regenerate.

bfd/doc/ChangeLog
* Makefile.am (BFD_H_DEP): Add ../version.h.
* Makefile.in: Regenerate.

23 years ago * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
Alan Modra [Wed, 3 Oct 2001 08:33:18 +0000 (08:33 +0000)]
* elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
elf_backend_copy_indirect_symbol so that backend has a chance to
copy other necessary fields.
* elf-bfd.h (struct elf_backend_data): Update description of
elf_backend_copy_indirect_symbol.
* elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after
copying flags if this is a weakdef.
* elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
(elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
than bfd_link_hash_lookup.
* elf32-i386 (elf_i386_adjust_dynamic_symbol): Don't do copy
reloc processing for weakdefs.
* elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
* elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.

23 years agodaily update
Alan Modra [Wed, 3 Oct 2001 02:02:26 +0000 (02:02 +0000)]
daily update

23 years ago * gettext.m4: Test po/POTFILES.in exists before trying to read.
Alan Modra [Wed, 3 Oct 2001 01:46:25 +0000 (01:46 +0000)]
* gettext.m4: Test po/POTFILES.in exists before trying to read.

23 years ago*** empty log message ***
gdbadmin [Wed, 3 Oct 2001 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

23 years agoSplit SVR4/SunOS solib support.
Kevin Buettner [Tue, 2 Oct 2001 23:11:24 +0000 (23:11 +0000)]
Split SVR4/SunOS solib support.

23 years ago* lib/gdb.exp (test_xfail_format): Simplify.
Jim Blandy [Tue, 2 Oct 2001 19:42:10 +0000 (19:42 +0000)]
* lib/gdb.exp (test_xfail_format): Simplify.

* lib/gdb.exp (setup_xfail_format): Don't forget to put a `$' in
front of the variable name `format'.  Simplify `if'.

23 years agoFix (for the last time, I hope) handling of R_ARC_B22_PCREL.
Nick Clifton [Tue, 2 Oct 2001 14:28:42 +0000 (14:28 +0000)]
Fix (for the last time, I hope) handling of R_ARC_B22_PCREL.

23 years ago * config/tc-ppc.c (md_apply_fix3 <BFD_RELOC_CTOR>): Make it 64
Alan Modra [Tue, 2 Oct 2001 09:28:53 +0000 (09:28 +0000)]
* config/tc-ppc.c (md_apply_fix3 <BFD_RELOC_CTOR>): Make it 64
bits if target is 64 bit.

23 years ago * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast
Alan Modra [Tue, 2 Oct 2001 09:22:46 +0000 (09:22 +0000)]
* elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast
result of ELF64_R_TYPE to enum before using in a switch.
(ppc64_elf_gc_mark_hook): Likewise.
(ppc64_elf_gc_sweep_hook): Likewise.
(ppc64_elf_reloc_type_class): Likewise.

23 years ago * doc/as.texinfo (listing): Fix typo.
Alan Modra [Tue, 2 Oct 2001 09:18:42 +0000 (09:18 +0000)]
* doc/as.texinfo (listing): Fix typo.

23 years agoAdd more detection of 64-bit DWARF sections
Nick Clifton [Tue, 2 Oct 2001 09:08:44 +0000 (09:08 +0000)]
Add more detection of 64-bit DWARF sections

23 years ago * ldver.h (ld_program_version): Remove declaration.
Alan Modra [Tue, 2 Oct 2001 06:04:23 +0000 (06:04 +0000)]
* ldver.h (ld_program_version): Remove declaration.
* lexsup.c (parse_args): Move printing of copyright message..
* ldver.c (ldversion): .. to here.
Use BFD_VERSION_STRING in place of BFD_VERSION.
(ld_program_version): Remove.
* Makefile.am (Makefile): Depend on bfd/configure.in
Run "make dep-am"
* Makefile.in: Regenerate.

23 years ago * Makefile.am (Makefile): Depend on bfd/configure.in
Alan Modra [Tue, 2 Oct 2001 06:03:15 +0000 (06:03 +0000)]
* Makefile.am (Makefile): Depend on bfd/configure.in
Run "make dep-am"
* Makefile.in: Regenerate.

23 years ago * as.c (print_version_id): Use BFD_VERSION_STRING in place of
Alan Modra [Tue, 2 Oct 2001 06:02:51 +0000 (06:02 +0000)]
* as.c (print_version_id): Use BFD_VERSION_STRING in place of
BFD_VERSION.
* Makefile.am (Makefile): Depend on bfd/configure.in
Run "make dep-am"
* Makefile.in: Regenerate.

23 years ago * coffdump.c (PROGRAM_VERSION): Delete.
Alan Modra [Tue, 2 Oct 2001 06:02:12 +0000 (06:02 +0000)]
* coffdump.c (PROGRAM_VERSION): Delete.
(main <'V'>): Call print_version.
* srconv.c: Likewise.
* sysdump.c: Likewise.
* version.c (program_version): Remove.
(print_version): Use BFD_VERSION_STRING.  Just print the current
year in copyright message.
* addr2line.c (program_version): Remove unused declaration.
* objdump.c (display_target_tables): Use BFD_VERSION_STRING in
place of BFD_VERSION.
* Makefile.am (Makefile): Depend on bfd/configure.in
(cplus-dem.o): Depend on Makefile.
Run "make dep-am"
* Makefile.in: Regenerate.

23 years ago * common.h (NLM_CAT, NLM_CAT3): Don't define.
Alan Modra [Tue, 2 Oct 2001 05:59:56 +0000 (05:59 +0000)]
* common.h (NLM_CAT, NLM_CAT3): Don't define.
(NLM_CAT4): Update conditions under which this is defined.  Document
why CONCAT4 can't be used.

23 years ago * Makefile.in: Regenerate.
Alan Modra [Tue, 2 Oct 2001 05:59:30 +0000 (05:59 +0000)]
* Makefile.in: Regenerate.

23 years ago * version.h: New file.
Alan Modra [Tue, 2 Oct 2001 05:58:41 +0000 (05:58 +0000)]
* version.h: New file.
* bfd-in.h: (BFD_VERSION): Substitute bfd_version.
(BFD_VERSION_DATE): Define.
(BFD_VERSION_STRING): Define.
* configure.in: AC_SUBST bfd_version, bfd_version_date and
bfd_version_string.
(AC_OUTPUT <bfd-in3.h>): Depend on version.h.
* bfd-in2.h: Regenerate.
* configure: Regenerate.
* Makefile.am: Run "make dep-am"
* Makefile.in: Regenerate.

* bfd-in.h: Include "symcat.h".
(CONCAT4): Redefine as for old CAT4.
* aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
Add warning regarding whitespace.
* aout-cris.c: Likewise.
* aout-ns32k.c: Likewise.
* aout-sparcle.c: Likewise.
* aout-tic30.c: Likewise.
* aout0.c: Likewise.
* armnetbsd.c: Likewise.
* demo64.c: Likewise.
* elf-bfd.h: Likewise.
* gen-aout.c: Likewise.
* host-aout.c: Likewise.
* hp300bsd.c: Likewise.
* hp300hpux.c: Likewise.
* i386aout.c: Likewise.
* i386bsd.c: Likewise.
* i386dynix.c: Likewise.
* i386freebsd.c: Likewise.
* i386linux.c: Likewise.
* i386lynx.c: Likewise.
* i386mach3.c: Likewise.
* i386netbsd.c: Likewise.
* libaout.h: Likewise.
* m68k4knetbsd.c: Likewise.
* m68klinux.c: Likewise.
* m68klynx.c: Likewise.
* m68knetbsd.c: Likewise.
* m88kmach3.c: Likewise.
* mipsbsd.c: Likewise.
* newsos3.c: Likewise.
* ns32knetbsd.c: Likewise.
* pc532-mach.c: Likewise.
* pdp11.c: Likewise.
* riscix.c: Likewise.
* sparclinux.c: Likewise.
* sparclynx.c: Likewise.
* sparcnetbsd.c: Likewise.
* sunos.c: Likewise.
* targets.c: Likewise.
* vaxnetbsd.c: Likewise.
* vms-hdr.c: Likewise.

23 years ago 2001-10-01 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Tue, 2 Oct 2001 02:53:48 +0000 (02:53 +0000)]
 2001-10-01  Elena Zannoni <ezannoni@redhat.com>

        * Makefile.in (mipsread.o): Remove old dependency on partial-stab.h.

23 years ago2001-10-01 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Tue, 2 Oct 2001 02:51:41 +0000 (02:51 +0000)]
2001-10-01  Elena Zannoni <ezannoni@redhat.com>

        * xcoffread.c (N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_COMM, N_FN,
        N_EXT, N_INDR, N_SETA, N_SETT, N_SETD, N_SETB, N_SETV,
        CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB,
        SET_NAMESTRING): Delete definitions.
        Don't include language.h any more.
        Don't include partial-stab.h any more.
        (scan_xcoff_symtab): Don't jump through hoops to reuse code in
        partial-stab.h, include the code directly, instead.

        * Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.

23 years ago2001-10-01 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Tue, 2 Oct 2001 02:39:48 +0000 (02:39 +0000)]
2001-10-01  Elena Zannoni <ezannoni@redhat.com>

* xcoffread.c (N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_COMM, N_FN,
N_EXT, N_INDR, N_SETA, N_SETT, N_SETD, N_SETB, N_SETV,
CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB,
SET_NAMESTRING): Delete definitions.
Don't include language.h any more.
Don't include partial-stab.h any more.
(scan_xcoff_symtab): Don't jump through hoops to reuse code in
partial-stab.h, include the code directly, instead.

* Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.

23 years ago*** empty log message ***
gdbadmin [Tue, 2 Oct 2001 00:00:06 +0000 (00:00 +0000)]
*** empty log message ***

23 years ago * gdb.threads/pthreads.exp: Wait for output and delay
Daniel Jacobowitz [Mon, 1 Oct 2001 20:36:48 +0000 (20:36 +0000)]
    * gdb.threads/pthreads.exp: Wait for output and delay
        before sending ^C.

23 years ago * gdb.mi/mi-var-display.exp (continue to incr_a): Recognize
Daniel Jacobowitz [Mon, 1 Oct 2001 20:31:38 +0000 (20:31 +0000)]
    * gdb.mi/mi-var-display.exp (continue to incr_a):  Recognize
        some incorrect output instead of timing out.
        * gdb.mi/mi-var-display.exp (continue to incr_a):  Likewise.

23 years ago* infcmd.c (do_registers_info): Delete code dumping large
Andrew Cagney [Mon, 1 Oct 2001 18:11:19 +0000 (18:11 +0000)]
* infcmd.c (do_registers_info): Delete code dumping large
registers.  Handled by val_print.

23 years agoDetect and warn about DWARF64 format .debug_arange sections
Nick Clifton [Mon, 1 Oct 2001 16:15:50 +0000 (16:15 +0000)]
Detect and warn about DWARF64 format .debug_arange sections

23 years agobfd/
Alan Modra [Mon, 1 Oct 2001 14:03:36 +0000 (14:03 +0000)]
bfd/
* bfd-in.h: Remove comments regarding generated files.
* libbfd-in.h: Likewise.
* libcoff-in.h: Likewise.
* bfd-in2.h: Regenerate.
* libbfd.h: Likewise.
* libcoff.h: Likewise.
bfd/doc/
* header.sed: New file, adds header to generated files.
* Makefile.am: Rewrite rules generating libbfd.h, libcoff.h and
bfd.h, using above.  Add missing elf.c dependecy for libbfd.h.
* Makefile.in: Regenerate.

23 years ago2001-09-30 H.J. Lu <hjl@gnu.org>
H.J. Lu [Mon, 1 Oct 2001 06:30:19 +0000 (06:30 +0000)]
2001-09-30  H.J. Lu  <hjl@gnu.org>

* config/obj-elf.c (obj_elf_parse_section_letters): Accept "am"
and "ams" for compatibility.

23 years ago * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
Hans-Peter Nilsson [Mon, 1 Oct 2001 00:16:27 +0000 (00:16 +0000)]
* elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
partial_inplace, matching assembler output.  Set src_mask to
all ones.
(sh_elf_relocate_section): Delete misplaced comment.
For relocatable linking against section symbol, call
_bfd_relocate_contents for partial_inplace relocs and adjust
rel->r_addend for others.
<case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
bfd_get_32, not at rel->r_addend.

23 years ago * config/tc-sh.h (MD_PCREL_FROM_SECTION): Define.
Hans-Peter Nilsson [Mon, 1 Oct 2001 00:08:36 +0000 (00:08 +0000)]
* config/tc-sh.h (MD_PCREL_FROM_SECTION): Define.
(md_pcrel_from_section): Prototype.

23 years ago * config/tc-sh.c (md_pcrel_from_section): Transformed from
Hans-Peter Nilsson [Mon, 1 Oct 2001 00:06:58 +0000 (00:06 +0000)]
* config/tc-sh.c (md_pcrel_from_section): Transformed from
md_pcrel_from.  Handle pc-relativeness against link-time
symbol.  Handle relativeness to elsewhere than the fixup.

23 years ago*** empty log message ***
gdbadmin [Mon, 1 Oct 2001 00:00:05 +0000 (00:00 +0000)]
*** empty log message ***

23 years ago * Makefile.am: Update dependencies with "make dep-am".
Hans-Peter Nilsson [Sun, 30 Sep 2001 22:22:05 +0000 (22:22 +0000)]
* Makefile.am: Update dependencies with "make dep-am".
* Makefile.in: Regenerate.

23 years ago2001-09-30 John Healy <jhealy@redhat.com>
John Healy [Sun, 30 Sep 2001 20:06:37 +0000 (20:06 +0000)]
2001-09-30  John Healy  <jhealy@redhat.com>

        * cgen-ibld.in (insert_1): Switched bfd_get_bits and bfd_set_bits
        calls to cgen_get_insn_value and cgen_put_insn_value calls.
        (extract_1): Switched bfd_get_bits call to cgen_get_insn_value call.

23 years ago * Makefile.am: Update dependencies with "make dep-am".
Hans-Peter Nilsson [Sun, 30 Sep 2001 19:53:06 +0000 (19:53 +0000)]
* Makefile.am: Update dependencies with "make dep-am".
* Makefile.in: Regenerate.

23 years ago * Makefile.am: Update dependencies with "make dep-am".
Hans-Peter Nilsson [Sun, 30 Sep 2001 18:54:18 +0000 (18:54 +0000)]
* Makefile.am: Update dependencies with "make dep-am".
* Makefile.in: Regenerate.

23 years ago* gdbarch.sh (gdbarch_alloc): Name the new architecture
Andrew Cagney [Sun, 30 Sep 2001 16:54:28 +0000 (16:54 +0000)]
* gdbarch.sh (gdbarch_alloc): Name the new architecture
``current_gdbarch'' so that it, and not the identically named
global is refered to by macros.
* gdbarch.c: Regenerate.

23 years ago* cli/cli-decode.c (add_set_boolean_cmd): Define.
Andrew Cagney [Sun, 30 Sep 2001 16:16:16 +0000 (16:16 +0000)]
* cli/cli-decode.c (add_set_boolean_cmd): Define.
* cli/cli-decode.h (add_set_boolean_cmd): Declare.
* command.h (add_set_boolean_cmd): Ditto.
* remote.c (_initialize_remote): Use add_set_boolean_cmd for "set
remotebreak"

23 years ago * Makefile.am: Update dependencies with "make dep-am".
Hans-Peter Nilsson [Sun, 30 Sep 2001 15:55:46 +0000 (15:55 +0000)]
* Makefile.am: Update dependencies with "make dep-am".
* Makefile.in: Regenerate.

23 years ago * config/tc-m68hc11.c (cmp_opcode): Define prototype.
Stephane Carrez [Sun, 30 Sep 2001 09:20:55 +0000 (09:20 +0000)]
* config/tc-m68hc11.c (cmp_opcode): Define prototype.
(print_opcode_format, skip_whites): Likewise.
(convert_branch, m68hc11_new_insn): Likewise.
(build_dbranch_insn, build_indexed_byte): Likewise.
(build_reg_mode, find, find_opcode): Likewise.
(print_insn_format): Fix call to print_opcode_format.
(md_assemble): Fix call to build_dbranch_insn.

23 years ago2001-09-29 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sun, 30 Sep 2001 04:09:35 +0000 (04:09 +0000)]
2001-09-29  H.J. Lu  <hjl@gnu.org>

* gas/i386/i386.exp: Run 64bit tests only for "i*86-*-* and
x86_64-*-*.

23 years ago * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
Alan Modra [Sun, 30 Sep 2001 03:03:11 +0000 (03:03 +0000)]
* elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
the old dir refcount, so we indirectly set them to init_refcount.
Short-circuit asserts when we've just verified they are true.

23 years ago*** empty log message ***
gdbadmin [Sun, 30 Sep 2001 00:00:06 +0000 (00:00 +0000)]
*** empty log message ***

23 years ago* gdbarch.sh (gdbarch_dump): Sort output.
Andrew Cagney [Sat, 29 Sep 2001 22:35:53 +0000 (22:35 +0000)]
* gdbarch.sh (gdbarch_dump): Sort output.
* gdbarch.c: Regenerate.

23 years ago* rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
Andrew Cagney [Sat, 29 Sep 2001 21:32:01 +0000 (21:32 +0000)]
* rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
architecture to infer the wordsize.  Previous architecture may not
be a PowerPC.

23 years ago* Makefile.in (configure-target-gperf): Depend on $(ALL_GCC_CXX).
Alexandre Oliva [Sat, 29 Sep 2001 19:38:32 +0000 (19:38 +0000)]
* Makefile.in (configure-target-gperf): Depend on $(ALL_GCC_CXX).

23 years agomerge from gcc
DJ Delorie [Sat, 29 Sep 2001 16:55:59 +0000 (16:55 +0000)]
merge from gcc

23 years agoOops - forgot to remove xfail
Hans-Peter Nilsson [Sat, 29 Sep 2001 13:02:24 +0000 (13:02 +0000)]
Oops - forgot to remove xfail

23 years ago * ld-linkonce/linkonce.exp: New file.
Hans-Peter Nilsson [Sat, 29 Sep 2001 13:01:17 +0000 (13:01 +0000)]
* ld-linkonce/linkonce.exp: New file.
* ld-linkonce/x.s, ld-linkonce/y.s, ld-linkonce/zeroeh.ld,
ld-linkonce/zeroehl32.d: New test.

23 years agoFrom John Reiser <jreiser@BitWagon.com>
Alan Modra [Sat, 29 Sep 2001 12:57:54 +0000 (12:57 +0000)]
From John Reiser <jreiser@BitWagon.com>
* ldlang.c (lang_common): Conditionally inhibit Common allocation.
* lexsup.c: Add --no-define-common commandline option.
* ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
* ldlex.l: Likewise.
* ld.h: Add command_line.inhibit_common_definition.
* ldmain.c (main): Initialize.
* ld.texinfo: Document.

23 years ago * section.c (struct sec): Remove kept_section.
Alan Modra [Sat, 29 Sep 2001 12:07:01 +0000 (12:07 +0000)]
* section.c (struct sec): Remove kept_section.
(STD_SECTION): Remove kept_section initialisation.
(bfd_make_section_anyway): Here too.
* ecoff.c (bfd_debug_section): Remove kept_section initialisation.
* cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
* elflink.h (elf_link_input_bfd): Set discarded link-once section
symbols to zero, and remove all code involved with kept_section
and tracking section symbol values.
* bfd-in2.h: Regenerate.
* configure.in: Bump version number.
* configure: Regenerate.

* ldlang.c (section_already_linked): Remove assignment to kept_section.

23 years ago * elf64-ppc.c (struct ppc_dyn_relocs): New.
Alan Modra [Sat, 29 Sep 2001 06:49:16 +0000 (06:49 +0000)]
* elf64-ppc.c (struct ppc_dyn_relocs): New.
(IS_ABSOLUTE_RELOC): Define.
(struct ppc_link_hash_entry): New.
(struct ppc_link_hash_table): New.
(ppc_hash_table): Define.
(link_hash_newfunc): New function.
(ppc64_elf_link_hash_table_create): New function.
(create_got_section): New function.
(ppc64_elf_create_dynamic_sections): Call create_got_section.  Stash
pointers to our dynamic sections in hash table.
(ppc64_elf_copy_indirect_symbol): New function.
(ppc64_elf_check_relocs): Remove DEBUG code.  Use short-cuts to
dynamic sections.  Localise vars.  Modify code for refcounts
starting from zero.  Don't allocate here, or force symbols dynamic.
Don't copy all relocs if shared, select ones we need.  Add code
to track possible copy relocs for non-shared link.
(ppc64_elf_gc_mark_hook): Update comment.
(ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
(ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code.  Rewrite .plt
code for reference counting garbage collection.  Don't create .plt
entries for functions that don't comply with ABI naming convention,
and don't allocate .plt space here.  Use short-cuts to dynamic
sections.  If possible, keep dynamic relocations instead of using
copy relocs.  Remove confused comments.
(ppc_adjust_dynindx): Delete.
(WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
(allocate_dynrelocs): New function.
(readonly_dynrelocs): New function.
(ppc64_elf_size_dynamic_sections): Rewrite.  Allocate local .got
space here, and call allocate_dynrelocs to allocate space for
global .plt, .got and reloc sections.  Use short-cuts to dynamic
sections.  Call readonly_dynrelocs to determine whether we need
DT_TEXTREL.  Don't generate section symbols here, the generic
ELF linker code does it for us.
(ppc64_elf_final_link): Call regular ELF backend linker rather than
gc variety, since we do our own .got handling.
(ppc64_elf_relocate_section): Remove DEBUG code.  Make use of
dynamic section short-cuts.  Localise vars, and delay setting.
Handle unknown relocs in main switch statement.  Replace ugly
complicated tests for unresolvable relocs with a simple direct
scheme using "unresolved_reloc" var.  Test ELF_ST_VISIBILITY
before allowing an undefined sym in a shared lib.  Do R_*_DS tests
after main switch, when we've set addend.  Do non-addend insn
tweaks before main swithc.  Ignore input_section->vma when
calculating reloc offsets as it's always zero.  Rewrite dynamic
reloc handling.  Consolidate R_*_HA handling.  Handle more relocs.
(ppc64_elf_finish_dynamic_symbol): Remove DEBUG code.  Make use
of dynamic section short-cuts.  Reorganise .plt handling code.
Remove confused comments.  Take note of ELF_LINK_FORCED_LOCAL.
Move expressions out of swap_reloca_out function calls.
(ppc64_elf_reloc_type_class): New function.
(ppc64_elf_info_to_howto): Move common expression to local var.
(ppc64_elf_finish_dynamic_sections): Remove DEBUG code.  Make use
of dynamic section short-cuts.  Don't fiddle with section syms
here as the ELF linker does it for us.
(elf_backend_can_refcount): Define.
(bfd_elf64_bfd_link_hash_table_create): Define.
(elf_backend_copy_indirect_symbol): Define.
(elf_backend_reloc_type_class): Define.
(elf_backend_*, bfd_elf64_bfd_* defines): Sort.

23 years ago * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
Alan Modra [Sat, 29 Sep 2001 06:21:59 +0000 (06:21 +0000)]
* elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
(struct elf_backend_data): Add can_refcount.
* elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts.  Set
got.refcount and plt.refcount from init_refcount.
(_bfd_elf_link_hash_table_init): Set up init_refcount.
(_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
rather than got/plt.offset, and test for <= 0 rather than -1.
* elflink.h (size_dynamic_sections): Set init_refcount to -1.
* elfxx-target.h (elf_backend_can_refcount): Define.
(elfNN_bed): Init can_refcount.
* linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
(_bfd_generic_link_hash_newfunc): Likewise.
* elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
starting from zero.
(elf_backend_can_refcount): Define.
* elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
starting from zero.
(elf32_hppa_copy_indirect_symbol): Make static to agree with
prototype.
(elf_backend_can_refcount): Define.
* elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
starting from zero.
(allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
(elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
(elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
(elf_backend_can_refcount): Define.
(elf_i386_copy_indirect_symbol): Make static to agree with
prototype.  Formatting fix.
* elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
starting from zero.
(elf_backend_can_refcount): Define.
* elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
starting from zero.
(elf_backend_can_refcount): Define.
* elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
starting from zero.
(elf_backend_can_refcount): Define.
* elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
starting from zero.
(elf_backend_can_refcount): Define.
* elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
starting from zero.
(elf_backend_can_refcount): Define.

23 years ago * som.c (som_write_symbol_strings): Cast current_offset in
Alan Modra [Sat, 29 Sep 2001 06:13:53 +0000 (06:13 +0000)]
* som.c (som_write_symbol_strings): Cast current_offset in
bfd_seek call to match param type.

23 years agomerge from gcc
DJ Delorie [Sat, 29 Sep 2001 03:19:56 +0000 (03:19 +0000)]
merge from gcc

23 years ago*** empty log message ***
gdbadmin [Sat, 29 Sep 2001 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***