OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
22 years ago * elflink.h (elf_bfd_final_link): Improve error handling for missing
Jeff Law [Wed, 12 Jun 2002 18:14:05 +0000 (18:14 +0000)]
* elflink.h (elf_bfd_final_link): Improve error handling for missing
dynamic sections.

22 years ago * elf64-hppa.c (allocate_global_data_opd): We don't need an opd entry
Jeff Law [Wed, 12 Jun 2002 18:12:25 +0000 (18:12 +0000)]
* elf64-hppa.c (allocate_global_data_opd): We don't need an opd entry
for a symbol that has no output section.
(allocate_dynrel_entries): Correct comment.
(elf64_hppa_finalize_dynreloc): Likewise.  Don't create an opd entry
unless we want one.
(elf64_hppa_finalize_opd): Prevent segfault if dyn_h is NULL.
(elf64_hppa_finalize_dlt): Likewise.  Prevent segfault for symbols
with no section.  Remove unnecessary parentheses.

22 years ago * symbols.c (resolve_symbol_value): Initialise final_val.
Ben Elliston [Wed, 12 Jun 2002 16:39:29 +0000 (16:39 +0000)]
* symbols.c (resolve_symbol_value): Initialise final_val.
* subsegs.c (subsegs_print_statistics): Cast frchp to void *.

22 years agoChange default csect alignment to 4 bytes.
Tom Rix [Wed, 12 Jun 2002 16:14:02 +0000 (16:14 +0000)]
Change default csect alignment to 4 bytes.

22 years agoAdd and fix tests to reflect changing text alignment to 4 bytes.
Tom Rix [Wed, 12 Jun 2002 16:10:11 +0000 (16:10 +0000)]
Add and fix tests to reflect changing text alignment to 4 bytes.

22 years agoChange text alignement to 4 bytes.
Tom Rix [Wed, 12 Jun 2002 16:04:39 +0000 (16:04 +0000)]
Change text alignement to 4 bytes.

22 years ago* Makefile.in (CFLAGS_FOR_TARGET): Add -O2.
DJ Delorie [Wed, 12 Jun 2002 15:04:45 +0000 (15:04 +0000)]
* Makefile.in (CFLAGS_FOR_TARGET): Add -O2.

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

22 years agoImport latest version of texi2pod.pl from FSF GCC sources.
Nick Clifton [Tue, 11 Jun 2002 15:34:33 +0000 (15:34 +0000)]
Import latest version of texi2pod.pl from FSF GCC sources.

22 years agoRevoke adding mh-s390xpic. Doesn't make any sense because it is not
Martin Schwidefsky [Tue, 11 Jun 2002 13:34:24 +0000 (13:34 +0000)]
Revoke adding mh-s390xpic. Doesn't make any sense because it is not
referenced from anywhere.

22 years agoAJ found the problem and created the patch.
Martin Schwidefsky [Tue, 11 Jun 2002 13:16:01 +0000 (13:16 +0000)]
AJ found the problem and created the patch.

22 years ago2002-06-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
Martin Schwidefsky [Tue, 11 Jun 2002 09:50:44 +0000 (09:50 +0000)]
2002-06-11  Martin Schwidefsky  <schwidefsky@de.ibm.com>

        * ld-undefined/undefined.exp: Add s390x to dwarf2 xfails.

22 years ago2002-06-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
Martin Schwidefsky [Tue, 11 Jun 2002 09:46:38 +0000 (09:46 +0000)]
2002-06-11  Martin Schwidefsky  <schwidefsky@de.ibm.com>

        * mh-s390xpic: New file.

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

22 years ago * ld-mips-elf/region1a.s,
Richard Sandiford [Mon, 10 Jun 2002 16:14:08 +0000 (16:14 +0000)]
* ld-mips-elf/region1a.s,
* ld-mips-elf/region1b.s,
* ld-mips-elf/region1.t,
* ld-mips-elf/region1.d: New test.
* ld-mips-elf/mips-elf.exp: Run it.

22 years ago * ldlang.c (lang_size_sections_1): Skip removed output sections.
Richard Sandiford [Mon, 10 Jun 2002 16:12:04 +0000 (16:12 +0000)]
* ldlang.c (lang_size_sections_1): Skip removed output sections.

22 years ago * section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE
Richard Sandiford [Mon, 10 Jun 2002 16:10:43 +0000 (16:10 +0000)]
* section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE
for removed output sections.

22 years agoUse htab_create_alloc with calloc, not htab_alloc.
Nick Clifton [Mon, 10 Jun 2002 10:18:33 +0000 (10:18 +0000)]
Use htab_create_alloc with calloc, not htab_alloc.

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

22 years ago * config/tc-avr.c (mcu_types): Update.
Marek Michalkiewicz [Sun, 9 Jun 2002 17:57:09 +0000 (17:57 +0000)]
* config/tc-avr.c (mcu_types): Update.

22 years agoMove include/callback.h and include/remote-sim.h to include/gdb/.
Andrew Cagney [Sun, 9 Jun 2002 15:45:44 +0000 (15:45 +0000)]
Move include/callback.h and include/remote-sim.h to include/gdb/.
Update accordingly.

