OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
19 years ago * elf64-ppc.c (add_symbol_adjust): Set sym visibility to most
Alan Modra [Thu, 2 Jun 2005 13:13:54 +0000 (13:13 +0000)]
* elf64-ppc.c (add_symbol_adjust): Set sym visibility to most
restrictive of func code and func descr for undefined syms as well
as defined.

19 years ago * ldexp.h (etree_value_type): Use "asection *" in place of
Alan Modra [Thu, 2 Jun 2005 03:08:41 +0000 (03:08 +0000)]
* ldexp.h (etree_value_type): Use "asection *" in place of
"struct lang_output_section_statement_struct *" for "section".
(exp_fold_tree): Likewise.
(exp_mark_used_section): Likewise.
* ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
exp_mark_used_section): Likewise for "current_section" param.
(make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
exp_get_abs_int): Adjust for above changes.
* ldlang.c (lang_mark_used_section_1, print_assignment,
lang_size_sections_1, lang_do_assignments_1): Likewise.
* ldexp.c (fold_name): Init entire result struct.

19 years agomerge from gcc
DJ Delorie [Thu, 2 Jun 2005 03:05:03 +0000 (03:05 +0000)]
merge from gcc

19 years agodaily update
Alan Modra [Thu, 2 Jun 2005 00:00:06 +0000 (00:00 +0000)]
daily update

19 years ago* emulparams/elf32btsmip.sh: Unset DATA_ADDR.
Maciej W. Rozycki [Wed, 1 Jun 2005 19:26:25 +0000 (19:26 +0000)]
* emulparams/elf32btsmip.sh: Unset DATA_ADDR.

19 years agogas/:
Maciej W. Rozycki [Wed, 1 Jun 2005 19:23:58 +0000 (19:23 +0000)]
gas/:
* config/tc-mips.c (load_register): Add leading "0x" to the
output of sprintf_vma().
(macro): Likewise.

gas/testsuite/:
* gas/mips/ldstla-32-1.l: Update to handle leading zeroes.
* gas/mips/ldstla-32-mips3-1.l: Likewise.

19 years ago(TxCE, TxC3, TxCM, TUE, TUF): Remove redundant test for the presence of thumb
Nick Clifton [Wed, 1 Jun 2005 08:18:42 +0000 (08:18 +0000)]
(TxCE, TxC3, TxCM, TUE, TUF): Remove redundant test for the presence of thumb
version of the parsing functions since they must always exist and the test
generates a compile time warning message.

19 years ago* Makefile.am: Regenerate dependencies with 'make dep-am'.
Jim Blandy [Wed, 1 Jun 2005 05:36:05 +0000 (05:36 +0000)]
* Makefile.am: Regenerate dependencies with 'make dep-am'.
* Makefile.in: Regenerate.

19 years agold:
Zack Weinberg [Wed, 1 Jun 2005 04:04:19 +0000 (04:04 +0000)]
ld:
* ldlang.c (entry_symbol_default): New file-scope global.
(lang_finish): Use it, not a hardwired "start".
(lang_default_entry): Set it.
* ldlang.h: Declare lang_default_entry.
* emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
not lang_add_entry, to override default entry point symbol.

ld/testsuite:
* ld-scripts/align.exp: Mark align1 XFAIL on PECOFF targets.
* ld-scripts/data.exp: Mark data UNSUPPORTED on a.out targets.
* ld-scripts/provide.exp, ld-scripts/size.exp: Mark all tests
UNSUPPORTED on a.out targets.  Tidy.

19 years agodaily update
Alan Modra [Wed, 1 Jun 2005 00:00:09 +0000 (00:00 +0000)]
daily update

19 years ago * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_JSRDIRECT): New.
Richard Henderson [Tue, 31 May 2005 22:53:44 +0000 (22:53 +0000)]
    * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_JSRDIRECT): New.
        (ALPHA_ELF_LINK_HASH_TLS_IE): Renumber to 0x80.
        (ALPHA_ELF_LINK_HASH_LU_PLT): Rename from ALPHA_ELF_LINK_HASH_LU_FUNC.
        (elf64_alpha_want_plt): Update to match.
        (elf64_alpha_check_relocs): Collect JSRDIRECT in gotent_flags.
        (elf64_alpha_relax_with_lituse): Likewise.  Handle JSRDIRECT.

19 years ago * config/tc-alpha.c (O_lituse_jsrdirect): New.
Richard Henderson [Tue, 31 May 2005 22:53:11 +0000 (22:53 +0000)]
    * config/tc-alpha.c (O_lituse_jsrdirect): New.
        (alpha_reloc_op): Add it.
        (debug_exp): Handle it.
        (DUMMY_RELOC_LITUSE_JSRDIRECT): New.
        (emit_insn): Handle it.
        * doc/c-alpha.texi (Alpha-Relocs): Document lituse_jsrdirect.

19 years ago * readelf.c (dump_relocations): Special case R_ALPHA_LITUSE.
Richard Henderson [Tue, 31 May 2005 22:52:50 +0000 (22:52 +0000)]
    * readelf.c (dump_relocations): Special case R_ALPHA_LITUSE.

19 years ago * alpha.h (LITUSE_ALPHA_JSRDIRECT): New.
Richard Henderson [Tue, 31 May 2005 22:52:31 +0000 (22:52 +0000)]
    * alpha.h (LITUSE_ALPHA_JSRDIRECT): New.

19 years ago * elf32-arm.c (elf32_arm_reloc_type_lookup)
Zack Weinberg [Tue, 31 May 2005 22:09:51 +0000 (22:09 +0000)]
* elf32-arm.c (elf32_arm_reloc_type_lookup)
(elf32_arm_nabi_grok_prstatus, elf32_arm_nabi_grok_psinfo):
Use ISO C90 function declaration style.

19 years agoFix for IA-64 gdb backtrace of threads in syscalls, reported by Jeff Johnson.
Jim Wilson [Tue, 31 May 2005 19:32:29 +0000 (19:32 +0000)]
Fix for IA-64 gdb backtrace of threads in syscalls, reported by Jeff Johnson.
* elfcode.h (NAME(bfd_elf,bfd_from_remote_memory)): Check for program
header PF_R flag on PT_LOAD segments.

19 years ago2005-05-31 Christian Groessler <chris@groessler.org>
Christian Groessler [Tue, 31 May 2005 18:36:28 +0000 (18:36 +0000)]
2005-05-31  Christian Groessler  <chris@groessler.org>

* write.c (dump_section_relocs): Convert to ISO-C.
(write_relocs): Avoid signed/unsigned and fprintf argument
warnings in debug code.

19 years agodaily update
Alan Modra [Tue, 31 May 2005 00:00:06 +0000 (00:00 +0000)]
daily update

19 years ago * elf64-alpha.c (elf64_alpha_relocate_section): Use dtp_base for
Richard Henderson [Mon, 30 May 2005 21:22:40 +0000 (21:22 +0000)]
    * elf64-alpha.c (elf64_alpha_relocate_section): Use dtp_base for
        the zero index relocs produced by elf64_alpha_relax_tls_get_addr.

19 years agomerge from gcc
DJ Delorie [Mon, 30 May 2005 01:12:16 +0000 (01:12 +0000)]
merge from gcc

19 years agodaily update
Alan Modra [Mon, 30 May 2005 00:00:27 +0000 (00:00 +0000)]
daily update

19 years ago * readelf.c (get_alpha_dynamic_type): New.
Richard Henderson [Sun, 29 May 2005 23:18:51 +0000 (23:18 +0000)]
    * readelf.c (get_alpha_dynamic_type): New.
        (get_dynamic_type): Call it.

19 years ago * alpha.h (DT_ALPHA_PLTRO): New.
Richard Henderson [Sun, 29 May 2005 23:18:26 +0000 (23:18 +0000)]
    * alpha.h (DT_ALPHA_PLTRO): New.