22 years ago2002-06-08 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sun, 9 Jun 2002 03:08:54 +0000 (03:08 +0000)]
2002-06-08  H.J. Lu <hjl@gnu.org>

* elf.c (copy_private_bfd_data): Don't cast to bfd_size_type to
work around a long long bug in gcc 2.96 on mips.

22 years ago* configure.in (vax-*-netbsd*): Re-enable gas.
Jason Thorpe [Sun, 9 Jun 2002 01:32:19 +0000 (01:32 +0000)]
* configure.in (vax-*-netbsd*): Re-enable gas.

22 years ago2002-06-08 Matt Thomas <matt@3am-software.com>
Jason Thorpe [Sun, 9 Jun 2002 00:45:42 +0000 (00:45 +0000)]
2002-06-08  Matt Thomas  <matt@3am-software.com>

* configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
(vax-*-netbsd*): New targets.
* configure: Regenerate.
* config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
* config/tc-vax.c: Add support for ELF and PIC.
(flag_want_pic): New flag.
(float_cons): Fix prototype.
(md_apply_fix3): Adjust for BFD_ASSEMBLER.
(md_assemble): Introduce a new is_absolute local, and use it
rather than repeating the test.  Make fatal errors actually
fatal by using as_fatal as appropriate.  Adjust for BFD_ASSEMBLER.
Add support for ELF.  Add support for PIC.
(md_convert_frag): Adjust for BFD_ASSEMBLER.
(tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
BFD_ASSEMBLER.
(vax_reg_parse): Make the % register prefix mandatory for ELF,
optional for a.out, and not allowed for VMS.  Adjust all callers.
(md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
(md_create_long_jump): Likewise.
(md_undefined_symbol): Likewise.
(md_section_align): Likewise.
(md_shortopts): Allow -k and -K for ELF.
(md_parse_option): Set flag_want_pic if -k or -K.
(tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
(tc_gen_reloc): New function if BFD_ASSEMBLER.
* config/tc-vax.h (tc_headers_hook): Remove.
(TARGET_FORMAT): Set according to object format and target
environment.
(BFD_ARCH, TARGET_ARCH): Define.
(NO_RELOC): Adjust for BFD_ASSEMBLER.
(TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
(tc_fix_adjustable): Define if BFD_ASSEMBLER.
* config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.

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

22 years ago* Makefile.am (BFD32_BACKENDS): Add vax1knetbsd.lo.
Jason Thorpe [Sat, 8 Jun 2002 23:23:08 +0000 (23:23 +0000)]
* Makefile.am (BFD32_BACKENDS): Add vax1knetbsd.lo.
(BFD32_BACKENDS_CFILES): Add vax1knetbsd.c.
Regenerate dependency lists.
* Makefile.in: Regenerate.
* config.bfd (vax-*-netbsdelf*, vax-*-netbsdaout*): Add
vax1knetbsd_vec to targ_selvecs.
* configure.in: Add vax1knetbsd_vec.
* configure: Regenerate.
* targets.c (_bfd_target_vector): Add vax1knetbsd_vec.
* vax1knetbsd.c: New file.
* vaxnetbsd.c: Update copyright years.
(TARGET_PAGE_SIZE): Set to 0x1000.
(DEFAULT_MID): Set to M_VAX4K_NETBSD.

22 years ago2002-06-08 Matt Thomas <matt@3am-software.com>
Jason Thorpe [Sat, 8 Jun 2002 23:01:10 +0000 (23:01 +0000)]
2002-06-08  Matt Thomas  <matt@3am-software.com>

* libaout.h (enum machine_type): Add M_VAX4K_NETBSD.

22 years ago2002-06-08 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Sat, 8 Jun 2002 16:04:35 +0000 (16:04 +0000)]
2002-06-08  Daniel Jacobowitz  <drow@mvista.com>

        Based on patch from Matt Green:
        * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
        * config/tc-mips.c (s_mips_file): Renamed from s_file.
        (s_mips_loc): New function.
        (mips_nonecoff_pseudo_table): Call them.
        (append_insn): Call dwarf2_emit_insn.

22 years ago * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Make static.
Alan Modra [Sat, 8 Jun 2002 12:27:33 +0000 (12:27 +0000)]
* elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Make static.

22 years ago * Makefile.am: Fix quote style in last change.
Alan Modra [Sat, 8 Jun 2002 08:50:44 +0000 (08:50 +0000)]
* Makefile.am: Fix quote style in last change.
* Makefile.in: Regenerate.

22 years ago * Makefile.am: Run "make dep-am".
Alan Modra [Sat, 8 Jun 2002 08:45:03 +0000 (08:45 +0000)]
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.

22 years ago * Makefile.am: Run "make dep-am".
Alan Modra [Sat, 8 Jun 2002 08:44:18 +0000 (08:44 +0000)]
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* doc/Makefile.in: Regnerate.

22 years ago * ldexp.c: Replace CONST with const.
Alan Modra [Sat, 8 Jun 2002 07:39:45 +0000 (07:39 +0000)]
* ldexp.c: Replace CONST with const.
* ldfile.c: Likewise.
* ldfile.h: Likewise.
* ldlex.l: Likewise.
* mri.c: Likewise.
* pe-dll.h: Likewise.

22 years ago * bucomm.c: Replace CONST with const.
Alan Modra [Sat, 8 Jun 2002 07:38:30 +0000 (07:38 +0000)]
* bucomm.c: Replace CONST with const.
* nm.c: Likewise.
* objdump.c: Likewise.

22 years ago * as.c: Replace CONST with const.
Alan Modra [Sat, 8 Jun 2002 07:37:16 +0000 (07:37 +0000)]
* as.c: Replace CONST with const.
* write.c: Likewise.
* config/obj-coff.c: Likewise.
* config/tc-a29k.c: Likewise.
* config/tc-arm.c: Likewise.
* config/tc-dlx.c: Likewise.
* config/tc-h8300.c: Likewise.
* config/tc-h8500.c: Likewise.
* config/tc-i370.c: Likewise.
* config/tc-i860.c: Likewise.
* config/tc-i960.c: Likewise.
* config/tc-m68hc11.c: Likewise.
* config/tc-m68k.c: Likewise.
* config/tc-m88k.c: Likewise.
* config/tc-mcore.c: Likewise.
* config/tc-mips.c: Likewise.
* config/tc-ns32k.c: Likewise.
* config/tc-pdp11.c: Likewise.
* config/tc-pj.c: Likewise.
* config/tc-s390.c: Likewise.
* config/tc-sh.c: Likewise.
* config/tc-sparc.c: Likewise.
* config/tc-tahoe.c: Likewise.
* config/tc-tic80.c: Likewise.
* config/tc-v850.c: Likewise.
* config/tc-vax.c: Likewise.
* config/tc-w65.c: Likewise.
* config/tc-z8k.c: Likewise.

22 years ago * a29k.h: Replace CONST with const.
Alan Modra [Sat, 8 Jun 2002 07:32:12 +0000 (07:32 +0000)]
* a29k.h: Replace CONST with const.
(CONST): Don't define.
* convex.h: Replace CONST with const.
(CONST): Don't define.
* dlx.h: Replace CONST with const.
* or32.h (CONST): Don't define.

22 years ago * a29k-dis.c: Replace CONST with const.
Alan Modra [Sat, 8 Jun 2002 07:29:27 +0000 (07:29 +0000)]
* a29k-dis.c: Replace CONST with const.
* h8300-dis.c: Likewise.
* m68k-dis.c: Likewise.
* or32-dis.c: Likewise.
* sparc-dis.c: Likewise.

22 years ago * armnetbsd.c: Replace CONST with const.
Alan Modra [Sat, 8 Jun 2002 07:27:52 +0000 (07:27 +0000)]
* armnetbsd.c: Replace CONST with const.
* corefile.c: Likewise.
* elf32-dlx.c: Likewise.
* elf64-mips.c: Likewise.
* mmo.c: Likewise.
* ns32knetbsd.c: Likewise.

22 years ago2002-06-08 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Sat, 8 Jun 2002 05:37:29 +0000 (05:37 +0000)]
2002-06-08  Daniel Jacobowitz  <drow@mvista.com>

        Based on patch from Matt Green:
        * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
        * config/tc-mips.c (s_mips_file): Renamed from s_file.
        (s_mips_loc): New function.
        (mips_nonecoff_pseudo_table): Call them.
        (append_insn): Call dwarf2_emit_insn.

22 years ago * elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash
Alan Modra [Sat, 8 Jun 2002 03:01:47 +0000 (03:01 +0000)]
* elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash
table is elf64-sparc.

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

22 years ago * elfxx-mips.c (_bfd_mips_elf_relocate_section): Simplify code.
Thiemo Seufer [Fri, 7 Jun 2002 23:43:41 +0000 (23:43 +0000)]
* elfxx-mips.c (_bfd_mips_elf_relocate_section): Simplify code.
Fix RELA addends to get not shifted in the result. Don't do special
handling of R_MIPS_64 for NewABI.

22 years ago * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
Thiemo Seufer [Fri, 7 Jun 2002 23:26:54 +0000 (23:26 +0000)]
* config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
to -1.
(file_ase_mips16): New veriable.
(mips_eabi64): Remove.
(CPU_HAS_MIPS16): New define.
(CPU_HAS_MDMX): Fix data type.
(md_begin): Code cleanup. Use file_ase_mips16.
(mips_elf_final_processing): Handle mips16 header flag.
Handle EABI flag without intermediate variable.

22 years ago * doc/as.texinfo: Update MIPS documentation.
Thiemo Seufer [Fri, 7 Jun 2002 23:07:19 +0000 (23:07 +0000)]
* doc/as.texinfo: Update MIPS documentation.

22 years ago * config/tc-mips.c: Add define for $zero register.
Thiemo Seufer [Fri, 7 Jun 2002 22:54:47 +0000 (22:54 +0000)]
* config/tc-mips.c: Add define for $zero register.
(md_begin): Add $zero as alias name for $0.
(insn_uses_reg): Use ZERO define.
(mips_ip): Add $zero as alias name for $0.
(mips16_ip): Likewise.
(s_cplocal): Demand empty rest of input line.
(tc_get_register): Likewise. Add support for $kt0, kt1 register
names. Use ZERO define. Fix input_line_pointer progress.

22 years ago2002-06-07 H.J. Lu <hjl@gnu.org>
H.J. Lu [Fri, 7 Jun 2002 16:42:31 +0000 (16:42 +0000)]
2002-06-07  H.J. Lu <hjl@gnu.org>

* readelf.c (DW_CFA_GNU_args_size): Don't define.
(DW_CFA_GNU_negative_offset_extended): Likewise.
(DW_CFA_GNU_window_save): Likewise.
(display_debug_frames): Handle DW_CFA_offset_extended_sf,
DW_CFA_def_cfa_sf and DW_CFA_def_cfa_offset_sf.

22 years ago * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
Alan Modra [Fri, 7 Jun 2002 15:09:21 +0000 (15:09 +0000)]
* emultempl/ppc64elf.em (new_vers_pattern): Warning fix.

22 years agoReplace bfd_alloc/bfd_malloc + memset with bfd_zalloc/bfd_zmalloc
Alan Modra [Fri, 7 Jun 2002 15:04:49 +0000 (15:04 +0000)]
Replace bfd_alloc/bfd_malloc + memset with bfd_zalloc/bfd_zmalloc

22 years ago * symbols.c: Replace CONST by const throughout.
Alan Modra [Fri, 7 Jun 2002 14:57:50 +0000 (14:57 +0000)]
* symbols.c: Replace CONST by const throughout.
(symbol_find_exact): Split out from..
(symbol_find_base): ..here.
* symbols.h: Replace CONST by const throughout.
(symbol_find_exact): Declare.
* config/obj-elf.c: #include "struc-symbol.h".
(elf_frob_file): If group name matches an exported symbol, use that
symbol for the signature and ".group" as the section name.

22 years ago * elf-bfd.h (struct bfd_elf_section_data <group_name>): Replace with
Alan Modra [Fri, 7 Jun 2002 14:57:11 +0000 (14:57 +0000)]
* elf-bfd.h (struct bfd_elf_section_data <group_name>): Replace with
"group" union.
(elf_group_name): Update.
(elf_group_id): Define.
(bfd_elf_set_group_contents): Declare.
* elf.c (elf_fake_sections): Qualify use of elf_group_name.
(set_group_contents): Rename to bfd_elf_set_group_contents.  Remove
ATTRIBUTE_UNUSED from failedptrarg.  If elf_group_id is set, use
that sym for the signature.
(_bfd_elf_compute_section_file_positions): Don't call
set_group_contents for "ld -r" case.
(swap_out_syms): Use bfd_zalloc.
* elflink.h (elf_link_add_archive_symbols): Likewise.
(NAME(bfd_elf,size_dynamic_sections)): Likewise.
(elf_bfd_final_link): Call bfd_elf_set_group_contents.

22 years agoEnable pei386_auto_import by default. Only print a info message about auto
Nick Clifton [Fri, 7 Jun 2002 14:56:01 +0000 (14:56 +0000)]
Enable pei386_auto_import by default.  Only print a info message about auto
imports being resilved if this feature was not requested via a command line
switch.

22 years agoWhen computing size of symbols for an ELF target use the internal size field.
Nick Clifton [Fri, 7 Jun 2002 11:02:48 +0000 (11:02 +0000)]
When computing size of symbols for an ELF target use the internal size field.

22 years agoFix phdrs2 test
Nick Clifton [Fri, 7 Jun 2002 10:30:56 +0000 (10:30 +0000)]
Fix phdrs2 test

22 years agoAdd comment for last change.
Joern Rennecke [Fri, 7 Jun 2002 10:24:56 +0000 (10:24 +0000)]
Add comment for last change.

22 years ago * elf64-ppc.c (ppc64_elf_relocate_section): Allow unresolved
Alan Modra [Fri, 7 Jun 2002 10:21:53 +0000 (10:21 +0000)]
* elf64-ppc.c (ppc64_elf_relocate_section): Allow unresolved
relocs in opd for non-shared too.

22 years ago * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
Alan Modra [Fri, 7 Jun 2002 09:59:07 +0000 (09:59 +0000)]
* scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.

22 years ago * Makefile.am (libbfd.h): Don't use "echo -n".
Alan Modra [Fri, 7 Jun 2002 07:37:20 +0000 (07:37 +0000)]
* Makefile.am (libbfd.h): Don't use "echo -n".
(libcoff.h, bfd.h): Likewise.
* Makefile.in: Regenerate.

22 years agodaily update
Alan Modra [Fri, 7 Jun 2002 00:11:11 +0000 (00:11 +0000)]
daily update

22 years ago * elf32-h8300.c (elf32_h8_relax_section): Ignore uninteresting
Jeff Law [Thu, 6 Jun 2002 21:33:11 +0000 (21:33 +0000)]
    * elf32-h8300.c (elf32_h8_relax_section): Ignore uninteresting
        relocations.

22 years ago * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
Joern Rennecke [Thu, 6 Jun 2002 17:29:55 +0000 (17:29 +0000)]
* config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
but warn about it.
* testsuite/gas/sh/pcrel.s: Also test @(symbol,pc).
* testsuite/gas/sh/pcrel.d: Update.
* testsuite/gas/sh/pcrel.l: New file.

22 years ago2002-06-06 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Thu, 6 Jun 2002 16:38:01 +0000 (16:38 +0000)]
2002-06-06  Daniel Jacobowitz  <drow@mvista.com>

        * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
        and mips_opts.ase_mdmx if they are uninitialized.

22 years agomerge from gcc
DJ Delorie [Thu, 6 Jun 2002 12:55:24 +0000 (12:55 +0000)]
merge from gcc

22 years agoInclude libiberty.h
Nick Clifton [Thu, 6 Jun 2002 10:47:27 +0000 (10:47 +0000)]
Include libiberty.h

22 years ago * peXXigen.c (pe_print_idata): Remove unused variable.
Alan Modra [Thu, 6 Jun 2002 10:45:14 +0000 (10:45 +0000)]
* peXXigen.c (pe_print_idata): Remove unused variable.

22 years agoDo not include empty sections in loadable segments.
Nick Clifton [Thu, 6 Jun 2002 10:03:38 +0000 (10:03 +0000)]
Do not include empty sections in loadable segments.

22 years ago * common.h: Change registry@sco.com to registry@caldera.com.
Alan Modra [Thu, 6 Jun 2002 09:59:38 +0000 (09:59 +0000)]
* common.h: Change registry@sco.com to registry@caldera.com.
(EM_PDP10, EM_PDP11): Define.

22 years ago * bfdint.texi: Change registry@sco.com to registry@caldera.com.
Alan Modra [Thu, 6 Jun 2002 09:58:57 +0000 (09:58 +0000)]
* bfdint.texi: Change registry@sco.com to registry@caldera.com.

22 years ago * stabs.c (_bfd_link_section_stabs): Check that the symbol offset
Richard Sandiford [Thu, 6 Jun 2002 09:24:56 +0000 (09:24 +0000)]
* stabs.c (_bfd_link_section_stabs): Check that the symbol offset
is within the .stabstr section.

22 years ago * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
Jeff Law [Thu, 6 Jun 2002 06:50:12 +0000 (06:50 +0000)]
* gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
(hppa_force_relocation): Check if a stub just before the start symbol
of the last call_info is reachable before forcing relocation.  Fix
typo.

22 years ago * gas/testsuite/gas/hppa/basic/add.s: Set code level to 1.1.
Jeff Law [Thu, 6 Jun 2002 06:49:47 +0000 (06:49 +0000)]
* gas/testsuite/gas/hppa/basic/add.s: Set code level to 1.1.
* gas/testsuite/gas/hppa/basic/branch.s: Likewise.
* gas/testsuite/gas/hppa/basic/dcor.s: Likewise.
* gas/testsuite/gas/hppa/basic/logical.s: Likewise.
* gas/testsuite/gas/hppa/basic/shladd.s: Likewise.
* gas/testsuite/gas/hppa/basic/sub.s: Likewise.
* gas/testsuite/gas/hppa/basic/unit.s: Likewise.
* gas/testsuite/gas/hppa/unsorted/unsorted.exp: Return if target
"*-*-linux*".

22 years ago * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
Jeff Law [Thu, 6 Jun 2002 06:45:54 +0000 (06:45 +0000)]
    * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
        HOSTING_CRT0 and HOSTING_LIBS.

22 years ago * testsuite/binutils-all/objcopy.exp: clear xfail for
Jeff Law [Thu, 6 Jun 2002 06:45:12 +0000 (06:45 +0000)]
    * testsuite/binutils-all/objcopy.exp: clear xfail for
        "hppa*64*-*-hpux*".
        * testsuite/binutils-all/hppa/objdump.exp: Return if
        "*64*-*-*".

22 years agoelf_swap_symbol_in args should be "const PTR", not "const PTR *".
Alan Modra [Thu, 6 Jun 2002 00:29:22 +0000 (00:29 +0000)]
elf_swap_symbol_in args should be "const PTR", not "const PTR *".

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

22 years agogcc:
Joern Rennecke [Wed, 5 Jun 2002 19:54:28 +0000 (19:54 +0000)]
gcc:
* config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
(shl*-*-elf*): Add.
* config/sh/t-be (MULTILIB_ENDIAN): Set.
* config/sh/t-le (MULTILIB_ENDIAN): Likewise.
* t-sh (MULTILIB_ENDIAN): Set.
(MULTILIB_OPTIONS): Use it.
* t-sh64 (MULTILIB_OPTIONS): Likewise.
(MULTILIB_DIRNAMES): Likewise.
bfd:
* config.bfd (sh64l*-*-elf*, shl*-*-elf*): New configurations.
ld:
configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.

22 years ago* emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
Jason Thorpe [Wed, 5 Jun 2002 16:59:12 +0000 (16:59 +0000)]
* emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
(NONPAGED_TEXT_START_ADDR): Set to 0x1000.

22 years ago * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
Alan Modra [Wed, 5 Jun 2002 14:07:29 +0000 (14:07 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
SEC_EXCLUDE sections when doing a relocatable link.

22 years ago * objcopy.c (copy_section): Don't copy SEC_GROUP sections.
Alan Modra [Wed, 5 Jun 2002 14:06:52 +0000 (14:06 +0000)]
* objcopy.c (copy_section): Don't copy SEC_GROUP sections.

22 years ago * elf.c (group_signature): Swap in the whole symbol, and handle
Alan Modra [Wed, 5 Jun 2002 14:06:12 +0000 (14:06 +0000)]
* elf.c (group_signature): Swap in the whole symbol, and handle
extracting section symbol names.
(setup_group): Add comment.
(set_group_contents): When called from objcopy or ld, arrange for
section contents to be written.  Write group member output section
indices to allow objcopy to reorganize sections.
(_bfd_elf_copy_private_section_data): Copy group info.

22 years ago * elf-bfd.h (struct elf_size_info): Add swap_symbol_in field.
Alan Modra [Wed, 5 Jun 2002 13:32:02 +0000 (13:32 +0000)]
* elf-bfd.h (struct elf_size_info): Add swap_symbol_in field.
(bfd_elf32_swap_symbol_in): Update prototype.
(bfd_elf64_swap_symbol_in): Likewise.
* elfcode.h (elf_swap_symbol_in): Change input args to const PTR *.
(elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
* elflink.h (elf_link_is_defined_archive_symbol): Likewise.
(elf_link_add_object_symbols): Likewise.
(elf_link_record_local_dynamic_symbol): Likewise.
(elf_link_input_bfd): Likewise.
(elf_gc_mark): Likewise.
(elf_reloc_symbol_deleted_p): Likewise.
* elf-m10200.c (mn10200_elf_relax_section): Likewise.
(mn10200_elf_relax_delete_bytes): Likewise.
(mn10200_elf_symbol_address_p): Likewise.
(mn10200_elf_get_relocated_section_contents): Likewise.
* elf-m10300.c (mn10300_elf_relax_section): Likewise.
(mn10300_elf_relax_section): Likewise.
(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): Likewise.
(elf32_h8_relax_delete_bytes): Likewise.
(elf32_h8_symbol_address_p): Likewise.
(elf32_h8_get_relocated_section_contents): Likewise.
* elf32-hppa.c (get_local_syms): Likewise.
* elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
* elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
* elf32-sh.c (sh_elf_relax_section): Likewise.
(sh_elf_relax_delete_bytes): Likewise.
(sh_elf_get_relocated_section_contents): Likewise.
* elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
* elf64-alpha.c (elf64_alpha_relax_section): Likewise.
* elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
* elf64-mmix.c (mmix_elf_relax_section): Likewise.
* elf64-ppc.c (get_local_syms): Likewise.
* elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
* elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
* elfcode.h (NAME(_bfd_elf,size_info)): Update initialiser.
* elf64-alpha.c (alpha_elf_size_info): Likewise.
* elf64-hppa.c (hppa64_elf_size_info): Likewise.
* elf64-mips.c (mips_elf64_size_info): Likewise.
* elf64-s390.c (s390_elf64_size_info): Likewise.
* elf64-sparc.c (sparc64_elf_size_info): Likewise.

22 years ago* elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to...
Maciej W. Rozycki [Wed, 5 Jun 2002 10:31:47 +0000 (10:31 +0000)]
* elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to...
elfxx-mips.c (_bfd_mips_elf_ignore_discarded_relocs): ... here.
elf64-mips.c (elf_backend_ignore_discarded_relocs): Use
_bfd_mips_elf_ignore_discarded_relocs.
elfxx-mips.h (_bfd_mips_elf_ignore_discarded_relocs): Declare.

22 years ago2002-06-05 H.J. Lu <hjl@gnu.org>
H.J. Lu [Wed, 5 Jun 2002 06:50:16 +0000 (06:50 +0000)]
2002-06-05  H.J. Lu <hjl@gnu.org>

* elfxx-mips.c (mips_elf_calculate_relocation): Call
_bfd_elf_rel_local_sym for STT_SECTION relocations against
the SEC_MERGE section.

22 years ago * coff-alpha.c: Update copyright date.
Alan Modra [Wed, 5 Jun 2002 04:22:27 +0000 (04:22 +0000)]
* coff-alpha.c: Update copyright date.
* coff-mips.c: Likewise.
* xcoff-target.h: Likewise.

22 years ago * bfd-in.h: Remove "taken from the source" comment.
Alan Modra [Wed, 5 Jun 2002 03:43:11 +0000 (03:43 +0000)]
* bfd-in.h: Remove "taken from the source" comment.
* libbfd-in.h: Likewise.
* libcoff-in.h: Likewise.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* libcoff.h: Regenerate.

* elf.c (bfd_elf_discard_group): Return true.
* elf-bfd.h (bfd_elf_discard_group): Declare.
* bfd-in.h (bfd_elf_discard_group): Don't declare here.
* section.c (bfd_discard_group): Rename to bfd_generic_discard_group.
* bfd.c (bfd_discard_group): Define.
* targets.c (struct bfd_target): Add _bfd_discard_group.
(BFD_JUMP_TABLE_LINK): Here too.
* libbfd-in.h (_bfd_nolink_bfd_discard_group): Define.
* aout-adobe.c (aout_32_bfd_discard_group): Define.
* aout-target.h (MY_bfd_discard_group): Define.
* aout-tic30.c (MY_bfd_discard_group): Define.
* binary.c (binary_bfd_discard_group): Define.
* bout.c (b_out_bfd_discard_group): Define.
* coff-alpha.c (_bfd_ecoff_bfd_discard_group): Define.
* coffcode.h (coff_bfd_discard_group): Define.
* coff-mips.c (_bfd_ecoff_bfd_discard_group): Define.
* elfxx-target.h (bfd_elfNN_bfd_discard_group): Define.
* i386msdos.c (msdos_bfd_discard_group): Define.
* i386os9k.c (os9k_bfd_discard_group): Define.
* ieee.c (ieee_bfd_discard_group): Define.
* ihex.c (ihex_bfd_discard_group): Define.
* mmo.c (mmo_bfd_discard_group): Define.
* nlm-target.h (nlm_bfd_discard_group): Define.
* oasys.c (oasys_bfd_discard_group): Define.
* ppcboot.c (ppcboot_bfd_discard_group): Define.
* som.c (som_bfd_discard_group): Define.
* srec.c (srec_bfd_discard_group): Define.
* tekhex.c (tekhex_bfd_discard_group): Define.
* versados.c (versados_bfd_discard_group): Define.
* vms.c (vms_bfd_discard_group): Define.
* xcoff-target.h (_bfd_xcoff_bfd_discard_group): Define.
* coff64-rs6000.c (rs6000coff64_vec): Update initialiser.
(aix5coff64_vec): Likewise.
* coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.

22 years ago * Makefile.am (libbfd.h): Add "Extracted from.." comment.
Alan Modra [Wed, 5 Jun 2002 03:40:58 +0000 (03:40 +0000)]
* Makefile.am (libbfd.h): Add "Extracted from.." comment.
(libcoff.h, bfd.h): Likewise.
* Makefile.in: Regenerate.

22 years agobfd/
Jason Thorpe [Wed, 5 Jun 2002 01:50:42 +0000 (01:50 +0000)]
bfd/
* Makefile.am (BFD32_BACKENDS): Add elf32-sh64-com.lo.
(BFD32_BACKENDS_CFILES): Add elf32-sh64-com.c.
(elf32-sh64-com.lo): New dependency list.
* Makefile.in: Regenerate.
* configure.in (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec)
(bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec): Add
elf32-sh64-com.lo.
* configure: Regenerate.
* elf32-sh64.c (sh64_address_in_cranges)
(sh64_get_contents_type, sh64_address_is_shmedia): Move to...
(crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb):
(crange_bsearch_cmpl): Prepend _bfd_sh64_ to name and move to...
* elf32-sh64-com.c: ...here.  New file.

include/elf/
* sh.h (_bfd_sh64_crange_qsort_cmpb, _bfd_sh64_crange_qsort_cmpl)
(_bfd_sh64_crange_bsearch_cmpb, _bfd_sh64_crange_bsearch_cmpl): New
prototypes.

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

22 years ago* config/tc-mips.c (mips_after_parse_args): New function.
Maciej W. Rozycki [Tue, 4 Jun 2002 16:33:56 +0000 (16:33 +0000)]
* config/tc-mips.c (mips_after_parse_args): New function.
(md_begin): Move processing of defaults to mips_after_parse_args.
config/tc-mips.h (md_after_parse_args): Define.

22 years ago * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove
Alan Modra [Tue, 4 Jun 2002 05:28:52 +0000 (05:28 +0000)]
* elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove
ATTRIBUTE_UNUSED on used params.
* elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks
before calling bfd_section_from_elf_index on local syms.
* elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.

22 years agobfd:
Jason Thorpe [Tue, 4 Jun 2002 02:57:44 +0000 (02:57 +0000)]
bfd:
* Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo.
(BFD32_BACKENDS_CFILES): Add elf32-sh64-nbsd.c.
(BFD64_BACKENDS): Add elf64-sh64-nbsd.lo.
(BFD64_BACKENDS_CFILES): Add elf64-sh64-nbsd.c.
(elf32-sh64-nbsd.lo, elf64-sh64-nbsd.lo): New rules.
* Makefile.in: Regenerate.
* config.bfd (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
(sh64-*-netbsd*): New targets.
* configure.in: Add bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec,
bfd_elf64_sh64nbsd_vec, and bfd_elf64_sh64lnbsd_vec.
* configure: Regenerate.
* elf32-sh64-nbsd.c: New file.
* elf64-sh64-nbsd.c: New file.
* targets.c: Add extern decls for bfd_elf32_sh64nbsd_vec,
bfd_elf32_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec, and
bfd_elf64_sh64lnbsd_vec.

gas:
* configure.in (sh5*): Set cpu_type to sh64 and endian to big.
(sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
(sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
* configure: Regenerate.
* config/tc-sh64.c (sh64_target_format): Add support for NetBSD
environment.

ld:
* Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
(eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
(eshlelf64_nbsd.c): New rules.
* Makefile.in: Regenerate.
* configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
(sh64-*-netbsd*): New targets.
* emulparams/shelf32_nbsd.sh: New file.
* emulparams/shelf64_nbsd.sh: New file.
* emulparams/shlelf32_nbsd.sh: New file.
* emulparams/shlelf64_nbsd.sh: New file.

opcodes:
* configure.in: Add "sh5*-*" to list of targets which include
sh64 support.
* configure: Regenerate.

22 years ago* config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
Jason Thorpe [Tue, 4 Jun 2002 02:45:51 +0000 (02:45 +0000)]
* config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.

22 years ago * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
Alan Modra [Tue, 4 Jun 2002 01:07:29 +0000 (01:07 +0000)]
* ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.

22 years ago * config/obj-elf.c (obj_elf_change_section): Set and check elf
Alan Modra [Tue, 4 Jun 2002 01:06:16 +0000 (01:06 +0000)]
* config/obj-elf.c (obj_elf_change_section): Set and check elf
linkonce flag.  Print all warnings.
(obj_elf_section): Parse ",comdat" for groups.
(elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups.  Check
consistency of comdat flag.

22 years ago * elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups.
Alan Modra [Tue, 4 Jun 2002 01:05:21 +0000 (01:05 +0000)]
* elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups.
(bfd_section_from_shdr): Likewise.  Set section name of group
sections from signature.
(group_signature): Split out from setup_group.  Ensure symbol table
is available.
(bfd_elf_discard_group): New function.
(_bfd_elf_make_section_from_shdr): Don't set SEC_LINK_ONCE on
.gnu.linkonce* sections if they are members of a group.
(set_group_contents): Set GRP_COMDAT flag.
* section.c (bfd_discard_group): New function.
* bfd-in.h (bfd_elf_discard_group): Declare.
* bfd-in2.h: Regenerate.
* elf-bfd.h (struct bfd_elf_section_data): Add linkonce_p field.
(elf_linkonce_p): Define.

22 years ago * elf.c (bfd_section_from_shdr): Make "name" const.
Alan Modra [Tue, 4 Jun 2002 00:51:08 +0000 (00:51 +0000)]
* elf.c (bfd_section_from_shdr): Make "name" const.
* elf-bfd.h (elf_backend_section_from_shdr): Likewise.
* elf32-i370.c (i370_elf_section_from_shdr): Likewise.
* elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
* elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
* elf32-v850.c (v850_elf_section_from_shdr): Likewise.
* elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
* elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
* elf64-ppc.c (ppc64_elf_section_from_shdr): Likewise.
* elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
* elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
* elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.

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

22 years ago* elfxx-mips.c (ABI_64_P): Use backend's data to determine the
Maciej W. Rozycki [Mon, 3 Jun 2002 18:42:54 +0000 (18:42 +0000)]
* elfxx-mips.c (ABI_64_P): Use backend's data to determine the
ABI.

22 years ago * objdump.c: Fix formatting.
Alan Modra [Mon, 3 Jun 2002 13:02:04 +0000 (13:02 +0000)]
* objdump.c: Fix formatting.

22 years ago2005-06-02 H.J. Lu <hjl@gnu.org>
H.J. Lu [Mon, 3 Jun 2002 04:56:52 +0000 (04:56 +0000)]
2005-06-02  H.J. Lu <hjl@gnu.org>

* ld-srec/sr3.cc (__dso_handle): Added for gcc 3.1 with
-fuse-cxa-atexit.
(__cxa_atexit): Likewise.

22 years ago * elf32-arc.c: Fix formatting.
Kazu Hirata [Mon, 3 Jun 2002 01:57:10 +0000 (01:57 +0000)]
* elf32-arc.c: Fix formatting.
* elf32-arm.h: Likewise.
* elf32-cris.c: Likewise.
* elf32-dlx.c: Likewise.
* elf32-hppa.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-i386qnx.c: Likewise.
* elf32-or32.c: Likewise.
* elf32-s390.c: Likewise.
* elf32-sh64.c: Likewise.
* elf32-vax.c: Likewise.
* elf32-xstormy16.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-mmix.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.
* elf64-sh64.c: Likewise.
* elf64-x86-64.c: Likewise.