19 years ago * emulparams/elf64alpha.sh (PLT): New.
Richard Henderson [Sun, 29 May 2005 23:16:09 +0000 (23:16 +0000)]
    * emulparams/elf64alpha.sh (PLT): New.
        (TEXT_PLT): New.
        * emultempl/alphaelf.em (disable_relaxation): New.
        (limit_32bit): Rename from elf64alpha_32bit; update all users.
        (elf64_alpha_use_secureplt): Declare.
        (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
        (alpha_after_open): New.
        (alpha_before_allocation): New.
        (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
        (PARSE_AND_LIST_LONGOPTS): Include them.
        (PARSE_AND_LIST_OPTIONS): Likewise.
        (PARSE_AND_LIST_ARGS_CASES): Likewise.
        (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
        * scripttempl/elf.sc (TEXT_PLT): New.
        (PLT): Use it.

19 years ago * configure.in (--enable-secureplt): New.
Richard Henderson [Sun, 29 May 2005 23:13:39 +0000 (23:13 +0000)]
    * configure.in (--enable-secureplt): New.
        * elf64-alpha.c (INSN_LDA, INSN_LDAH, INSN_LDQ, INSN_BR): New.
        (INSN_SUBQ, INSN_S4SUBQ, INSN_JMP): New.
        (INSN_A, INSN_AB, INSN_ABC, INSN_ABO, INSN_AD): New.
        (elf64_alpha_use_secureplt): New.
        (OLD_PLT_HEADER_SIZE, OLD_PLT_ENTRY_SIZE): New.
        (NEW_PLT_HEADER_SIZE, NEW_PLT_ENTRY_SIZE): New.
        (PLT_HEADER_SIZE, PLT_ENTRY_SIZE): Conditionalize on secureplt.
        (ALPHA_ELF_LINK_HASH_PLT_LOC): Remove.
        (struct alpha_elf_link_hash_entry): Add plt_offset.
        (PLT_HEADER_WORD1, PLT_HEADER_WORD2, PLT_HEADER_WORD3): Remove.
        (PLT_HEADER_WORD4, PLT_ENTRY_WORD1, PLT_ENTRY_WORD2): Remove.
        (PLT_ENTRY_WORD3): Remove.
        (elf64_alpha_create_dynamic_sections): If secureplt, set SEC_READONLY
        on .plt and create .got.plt.
        (elf64_alpha_output_extsym): Remove .plt frobbing for symbol values.
        (get_got_entry): Initialize plt_offset.
        (elf64_alpha_want_plt): New.
        (elf64_alpha_check_relocs): Use it.
        (elf64_alpha_adjust_dynamic_symbol): Likewise.  Don't allocate
        plt entries here.
        (elf64_alpha_calc_got_offsets_for_symbol): Don't report internal
        error as user error.
        (elf64_alpha_size_plt_section_1): Allocate one plt entry per
        got subsection.
        (elf64_alpha_size_plt_section): Size .got.plt section.
        (elf64_alpha_size_rela_got_1): Don't allocate relocations if
        plt entries used.
        (elf64_alpha_size_dynamic_sections): Call elf64_alpha_size_plt_section.
        Add PLTRO DYNAMIC entry.
        (elf64_alpha_finish_dynamic_symbol): Generate secureplt format.
        (elf64_alpha_finish_dynamic_sections): Likewise.

19 years agodaily update
Alan Modra [Sun, 29 May 2005 00:00:05 +0000 (00:00 +0000)]
daily update

19 years ago2005-05-28 David Daney <ddaney@avtrex.com>
Daniel Jacobowitz [Sat, 28 May 2005 22:00:27 +0000 (22:00 +0000)]
2005-05-28  David Daney  <ddaney@avtrex.com>

* elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections):  Move
calculation of DT_RELSZ to occur after all dynamic relocations
are created.

19 years agomerge from gcc
DJ Delorie [Sat, 28 May 2005 19:49:24 +0000 (19:49 +0000)]
merge from gcc

19 years ago2005-05-28 Eli Zaretskii <eliz@gnu.org>
Andreas Jaeger [Sat, 28 May 2005 11:44:49 +0000 (11:44 +0000)]
2005-05-28  Eli Zaretskii  <eliz@gnu.org>

* configure.in: Add snprintf and vsnprintf to AC_CHECK_DECLS.
* config.in, configure: Regenerate.

19 years agodaily update
Alan Modra [Sat, 28 May 2005 00:00:07 +0000 (00:00 +0000)]
daily update

19 years ago * config/default.exp (CC): Use find_gcc.
Mark Mitchell [Fri, 27 May 2005 17:27:03 +0000 (17:27 +0000)]
* config/default.exp (CC): Use find_gcc.
(CFLAGS): Define, if no definition is provided.
(CXX): Likewise.
(CXXFLAGS): Likewise.

19 years ago * config/tc-arm.h (TC_FIX_TYPE): Change to int.
Zack Weinberg [Fri, 27 May 2005 07:11:45 +0000 (07:11 +0000)]
* config/tc-arm.h (TC_FIX_TYPE): Change to int.
(TC_INIT_FIX_DATA): Initialize to 0, not NULL.
* config/tc-arm.c (fix_new_arm): Remove now-unnecessary cast.
(md_apply_fix3): Delete fix_is_thumb variable; refer to
fixP->tc_fix_data directly in the sole place it was used.
Explicitly truncate value, *valP, fixP->fx_addnumber, and
fixP->fx_offset to 32 bits, for consistent behavior between 32-
and 64-bit hosts.

19 years agogas/
Jan Beulich [Fri, 27 May 2005 06:28:04 +0000 (06:28 +0000)]
gas/
2005-05-27  Jan Beulich  <jbeulich@novell.com>

* config/tc-ia64.c (struct proc_pending): New.
(unwind): Replace proc_start with proc_pending.
(unwind_diagnostic): Check unwind.proc_pending.sym.
(dot_proc): Replace unwind.proc_start with unwind.proc_pending.sym.
Check if previous proc not closed. Record all entry points.
(dot_endp): Replace unwind.proc_start with unwind.proc_pending.sym.
Set symbol sizes for entry points recorded in dot_proc. Check
arguments for consistency with respective .proc's.
(md_assemble): Replace unwind.proc_start with
unwind.proc_pending.sym.

gas/testsuite/
2005-05-27  Jan Beulich  <jbeulich@novell.com>

* gas/ia64/proc.l: Adjust.

19 years agogas/
Jan Beulich [Fri, 27 May 2005 06:25:22 +0000 (06:25 +0000)]
gas/
2005-05-27  Jan Beulich  <jbeulich@novell.com>

* config/tc-ia64.c (emit_one_bundle): Restrict scope of ptr, end_ptr,
and last_ptr. Check all in-use slots for first one with non-NULL
unwind_record. Don't reload end_ptr before second update round.

19 years agodaily update
Alan Modra [Fri, 27 May 2005 00:00:06 +0000 (00:00 +0000)]
daily update

19 years ago* configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
Andreas Schwab [Thu, 26 May 2005 22:23:15 +0000 (22:23 +0000)]
* configure.host (HOSTING_LIBS): Add libunwind.a if it exists.

19 years ago* elfxx-mips.c (_bfd_mips_elf_section_processing): Warn and
Maciej W. Rozycki [Thu, 26 May 2005 18:51:11 +0000 (18:51 +0000)]
* elfxx-mips.c (_bfd_mips_elf_section_processing): Warn and
stop processing of options if one of invalid size is
encountered.
(_bfd_mips_elf_section_from_shdr): Likewise.
(_bfd_mips_elf_fake_sections): Reset the type of empty special
sections.

19 years agoFix issues noticed while reviewing Jan Beulich's MLX template bug fix.
Jim Wilson [Thu, 26 May 2005 18:46:12 +0000 (18:46 +0000)]
Fix issues noticed while reviewing Jan Beulich's MLX template bug fix.
* config/tc-ia64.c (extra_goodness): Update comment.
(md_begin): Add debugging code to print best_template table.

19 years ago * elf64-alpha.c (struct alpha_elf_link_hash_entry): Remove
Richard Henderson [Thu, 26 May 2005 16:14:33 +0000 (16:14 +0000)]
    * elf64-alpha.c (struct alpha_elf_link_hash_entry): Remove
        plt_old_section, plt_old_value.
        (elf64_alpha_adjust_dynamic_symbol): Don't set it.
        (elf64_alpha_size_plt_section_1): Don't use it.

19 years ago * elfcode.h (elf_object_p): Fail if e_shoff != 0, e_shnum == 0 and
Jakub Jelinek [Thu, 26 May 2005 07:41:13 +0000 (07:41 +0000)]
* elfcode.h (elf_object_p): Fail if e_shoff != 0, e_shnum == 0 and
first shdr has sh_size == 0.  Fail if e_shnum is large to cause
arithmetic overflow when allocating the i_shdr array.
Sanity check sh_link and sh_info fields.  Fix e_shstrndx sanity check.

19 years ago * elf64-alpha.c: Update all function definitions to ISO C. Remove
Richard Henderson [Thu, 26 May 2005 07:14:03 +0000 (07:14 +0000)]
    * elf64-alpha.c: Update all function definitions to ISO C.  Remove
        all function prototypes; rearrange functions into def-use order.

19 years agoPatch from Steve Ellcey for ia64-hpux testsuite failure.
Jim Wilson [Thu, 26 May 2005 00:41:43 +0000 (00:41 +0000)]
Patch from Steve Ellcey for ia64-hpux testsuite failure.
gas/ia64/global.d: Change --sym to --syms.

19 years agodaily update
Alan Modra [Thu, 26 May 2005 00:00:06 +0000 (00:00 +0000)]
daily update

19 years agoinclude/
Richard Henderson [Wed, 25 May 2005 23:32:36 +0000 (23:32 +0000)]
include/
* demangle.h (DEMANGLE_COMPONENT_HIDDEN_ALIAS): New.
libiberty/
* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
(d_make_comp, d_print_comp): Likewise.
(d_special_name): Generate one.
* testsuite/demangle-expected: Add a hidden alias test.

19 years ago * elf64-alpha.c (elf64_alpha_merge_gots): Fix gotent iteration
Richard Henderson [Wed, 25 May 2005 20:00:40 +0000 (20:00 +0000)]
    * elf64-alpha.c (elf64_alpha_merge_gots): Fix gotent iteration
        in the presence of deleting elements.
        (elf64_alpha_size_got_sections): Zero dead got section size.

19 years ago2005-05-25 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Wed, 25 May 2005 14:23:03 +0000 (14:23 +0000)]
2005-05-25  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.tpl (stage[+id+]-start): Iterate over target module as well.
(Dependencies): Consider target modules for bootstrap dependencies.
Make target bootstrap modules depend on each stage's gcc.
* Makefile.in: Regenerate.

19 years ago2005-05-25 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 25 May 2005 14:10:08 +0000 (14:10 +0000)]
2005-05-25  H.J. Lu  <hongjiu.lu@intel.com>

* gas/ia64/group-1.d: Updated.
* gas/ia64/group-2.d: Likewise.

19 years agogas/
Jan Beulich [Wed, 25 May 2005 07:17:08 +0000 (07:17 +0000)]
gas/
2005-05-25  Jan Beulich  <jbeulich@novell.com>

* config/tc-ia64.c (md_begin): Don't try to match slot 2 of an MLX
template.

19 years agogas/
Jan Beulich [Wed, 25 May 2005 07:13:19 +0000 (07:13 +0000)]
gas/
2005-05-25  Jan Beulich  <jbeulich@novell.com>

* config/tc-ia64.c (ia64_gen_real_reloc_type): Also handle
BFD_RELOC_UNUSED when determining the width of the reloc.

19 years agogas/
Jan Beulich [Wed, 25 May 2005 07:08:51 +0000 (07:08 +0000)]
gas/
2005-05-25  Jan Beulich  <jbeulich@novell.com>

* config/tc-ia64.c (dot_endp): Clear out all three pointers in unwind
section entry.

19 years agogas/
Jan Beulich [Wed, 25 May 2005 06:59:36 +0000 (06:59 +0000)]
gas/
2005-05-25  Jan Beulich  <jbeulich@novell.com>

* config/tc-ia64.c (dot_radix): Rewrite.

gas/testsuite/
2005-05-25  Jan Beulich  <jbeulich@novell.com>

* gas/ia64/radix.s: New.
* gas/ia64/radix.l: New.
* gas/ia64/ia64.exp: Run new test.

19 years agogas/
Jan Beulich [Wed, 25 May 2005 06:55:41 +0000 (06:55 +0000)]
gas/
2005-05-25  Jan Beulich  <jbeulich@novell.com>

* config/tc-ia64.c (struct unw_rec_list): Remove next_slot_number
and next_slot_frag.
(alloc_record): Remove references to next_slot_number and
next_slot_frag.
(emit_one_bundle): Likewise.

19 years agogas/testsuite/
Jan Beulich [Wed, 25 May 2005 06:50:23 +0000 (06:50 +0000)]
gas/testsuite/
2005-05-25  Jan Beulich  <jbeulich@novell.com>

* gas/i386/intelok.d: Account for 32-bit displacements being shown
in hex.

opcodes/
2005-05-25  Jan Beulich  <jbeulich@novell.com>

* i386-dis.c (OP_E): In Intel mode, display 32-bit displacements in
hex (but retain it being displayed as signed). Remove redundant
checks. Add handling of displacements for 16-bit addressing in Intel
mode.

19 years ago2005-05-24 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 25 May 2005 06:49:53 +0000 (06:49 +0000)]
2005-05-24  H.J. Lu  <hongjiu.lu@intel.com>

* ld-mmix/bpo-6.d: Updated.
* ld-mmix/bpo-19.d: Likewise.

19 years agoopcodes/
Jan Beulich [Wed, 25 May 2005 06:47:58 +0000 (06:47 +0000)]
opcodes/
2005-05-25  Jan Beulich  <jbeulich@novell.com>

* i386-dis.c (prefix_name): Remove pointless mode_64bit check.
(OP_E): Remove redundant REX_EXTZ handling. Remove pointless
masking of 'rm' in 16-bit memory address handling.

19 years ago2005-05-24 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 25 May 2005 06:30:25 +0000 (06:30 +0000)]
2005-05-24  H.J. Lu  <hongjiu.lu@intel.com>

* gas/elf/group0b.d: Updated.
* gas/elf/group1b.d: Likewise.

19 years agodaily update
Alan Modra [Wed, 25 May 2005 00:00:09 +0000 (00:00 +0000)]
daily update

19 years agomerge from gcc
DJ Delorie [Tue, 24 May 2005 21:01:33 +0000 (21:01 +0000)]
merge from gcc

19 years ago2005-05-24 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 24 May 2005 13:53:30 +0000 (13:53 +0000)]
2005-05-24  H.J. Lu  <hongjiu.lu@intel.com>

* readelf.c (process_section_groups): Report group section
index. Check if the section member index is valid.

19 years ago * emultempl/ppc32elf.em (after_allocation): Don't call
Alan Modra [Tue, 24 May 2005 00:27:58 +0000 (00:27 +0000)]
* emultempl/ppc32elf.em (after_allocation): Don't call
ppc_elf_set_sdata_syms when relocatable.

19 years agodaily update
Alan Modra [Tue, 24 May 2005 00:00:04 +0000 (00:00 +0000)]
daily update

19 years agoApproved by nickc@redhat.com:
Fred Fish [Mon, 23 May 2005 17:45:42 +0000 (17:45 +0000)]
Approved by nickc@redhat.com:

2005-05-23  Fred Fish  <fnf@specifixinc.com>
* addr2line.c (unwind_inlines): New flag for 'i' option.
(usage): Document '-i' option.
(long_options): Recognize '--inlines'.
(translate_addresses): Loop, calling bfd_find_inliner_info as
necessary and printing multiple output lines.
(main): Handle 'i' option.
* doc/binutils.texi (addr2line): Document '-i' option.
* NEWS: Mention new addr2line '-i' option.

19 years agoApproved by nickc@redhat.com
Fred Fish [Mon, 23 May 2005 17:44:55 +0000 (17:44 +0000)]
Approved by nickc@redhat.com

2005-05-23  Fred Fish  <fnf@specifixinc.com>
* dwarf2.c (struct dwarf2_debug): Add inliner_chain member.
(struct funcinfo): Add caller_func, caller_file, caller_line.
tag, and nesting_level members.
(lookup_address_in_function_table): Change first passed parameter
from "struct funcinfo *" to "struct comp_unit *".
(lookup_address_in_function_table): Dereference unit to find function
table.
(lookup_address_in_function_table): Traverse the function list to
create a chain of inlined functions back to the first non inlined
function.
(scan_unit_for_functions): Remember tag and nesting level.  Handle
DW_AT_call_file and DW_AT_call_line.
(comp_unit_find_nearest_line): Adjust lookup_address_in_function_table
call to pass unit pointer instead of function table pointer.  For
inlined functions, save pointer to the inliner chain.
(_bfd_dwarf2_find_nearest_line): Initialize inliner_chain to NULL.
(_bfd_dwarf2_find_inliner_info): New function that returns information
from the inliner chain after a call to bfd_find_nearest_line.

* bfd.c (bfd_find_inliner_info): Define using BFD_SEND.
* targets.c (BFD_JUMP_TABLE_SYMBOLS): Add entry for
NAME##_find_inliner_info.
(bfd_target): Add _bfd_find_inliner_info.
* bfd-in2.h: Regenerate.

* libbfd-in.h (_bfd_nosymbols_find_inliner_info): Define as
macro that always returns bfd_false.
(_bfd_dwarf2_find_inliner_info): Declare.
* libbfd.h: Regenerate.

* elf32-arm.c (elf32_arm_find_inliner_info): New function
that calls _bfd_dwarf2_find_inliner_info.
(bfd_elf32_find_inliner_info): Define to elf32_arm_find_inliner_info.

* elfxx-mips.c (_bfd_mips_elf_find_inliner_info): New function
that calls _bfd_dwarf2_find_inliner_info.
* elfxx-mips.h (_bfd_mips_elf_find_inliner_info): Declare.
* elfn32-mips.c (bfd_elf32_find_inliner_info): Define to
_bfd_mips_elf_find_inliner_info.
* elf64-mips.c (bfd_elf64_find_inliner_info): Ditto.
* elf32-mips.c (bfd_elf32_find_inliner_info): Ditto.

* elf.c (_bfd_elf_find_inliner_info): New function that calls
_bfd_dwarf2_find_inliner_info.
* elf-bfd.h (_bfd_elf_find_inliner_info): Declare.
* elfxx-target.h (bfd_elfNN_find_inliner_info): Define to
_bfd_elf_find_inliner_info.

* coffgen.c (coff_find_inliner_info): New function that
calls _bfd_dwarf2_find_inliner_info.
* libcoff-in.h (coff_find_inliner_info): Declare.
* libcoff.h: Regenerate.
* coff-rs6000.c (rs6000coff_vec): Add coff_find_inliner_info.
(pmac_xcoff_vec) Ditto.
* coff64-rs6000.c (rs6000coff64_vec): Ditto.
(aix5coff64_vec): Ditto.

* aout-target.h (MY_find_inliner_info): Define as
_bfd_nosymbols_find_inliner_info.
* aout-tic30.c (MY_find_inliner_info): Ditto.
* binary.c (binary_find_inliner_info): Ditto.
* i386msdos.c (msdos_find_inliner_info): Ditto.
* ihex.c (ihex_find_inliner_info): Ditto.
* libaout.h (aout_32_find_inliner_info): Ditto.
* libecoff.h (_bfd_ecoff_find_inliner_info): Ditto.
* mach-o.c (bfd_mach_o_find_inliner_info): Ditto.
* mmo.c (mmo_find_inliner_info): Ditto.
* nlm-target.h (nlm_find_inliner_info): Ditto.
* pef.c (bfd_pef_find_inliner_info): Ditto.
* ppcboot.c (ppcboot_find_inliner_info): Ditto.
* srec.c (srec_find_inliner_info): Ditto.
* tekhex.c (tekhex_find_inliner_info): Ditto.
* versados.c (versados_find_inliner_info): Ditto.
* xsym.c (bfd_sym_find_inliner_info): Ditto.

* ieee.c (ieee_find_inliner_info): New function that always
returns FALSE.
* oasys.c (oasys_find_inliner_info): Ditto.
* vms.c (vms_find_inliner_info): Ditto.

19 years ago * hppa.h (FLAG_STRICT): Correct comment.
Dave Anglin [Mon, 23 May 2005 16:26:43 +0000 (16:26 +0000)]
* hppa.h (FLAG_STRICT): Correct comment.
(pa_opcodes): Update load and store entries to allow both PA 1.X and
PA 2.0 mneumonics when equivalent.  Entries with cache control
completers now require PA 1.1.  Adjust whitespace.

19 years ago * elf32-ppc.c (ppc_elf_check_relocs): For old gcc -fPIC code
Alan Modra [Mon, 23 May 2005 16:22:25 +0000 (16:22 +0000)]
* elf32-ppc.c (ppc_elf_check_relocs): For old gcc -fPIC code
force old plt layout.

19 years ago(fetch_indirect_string): Display a warning message when a corrupt
Nick Clifton [Mon, 23 May 2005 12:12:00 +0000 (12:12 +0000)]
(fetch_indirect_string): Display a warning message when a corrupt
  DW_FORM_strp value is encountered.

(process_debug_info): Mention that the compilation unit offset is being
  displayed in hexadecimal.

(display_debug_lines): Fix typo in name of .debug_line section.

19 years ago * elf64-alpha.c (elf64_alpha_relax_section): Ignore non-allocated
Richard Henderson [Mon, 23 May 2005 01:26:58 +0000 (01:26 +0000)]
    * elf64-alpha.c (elf64_alpha_relax_section): Ignore non-allocated
        sections.
        (elf64_alpha_check_relocs): Likewise.
        (elf64_alpha_relocate_section): Don't emit dynamic relocations to
        non-allocated sections.

19 years agodaily update
Alan Modra [Mon, 23 May 2005 00:00:03 +0000 (00:00 +0000)]
daily update

19 years ago * elf64-alpha.c (elf64_alpha_relax_with_lituse): Relax jsr to
Richard Henderson [Sun, 22 May 2005 22:13:21 +0000 (22:13 +0000)]
    * elf64-alpha.c (elf64_alpha_relax_with_lituse): Relax jsr to
        undefweak to use zero register.  Call elf64_alpha_relax_got_load
        if not all uses removed.
        (elf64_alpha_relax_got_load): Relax undefweak to lda zero.
        (elf64_alpha_relax_section): Handle undefweak symbols.
        (elf64_alpha_calc_dynrel_sizes): Don't add relocs for undefweak.
        (elf64_alpha_size_rela_got_1): Likewise.
        (elf64_alpha_relocate_section): Likewise.

19 years ago * elf64-alpha.c (elf64_alpha_relax_section): Only operate
Richard Henderson [Sun, 22 May 2005 22:07:31 +0000 (22:07 +0000)]
    * elf64-alpha.c (elf64_alpha_relax_section): Only operate
        on SEC_CODE sections.

19 years ago * ld-elfweak/dsow.dsym: Adjust for non-zero ST_OTHER.
Richard Henderson [Sun, 22 May 2005 21:02:19 +0000 (21:02 +0000)]
    * ld-elfweak/dsow.dsym: Adjust for non-zero ST_OTHER.
        * ld-elfweak/weak.dsym: Likewise.

        * ld-selective/selective.exp: Don't test alpha.

19 years ago * som.c (try_prev_fixup): Changed type of subspace_reloc_sizep to
Dave Anglin [Sun, 22 May 2005 20:02:16 +0000 (20:02 +0000)]
* som.c (try_prev_fixup): Changed type of subspace_reloc_sizep to
unsigned int *.
(som_write_space_strings): Change type of tmp_space and p to char *.
(som_write_symbol_strings): Likewise.  Also change type of comp to
char *comp[4].
(som_begin_writing): Change type of strings_size to unsigned int.
(som_finish_writing): Likewise.
(som_slurp_reloc_table): Change type of external_relocs to unsigned
char *.
* som.h (struct som_section_data_struct): Change type of reloc_stream
field to unsigned char *.

19 years agoFix typo
Nick Clifton [Sun, 22 May 2005 05:55:15 +0000 (05:55 +0000)]
Fix typo

19 years ago * config/tc-hppa.c (pa_ip): Promote architecture from PA 1.0 to 1.1
Dave Anglin [Sun, 22 May 2005 01:40:28 +0000 (01:40 +0000)]
* config/tc-hppa.c (pa_ip): Promote architecture from PA 1.0 to 1.1
only if an instruction match is found.

19 years agodaily update
Alan Modra [Sun, 22 May 2005 00:00:04 +0000 (00:00 +0000)]
daily update

19 years ago2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sat, 21 May 2005 23:43:59 +0000 (23:43 +0000)]
2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (ld.1): Revert the last 2 changes.
(info-recursive): Depend on ld.1.
* Makefile.in: Regenerated.

19 years ago2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sat, 21 May 2005 22:22:20 +0000 (22:22 +0000)]
2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (ld.1): Depend on "info" instead of
"configdoc.texi ldver.texi".
* Makefile.in: Regenerated.

19 years ago2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sat, 21 May 2005 21:31:13 +0000 (21:31 +0000)]
2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (ld.1): Depend on "info".
* Makefile.in: Regenerated.

19 years agodaily update
Alan Modra [Sat, 21 May 2005 00:00:07 +0000 (00:00 +0000)]
daily update

19 years ago * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't eliminate
Daniel Jacobowitz [Fri, 20 May 2005 22:02:08 +0000 (22:02 +0000)]
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't eliminate
copy relocations for VxWorks.

19 years agobfd/
Daniel Jacobowitz [Fri, 20 May 2005 21:57:12 +0000 (21:57 +0000)]
bfd/
* bfd/elf32-ppc.c (struct ppc_elf_link_hash_entry): Add new field
has_sda_refs.
(ppc_elf_copy_indirect_symbol): Copy has_sda_refs.
(ppc_elf_check_relocs): Set has_sda_refs.
(ppc_elf_adjust_dynamic_symbol): Check has_sda_refs before eliminating
copy relocations.  Use has_sda_refs to place variables in .sbss.
(ppc_elf_finish_dynamic_symbol): Use has_sda_refs to place variables in
.sbss.
ld/testsuite/
* ld-powerpc/sdalib.s, ld-powerpc/sdadyn.s, ld-powerpc/sdadyn.d: New
files.
* ld-powerpc/powerpc.exp: Run the new test.

19 years ago * elf32-xtensa.c (bfd_elf_xtensa_reloc): Make sure that
Bob Wilson [Fri, 20 May 2005 19:53:18 +0000 (19:53 +0000)]
* elf32-xtensa.c (bfd_elf_xtensa_reloc): Make sure that
xtensa_default_isa is initialized.

19 years ago * ld-undefined/undefined.exp: Revert xfail for xtensa-*-*.
Bob Wilson [Fri, 20 May 2005 19:09:54 +0000 (19:09 +0000)]
* ld-undefined/undefined.exp: Revert xfail for xtensa-*-*.

19 years ago * config/tc-xtensa.c (xg_assemble_vliw_tokens): Change subtraction
Bob Wilson [Fri, 20 May 2005 19:01:56 +0000 (19:01 +0000)]
* config/tc-xtensa.c (xg_assemble_vliw_tokens): Change subtraction
to addition in argument to xtensa_dwarf2_emit_insn.

19 years ago2005-05-20 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Fri, 20 May 2005 07:16:11 +0000 (07:16 +0000)]
2005-05-20  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.def (configure-gcc): Depend on binutils having been built.
(all-gcc): No need to do it here.
* Makefile.in: Regenerate.

19 years ago * elf32-ppc.c (allocate_dynrelocs): Correct plt offset assigned
Alan Modra [Fri, 20 May 2005 02:37:21 +0000 (02:37 +0000)]
* elf32-ppc.c (allocate_dynrelocs): Correct plt offset assigned
for second and subsequent list entries.  Only allocate multiple
glink stubs when shared or pie.
(ppc_elf_finish_dynamic_symbol): Break out early when only one
glink stub is needed.

19 years agodaily update
Alan Modra [Fri, 20 May 2005 00:00:07 +0000 (00:00 +0000)]
daily update

19 years ago * bfd/Makefile.am, binutils/Makefile.am, etc/Makefile.in
Zack Weinberg [Thu, 19 May 2005 23:49:52 +0000 (23:49 +0000)]
* bfd/Makefile.am, binutils/Makefile.am, etc/Makefile.in
* gas/Makefile.am: Have 'all' depend on 'info'.
* ld/Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
* bfd/Makefile.in, binutils/Makefile.in, gas/Makefile.in
* ld/Makefile.in: Regenerate.

19 years ago2005-05-19 Paul Brook <paul@codesourcery.com>
Paul Brook [Thu, 19 May 2005 20:25:24 +0000 (20:25 +0000)]
2005-05-19  Paul Brook  <paul@codesourcery.com>

* configure.in: Rewrite misleading error message when requested
language cannot be built.
* configure: Regenerate.

19 years ago * config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL.
Alan Modra [Thu, 19 May 2005 08:27:34 +0000 (08:27 +0000)]
* config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL.

19 years ago * elf-bfd.h (struct elf_link_hash_table): Delete init_refcount and
Alan Modra [Thu, 19 May 2005 08:26:56 +0000 (08:26 +0000)]
* elf-bfd.h (struct elf_link_hash_table): Delete init_refcount and
init_offset.  Add init_got_refcount, init_plt_refcount,
init_got_offset and init_plt_offset.
* elf.c (_bfd_elf_link_hash_newfunc): Adjust for above change.
(_bfd_elf_link_hash_hide_symbol): Likewise.
(_bfd_elf_link_hash_table_init): Likewise.
* elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
* elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
* elflink.c (_bfd_elf_adjust_dynamic_symbol): Likewise.
(bfd_elf_size_dynamic_sections): Likewise.
* elf32-ppc.c (GLINK_PLTRESOLVE): Now 16 insns.
(LWZU_0_X_12, LWZ_0_4_30, LWZ_0_X_12, LWZ_11_X_11, LWZ_11_X_30,
LWZ_12_4_12, LWZ_12_8_30, LWZ_12_X_12, SUB_11_11_30): Delete.
(ADDIS_12_12, BCL_20_31, LWZU_0_12, LWZ_0_12, LWZ_11_11, LWZ_11_30,
LWZ_12_12, MFLR_0, MFLR_12, MTLR_0, SUB_11_11_12): Define.
(struct plt_entry): New.
(ppc_elf_link_hash_table_create): Set new init_plt fields.
(ppc_elf_copy_indirect_symbol): Handle merge of plt plist.  Don't
use _bfd_elf_link_hash_copy_indirect.
(update_plt_info, find_plt_ent): New functions.
(ppc_elf_check_relocs): Handle R_PPC_PLTREL24 with non-zero addend
and adjust for use of plt list rather than refcount.
(ppc_elf_gc_sweep_hook): Likewise.
(ppc_elf_tls_optimize): Likewise.
(ppc_elf_adjust_dynamic_symbol): Likewise.
(allocate_dynrelocs): Likewise.
(ppc_elf_relax_section): Likewise.
(ppc_elf_relocate_section): Likewise.  Adjust R_PPC_PLTREL24 addends
when performing a relocatable link.
(ppc_elf_finish_dynamic_symbol): Likewise.  Write .glink stubs here..
(ppc_elf_finish_dynamic_sections): ..rather than here.  Use new
pic resolver stub.

19 years ago * config/tc-ppc.c (parse_cpu): Handle "-mpower5".
Alan Modra [Thu, 19 May 2005 07:02:14 +0000 (07:02 +0000)]
* config/tc-ppc.c (parse_cpu): Handle "-mpower5".
(md_show_usage): Document it.
(ppc_setup_opcodes): Insert POWER5 mnemonics.
* doc/c-ppc.texi (PowerPC-Opts): Document "-mpower5".

19 years ago * ppc-dis.c (powerpc_dialect): Handle "-Mpower5".
Alan Modra [Thu, 19 May 2005 07:00:40 +0000 (07:00 +0000)]
* ppc-dis.c (powerpc_dialect): Handle "-Mpower5".
(print_ppc_disassembler_options): Document it.
* ppc-opc.c (SCV_LEV): Define.
(LEV): Allow optional operand.
(POWER5): Define.
(powerpc_opcodes): Extend "sc".  Adjust "svc" and "svcl".  Add
"hrfid", "popcntb", "fsqrtes", "fsqrtes.", "fre" and "fre.".

19 years ago * ppc.h (PPC_OPCODE_POWER5): Define.
Alan Modra [Thu, 19 May 2005 06:59:36 +0000 (06:59 +0000)]
* ppc.h (PPC_OPCODE_POWER5): Define.

19 years ago * elf.c (assign_file_positions_for_segments): Use maximum of
Alan Modra [Thu, 19 May 2005 06:51:01 +0000 (06:51 +0000)]
* elf.c (assign_file_positions_for_segments): Use maximum of
maxpagesize and section alignment when adjusting initial
segment offset and section offsets.

19 years agogas/
Jan Beulich [Thu, 19 May 2005 06:32:01 +0000 (06:32 +0000)]
gas/
2005-05-19  Jan Beulich  <jbeulich@novell.com>

* config/tc-ia64.c (dot_endp): Don't use global symbol for unwind
relocations in unwind section.

gas/testsuite/
2005-05-19  Jan Beulich  <jbeulich@novell.com>

* gas/ia64/reloc-uw.s: New.
* gas/ia64/reloc-uw.d: New.
* gas/ia64/reloc-uw-ilp32.d: New.
* gas/ia64/ia64.exp: Run new test.

19 years ago2005-05-19 Kelley Cook <kcook@gcc.gnu.org>
Kelley Cook [Thu, 19 May 2005 03:50:19 +0000 (03:50 +0000)]
2005-05-19  Kelley Cook  <kcook@gcc.gnu.org>

* accross.m4: Delete file.

19 years ago2005-05-19 Kelley Cook <kcook@gcc.gnu.org>
Kelley Cook [Thu, 19 May 2005 03:18:04 +0000 (03:18 +0000)]
2005-05-19  Kelley Cook  <kcook@gcc.gnu.org>

* Makefile.in:  Regenerate.

19 years agodaily update
Alan Modra [Thu, 19 May 2005 00:00:05 +0000 (00:00 +0000)]
daily update

19 years agobinutils/ChangeLog
Ben Elliston [Wed, 18 May 2005 22:42:09 +0000 (22:42 +0000)]
binutils/ChangeLog
* readelf.c (read_and_display_attr_value): Handle a DW_AT_encoding
value of DW_ATE_GNU_decimal_float.

include/elf/ChangeLog
* dwarf2.h (enum dwarf_type): Assign DW_ATE_GNU_decimal_float from
the user-defined encoding space pending inclusion in the standard.