OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
19 years agodaily update
Alan Modra [Wed, 15 Jun 2005 00:00:06 +0000 (00:00 +0000)]
daily update

19 years ago PR libgcj/19877:
Tom Tromey [Tue, 14 Jun 2005 20:27:38 +0000 (20:27 +0000)]
PR libgcj/19877:
* no-executables.m4: Call real AC_FUNC_MMAP when cache variable
is set but not 'no'.

19 years ago2005-06-14 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 14 Jun 2005 19:25:45 +0000 (19:25 +0000)]
2005-06-14  H.J. Lu  <hongjiu.lu@intel.com>

* elflink.c (_bfd_elf_merge_symbol): Fix a typo in comment.

19 years ago2005-06-14 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 14 Jun 2005 13:26:42 +0000 (13:26 +0000)]
2005-06-14  H.J. Lu  <hongjiu.lu@intel.com>

PR 995
* ar.c (BUFSIZE): Moved to ...
* bucomm.h (BUFSIZE): Here.

* bucomm.c: Include <assert.h>.
(bfd_get_archive_filename): New.
* bucomm.h (bfd_get_archive_filename): New.

* objcopy.c (copy_unknown_object): New.
(copy_object): Use bfd_get_archive_filename when reporting input
error. Don't call fatal on unknown arch.
(copy_archive): Call copy_unknown_object on unknown format or
arch.

19 years ago * readelf.c (cmalloc, xcmalloc, xcrealloc): New functions.
Jakub Jelinek [Tue, 14 Jun 2005 11:06:28 +0000 (11:06 +0000)]
* readelf.c (cmalloc, xcmalloc, xcrealloc): New functions.
(get_data): Add nmemb argument.  Return NULL if nmemb * size
overflows.  If var == NULL, allocate one extra byte and
clear it.
(slurp_rela_relocs, slurp_rel_relocs, get_32bit_program_headers,
get_64bit_program_headers, get_program_headers,
get_32bit_section_headers, get_64bit_section_headers,
get_32bit_elf_symbols, get_64bit_elf_symbols, process_section_headers,
process_section_groups, process_relocs, slurp_ia64_unwind_table,
ia64_process_unwind, slurp_hppa_unwind_table, hppa_process_unwind,
get_32bit_dynamic_section, get_64bit_dynamic_section,
process_dynamic_section, process_version_sections, get_dynamic_data,
process_symbol_table, dump_section, load_debug_str, load_debug_loc,
load_debug_range, read_and_display_attr_value, process_debug_info,
get_debug_info, frame_need_space, display_debug_frames,
display_debug_section, process_mips_specific, process_gnu_liblist,
process_corefile_note_segment): Adjust get_data callers.  Use
cmalloc, xcmalloc and xcrealloc instead of {m,xm,xre}alloc where
passed size is a product of 2 numbers.

* readelf.c (print_mode): Fix comment typo.
(slurp_rela_relocs, slurp_rel_relocs): Fix memory leaks.
(dump_relocations): Fix a thinko in check for invalid st_name.
(process_program_headers): Don't crash if string_table is NULL.
(process_section_headers): Don't crash if e_shstrndx is invalid.
Ensure string_table_length is 0 if string_table == NULL.
Don't return just because string_table is NULL.
(process_section_groups): Don't crash if symtab's sh_link or
symbol's st_name is invalid.  Fix a memory leak.  Fix check for
invalid section number entry.
(process_relocs): Don't crash if relocation or symbol section's
sh_link is invalid.
(slurp_ia64_unwind_table, slurp_hppa_unwind_table): Don't crash if
relocation section's sh_info is invalid.
(ia64_process_unwind, hppa_process_unwind): Don't crash if symbol
table's sh_link is invalid.
(process_version_sections): Don't crash on version or symbol
section's sh_link is invalid.  Don't crash if symbol's st_shndx
is invalid.
(process_symbol_table): Don't crash if string table is corrupt
or symbol's st_name, st_shndx, vna_name or vda_name is invalid.
(debug_apply_rela_addends): Don't crash if relocation section's
sh_info or sh_link is invalid.
(display_debug_loc): Warn for unterminated .debug_loc section
or start offsets not within .debug_loc section boundaries.
(process_gnu_liblist): Don't crash if liblist section's sh_link
or entry's l_name is invalid.

19 years ago * elf.c (bfd_section_from_shdr): Fail if name is NULL.
Jakub Jelinek [Tue, 14 Jun 2005 11:04:22 +0000 (11:04 +0000)]
* elf.c (bfd_section_from_shdr): Fail if name is NULL.
Prevent endless recursion on broken objects.

* archive.c (do_slurp_coff_armap): Check for overflows.

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

19 years ago* depstand.m4, lead-dot.m4: New files.
DJ Delorie [Mon, 13 Jun 2005 18:06:59 +0000 (18:06 +0000)]
* depstand.m4, lead-dot.m4: New files.

19 years ago* depcomp: Update from automake CVS. Add 'ia64hp' stanza.
DJ Delorie [Mon, 13 Jun 2005 18:01:01 +0000 (18:01 +0000)]
* depcomp: Update from automake CVS.  Add 'ia64hp' stanza.
In 'cpp' stanza, support '#line' as well as '# '.

19 years agogas:
Zack Weinberg [Mon, 13 Jun 2005 15:34:39 +0000 (15:34 +0000)]
gas:
* config/tc-arm.c (find_real_start): Check S_IS_LOCAL on
symbolP as well as for names with a leading dot.  Use ACONCAT.
(md_apply_fix): For branch relocations, only replace value
with fixP->fx_offset (under #ifdef OBJ_ELF) when !fixP->fx_done.
(arm_force_relocation): Remove #ifdef OBJ_ELF case.
* config/tc-arm.h (LOCAL_LABEL): Remove unnecessary parentheses.
(LOCAL_LABEL_PREFIX): Don't define.
gas/testsuite:
* gas/arm/thumb.s: Only branch to labels defined in this file.
* gas/arm/thumb.d, gas/arm/thumb32.d: Adjust expected output.

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

19 years ago * ld.texinfo (Command Line Options): Add @item for --hash-size.
Daniel Jacobowitz [Sun, 12 Jun 2005 18:38:39 +0000 (18:38 +0000)]
* ld.texinfo (Command Line Options): Add @item for --hash-size.

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

19 years ago * hppa.h (pa_opcodes): Use cM and cX instead of cm and cx,
Dave Anglin [Sat, 11 Jun 2005 15:33:52 +0000 (15:33 +0000)]
* hppa.h (pa_opcodes): Use cM and cX instead of cm and cx,
respectively, in various floating-point load and store patterns.

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

19 years ago * elfcode.h (elf_write_relocs): Do nothing if there are no
Daniel Jacobowitz [Fri, 10 Jun 2005 20:22:23 +0000 (20:22 +0000)]
* elfcode.h (elf_write_relocs): Do nothing if there are no
relocations.

19 years ago * dwarf2.c (decode_line_info): Revert last change. Instead set
Alan Modra [Fri, 10 Jun 2005 10:14:23 +0000 (10:14 +0000)]
* dwarf2.c (decode_line_info): Revert last change.  Instead set
initial low_pc to -1 to avoid need to test whether loc_pc has
been set.

19 years ago * ld-cris/libdso-10.d: Adjust for elf.sc .bss change.
Alan Modra [Fri, 10 Jun 2005 07:28:57 +0000 (07:28 +0000)]
* ld-cris/libdso-10.d: Adjust for elf.sc .bss change.
* ld-cris/libdso-2.d: Likewise.
* ld-mmix/loc6.d: Likewise.

19 years ago * config/tc-hppa.c (pa_block): Allocate just one byte for the
Alan Modra [Fri, 10 Jun 2005 05:46:48 +0000 (05:46 +0000)]
* config/tc-hppa.c (pa_block): Allocate just one byte for the
fill pattern.

19 years ago * ld-scripts/empty-aligned.t: Adjust alignment expressions so
Alan Modra [Fri, 10 Jun 2005 00:44:01 +0000 (00:44 +0000)]
* ld-scripts/empty-aligned.t: Adjust alignment expressions so
that no .text? section is kept.  Also check setting vma and
lma.
* ld-scripts/empty-aligned.d: Update.

19 years agoremove conflict indicator
Alan Modra [Fri, 10 Jun 2005 00:41:30 +0000 (00:41 +0000)]
remove conflict indicator

19 years ago * scripttempt/elf.sc (.bss): Align tail in a way that allows
Alan Modra [Fri, 10 Jun 2005 00:39:56 +0000 (00:39 +0000)]
* scripttempt/elf.sc (.bss): Align tail in a way that allows
empty section pruning.

19 years agodaily update
Alan Modra [Fri, 10 Jun 2005 00:00:08 +0000 (00:00 +0000)]
daily update

19 years ago* coffcode.h (sec_to_styp_flags): Set appropriate section flags when either
Christopher Faylor [Thu, 9 Jun 2005 19:22:15 +0000 (19:22 +0000)]
* coffcode.h (sec_to_styp_flags): Set appropriate section flags when either
SEC_ALLOC OR SEC_LOAD.

19 years agoconfigure clean up patch from Steve Ellcey.
Jim Wilson [Thu, 9 Jun 2005 18:39:34 +0000 (18:39 +0000)]
configure clean up patch from Steve Ellcey.
* configure.in (AM_BINUTILS_WARNINGS): Add.
(BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
* config.in: Regenerate.
* configure: Regenerate.
* sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
* ldmain.c: Ditto.

19 years ago * objdump.c (disassemble_bytes): Don't crash if q->howto == NULL.
Jakub Jelinek [Thu, 9 Jun 2005 14:51:41 +0000 (14:51 +0000)]
* objdump.c (disassemble_bytes): Don't crash if q->howto == NULL.
If q->howto->name == NULL, print q->howto->type as number instead.
(dump_reloc_set): Likewise.

19 years ago* coffcode.h (sec_to_styp_flags): Remove read/write flags from noload section
Christopher Faylor [Thu, 9 Jun 2005 14:40:50 +0000 (14:40 +0000)]
* coffcode.h (sec_to_styp_flags): Remove read/write flags from noload section
header.  Do not add STYP_NOLOAD since it does not appear to be a valid PE flag.

19 years ago2005-06-09 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 9 Jun 2005 13:32:30 +0000 (13:32 +0000)]
2005-06-09  H.J. Lu  <hongjiu.lu@intel.com>

PR 1000
* dwarf2.c (lookup_address_in_line_info_table): Restore code
handling NULL function info, removed with 2005-04-03 change.

19 years ago * opncls.c (bfd_fopen): Mark returned BFD as cacheable if FD == -1.
Mark Mitchell [Thu, 9 Jun 2005 07:30:19 +0000 (07:30 +0000)]
* opncls.c (bfd_fopen): Mark returned BFD as cacheable if FD == -1.

19 years ago * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
Alan Modra [Thu, 9 Jun 2005 02:59:57 +0000 (02:59 +0000)]
* ldexp.c (fold_unary <ALIGN_K>): Revert last change.

19 years ago * ld-scripts/empty-aligned.d: Adjust.
Alan Modra [Thu, 9 Jun 2005 02:06:58 +0000 (02:06 +0000)]
* ld-scripts/empty-aligned.d: Adjust.

19 years ago * ld.h (lang_phase_type): Move to..
Alan Modra [Thu, 9 Jun 2005 02:05:47 +0000 (02:05 +0000)]
* ld.h (lang_phase_type): Move to..
* ldexp.h: ..here.  Add lang_mark_phase_enum.
(node_type): Remove etree_undef and etree_unspec.
(exp_data_seg): Delete.
(struct ldexp_control, expld): New.
(invalid, exp_mark_used_section): Delete.
(exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
exp_get_abs_int): Update prototypes.
* ldexp.c (assigning_to_dot): Delete.
(expld): Define.
(make_abs): Operate directly on expld.result.  Update all callers.
(new_abs): Likewise.  Return void.
(new_rel_from_abs): Rename from new_rel_from_section.
(new_rel, new_rel_from_abs): Operate on expld.result and return void.
Update all callers.
(fold_unary): Operate on expld.result and return void.  Remove
"current_section", "allocation_done", "dot", "dotp" and "mark_used"
params.  Update all callers.
(fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
(fold_unary <ALIGN_K>): Ensure alignment is absolute.
(fold_unary <ABSOLUTE>): Use make_abs.
(fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
allocating_phase.
(fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
(fold_binary <'%','/'>): Don't error if marking.
(fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
marking.
(fold_name <NAME>): Remove FIXME; -R is handled correctly.  Don't
error when marking.
(fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
(exp_fold_tree_1): Don't error when marking.
(exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
(exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
current section, instead check for NULL dotp.
(exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
source unless the symbol is referenced and undefined.
(exp_fold_tree): Remove "allocation_done" and "dot" params.  Save
params to expld.
(exp_fold_tree_no_dot): Remove "current_section", "allocation_done
and "mark_used" params.  Save params to expld.  Update all callers.
(exp_assop): Do without temp var.
(exp_print_tree <etree_undef>): Delete code.
(exp_get_vma): Remove "allocation_done" param.  Correct error return.
(exp_get_fill, exp_get_abs_int): Likewise.
(exp_get_value_int): Remove "allocation_done" param.
(exp_mark_used_section): Delete.
* ldgram.y (fill_exp): Update exp_get_fill call.
(origin_spec, length_spec): Update exp_get_vma call.
* ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
(lang_mark_used_section_1, lang_mark_used_section): Delete.
(strip_excluded_output_sections): Call one_lang_size_sections_pass in
marking mode.  Merge old lang_mark_used_section code.  Correct handling
of output sections with excluded input sections and data statements.
Don't drop non-zero sized sections.  Don't zap os->bfd_section.
Do set SEC_EXCLUDE when appropriate.
(print_output_section_statement): Update for changed ldexp.c
interface.
(print_assignment, lang_size_sections_1): Likewise.
(lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
(lang_new_phdr, lang_record_phdrs): Likewise.
(lang_size_sections): Likewise.
(insert_pad): Use following statement if it is a pad, rather than
creating a new one.
(lang_size_sections_1 <lang_output_section_statement_enum>): Do
process ignored output section to set vma and lma, but don't
update dot for these sections.  Don't error if marking.
(lang_size_sections_1 <lang_assignment_statement_enum>): Don't
update dot for ignored sections.
(lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
section with SEC_ALLOC.
(one_lang_size_sections_pass): New function.
(lang_size_sections): Remove first five params.  Set expld.phase on
entry and exit.   Use one_lang_size_sections_pass.
(lang_do_assignments): Remove all params.  Update all callers.
(lang_reset_memory_regions): Clear os->processed for all output
section statements.
* ldlang.h (lang_do_assignments): Update prototype.
(lang_size_sections): Likewise.
(one_lang_size_sections_pass): Declare.
* pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
lang_size_sections and lang_do_assignments calls.
* emultempl/elf32.em (layout_sections_again): Likewise.
* emultempl/ppc64elf.em (ppc_before_allocation): Use
one_lang_size_sections_pass.

19 years ago * elflink.c (elf_mark_used_section): Delete.
Alan Modra [Thu, 9 Jun 2005 02:02:18 +0000 (02:02 +0000)]
* elflink.c (elf_mark_used_section): Delete.
(bfd_elf_gc_sections): Call bfd_generic_gc_sections.
* reloc.c (bfd_mark_used_section): New function.
(bfd_generic_gc_sections): Call bfd_mark_used_section.

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

19 years agoWarning and partial fix for gcc -freorder-blocks-and-partition related problem.
Jim Wilson [Wed, 8 Jun 2005 19:47:59 +0000 (19:47 +0000)]
Warning and partial fix for gcc -freorder-blocks-and-partition related problem.
PR 994
* config/tc-ia64.c (slot_index): Revert last change.  If first_frag
is NULL, then emit a warning, and return the current index.

19 years agoopcodes:
Zack Weinberg [Wed, 8 Jun 2005 17:27:41 +0000 (17:27 +0000)]
opcodes:
* arm-opc.h: Delete; fold contents into ...
* arm-dis.c: ... here.  Move includes of internal COFF headers
next to includes of internal ELF headers.
(streq, WORD_ADDRESS, BDISP, BDISP23): Delete, unused.
(struct arm_opcode): Rename struct opcode32.  Make 'assembler' const.
(struct thumb_opcode): Rename struct opcode16.  Make 'assembler' const.
(arm_conditional, arm_fp_const, arm_shift, arm_regname, regnames)
(iwmmxt_wwnames, iwmmxt_wwssnames):
Make const.
(regnames): Remove iWMMXt coprocessor register sets.
(iwmmxt_regnames, iwmmxt_cregnames): New statics.
(get_arm_regnames): Adjust fourth argument to match above changes.
(set_iwmmxt_regnames): Delete.
(print_insn_arm): Constify 'c'.  Use ISO syntax for function
pointer calls.  Expand sole use of BDISP.  Use iwmmxt_regnames
and iwmmxt_cregnames, not set_iwmmxt_regnames.
(print_insn_thumb16, print_insn_thumb32): Constify 'c'.  Use
ISO syntax for function pointer calls.
include:
* dis-asm.h (get_arm_regnames): Update prototype.

19 years agoPR991
Nick Clifton [Wed, 8 Jun 2005 17:02:54 +0000 (17:02 +0000)]
PR991
* config/tc-m68k.c (m68k_ip): Test for insn compatiblity using a temporary copy
  of the operands array so that changes can be safely backed out if the insn
  does not match.
  (m68k_compare_opcode): Shortcut the test when the parameters are the same.
  Return 1 if the names match but the second opcode is further on in the array
  than the first.

19 years agoPR 994
Nick Clifton [Wed, 8 Jun 2005 15:47:45 +0000 (15:47 +0000)]
PR 994
* config/tc-ia64.c (slot_index): Check for a NULL first_frag.

19 years ago(use_parallel): Change default value from 1 to 0.
Nick Clifton [Wed, 8 Jun 2005 14:39:54 +0000 (14:39 +0000)]
(use_parallel): Change default value from 1 to 0.

19 years ago * emulparams/elf32ms1.sh: New.
Aldy Hernandez [Wed, 8 Jun 2005 13:03:24 +0000 (13:03 +0000)]
* emulparams/elf32ms1.sh: New.

19 years ago * opncls.c (bfd_fdopenr): Don't set bfd_error unconditionally.
Alan Modra [Wed, 8 Jun 2005 03:51:32 +0000 (03:51 +0000)]
* opncls.c (bfd_fdopenr): Don't set bfd_error unconditionally.

19 years ago * opncls.c (bfd_fopen): Don't set bfd_error unconditionally.
Alan Modra [Wed, 8 Jun 2005 03:16:48 +0000 (03:16 +0000)]
* opncls.c (bfd_fopen): Don't set bfd_error unconditionally.

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

19 years ago * opncls.c (bfd_fdopenr): Add missing break statements.
Mark Mitchell [Wed, 8 Jun 2005 00:00:05 +0000 (00:00 +0000)]
* opncls.c (bfd_fdopenr): Add missing break statements.

19 years ago2005-06-07 Eric Christopher <echristo@redhat.com>
Eric Christopher [Tue, 7 Jun 2005 23:56:50 +0000 (23:56 +0000)]
2005-06-07  Eric Christopher  <echristo@redhat.com>

        * Makefile.am (eelf32ms1.c): Use tab.
        * Makefile.in: Regenerate.

2005-06-07  Eric Christopher  <echristo@redhat.com>

        * readelf.c (guess_is_rela): Support ms1.
        (dump_relocations): Ditto.
        (get_machine_name): Ditto.

19 years ago * opncls.c (bfd_fopen): New API.
Mark Mitchell [Tue, 7 Jun 2005 22:53:32 +0000 (22:53 +0000)]
* opncls.c (bfd_fopen): New API.
(bfd_openr): Use it.
(bfd_fdopenr): Likewise.
* bfd-in2.h: Regenerated.

19 years ago * arm-dis.c: Split up the comments describing the format codes, so
Zack Weinberg [Tue, 7 Jun 2005 22:16:52 +0000 (22:16 +0000)]
* arm-dis.c: Split up the comments describing the format codes, so
that the ARM and 16-bit Thumb opcode tables each have comments
preceding them that describe all the codes, and only the codes,
valid in those tables.  (32-bit Thumb table is already like this.)
Reorder the lists in all three comments to match the order in
which the codes are implemented.
Remove all forward declarations of static functions.  Convert all
function definitions to ISO C format.
(print_insn_arm, print_insn_thumb16, print_insn_thumb32):
Return nothing.
(print_insn_thumb16): Remove unused case 'I'.
(print_insn): Update for changed calling convention of subroutines.

19 years ago * Makefile.am (readelf.o): Depend on ms1.h.
Aldy Hernandez [Tue, 7 Jun 2005 21:14:09 +0000 (21:14 +0000)]
* Makefile.am (readelf.o): Depend on ms1.h.

* Makefile.in: Regenerate.

* readelf.c: Include ms1.h.

19 years ago * configure.in: Add ms1 case.
Aldy Hernandez [Tue, 7 Jun 2005 21:13:14 +0000 (21:13 +0000)]
* configure.in: Add ms1 case.

* configure: Regenerate.

* configure.tgt: Add ms1 case.

19 years ago * configure.tgt: Same.
Aldy Hernandez [Tue, 7 Jun 2005 21:12:16 +0000 (21:12 +0000)]
* configure.tgt: Same.

* Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
(eelf32ms1.c): Add eelf32ms1.c rule.

* Makefile.in: Regenerate.

19 years ago * common.h (EM_MS1): Define.
Aldy Hernandez [Tue, 7 Jun 2005 21:10:08 +0000 (21:10 +0000)]
* common.h (EM_MS1): Define.

* ms1.h: New file.

19 years ago * dis-asm.h: Externalize print_insn_ms1.
Aldy Hernandez [Tue, 7 Jun 2005 21:08:36 +0000 (21:08 +0000)]
* dis-asm.h: Externalize print_insn_ms1.

19 years ago * Makefile.am (ALL_MACHINES): Add ms1 support.
Aldy Hernandez [Tue, 7 Jun 2005 21:07:32 +0000 (21:07 +0000)]
* Makefile.am (ALL_MACHINES): Add ms1 support.
(ALL_MACHINES_CFILES): Same.
(BFD32_BACKENDS): Same.
(BFD32_BACKENDS_CFILES): Same.

* Makefile.in: Regenerate.

* archures.c (bfd_architecture): Add ms1 entries.
Externalize bfd_ms1_arch.
(bfd_archures_list): Add bfd_ms1_arch.

* bfd-in2.h: Regenerate.

* cpu-ms1.c: New file.

* elf32-ms1.c: New file.

* targets.c: Define extern of bfd_elf32_ms1_vec.
Add bfd_elf32_ms1_vec to _bfd_target_vector.

* configure.in: Add bfd_elf32_ms1_vec case.

* configure: Regenerate.

* config.bfd: Add ms1-*-elf to table.

19 years ago * config/tc-xtensa.h (resource_table): Change units to unsigned chars.
Bob Wilson [Tue, 7 Jun 2005 18:31:34 +0000 (18:31 +0000)]
    * config/tc-xtensa.h (resource_table): Change units to unsigned chars.
        * config/tc-xtensa.c (new_resource_table): Likewise.
        (resize_resource_table): Likewise.
        (release_resources): Fix assertion for unsigned values.

19 years agoRevert accidental commit
Zack Weinberg [Tue, 7 Jun 2005 18:03:17 +0000 (18:03 +0000)]
Revert accidental commit

19 years agogas:
Zack Weinberg [Tue, 7 Jun 2005 17:54:22 +0000 (17:54 +0000)]
gas:
* cgen.c, cgen.h, tc.h, write.c, config/obj-coff.c
* config/tc-a29k.c, config/tc-alpha.c, config/tc-alpha.h
* config/tc-arc.c, config/tc-arc.h, config/tc-arm.c
* config/tc-arm.h, config/tc-avr.c, config/tc-avr.h
* config/tc-cris.c, config/tc-crx.c, config/tc-d10v.c
* config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h
* config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.h
* config/tc-frv.c, config/tc-frv.h, config/tc-h8300.c
* config/tc-h8500.c, config/tc-hppa.c, config/tc-hppa.h
* config/tc-i370.c, config/tc-i370.h, config/tc-i386.c
* config/tc-i386.h, config/tc-i860.c, config/tc-i860.h
* config/tc-i960.c, config/tc-i960.h, config/tc-ia64.c
* config/tc-ip2k.c, config/tc-ip2k.h, config/tc-iq2000.c
* config/tc-iq2000.h, config/tc-m32r.c, config/tc-m32r.h
* config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c
* config/tc-m68k.h, config/tc-m88k.c, config/tc-maxq.c
* config/tc-mcore.c, config/tc-mcore.h, config/tc-mips.c
* config/tc-mips.h, config/tc-mmix.c, config/tc-mn10200.c
* config/tc-mn10300.c, config/tc-msp430.c, config/tc-ns32k.c
* config/tc-openrisc.h, config/tc-or32.c, config/tc-or32.h
* config/tc-pdp11.c, config/tc-pj.c, config/tc-pj.h
* config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c
* config/tc-s390.h, config/tc-sh64.c, config/tc-sh.c
* config/tc-sh.h, config/tc-sparc.c, config/tc-sparc.h
* config/tc-tahoe.c, config/tc-tic30.c, config/tc-tic4x.c
* config/tc-tic54x.c, config/tc-tic80.c, config/tc-v850.c
* config/tc-v850.h, config/tc-vax.c, config/tc-vax.h
* config/tc-w65.c, config/tc-xstormy16.c, config/tc-xstormy16.h
* config/tc-xtensa.c, config/tc-z8k.c:
Replace all instances of the string "_apply_fix3" with
"_apply_fix".
* po/POTFILES.in, po/gas.pot: Regenerate.
bfd:
* coff-i386.c: Change md_apply_fix3 to md_apply_fix in comment.
cgen:
* doc/porting.texi: Change all mention of md_apply_fix3 and
gas_cgen_md_apply_fix3 to md_apply_fix and gas_cgen_md_apply_fix
respectively.

19 years ago * Makefile.am: Run "make dep-am".
Alan Modra [Tue, 7 Jun 2005 16:09:36 +0000 (16:09 +0000)]
* Makefile.am: Run "make dep-am".
(POTFILES): Remove GAS_CFILES.
* Makefile.in: Regenerate.

19 years agomissed committing from
Alan Modra [Tue, 7 Jun 2005 12:12:11 +0000 (12:12 +0000)]
missed committing from
* elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.

19 years ago* config/tc-mips.c (mips_cpu_info_table): Add cpu names m4k, 24k,
Maciej W. Rozycki [Tue, 7 Jun 2005 12:09:26 +0000 (12:09 +0000)]
* config/tc-mips.c (mips_cpu_info_table): Add cpu names m4k, 24k,
24kc, 24kf and 24kfx under MIPS32 release 2.

19 years ago * configure.in <cris-*, crisv32-*>: Enable target-libffi again for
Hans-Peter Nilsson [Tue, 7 Jun 2005 09:33:44 +0000 (09:33 +0000)]
* configure.in <cris-*, crisv32-*>: Enable target-libffi again for
*-*-linux* and *-*-elf.
* configure: Regenerate.

19 years agoSync with gcc-toplevel
Hans-Peter Nilsson [Tue, 7 Jun 2005 06:18:26 +0000 (06:18 +0000)]
Sync with gcc-toplevel

19 years ago * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Init _bfd_find_line.
Alan Modra [Tue, 7 Jun 2005 03:13:05 +0000 (03:13 +0000)]
* coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Init _bfd_find_line.
* coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.

19 years ago * configure.in (unsupported_languages): New macro.
Hans-Peter Nilsson [Tue, 7 Jun 2005 00:04:15 +0000 (00:04 +0000)]
* configure.in (unsupported_languages): New macro.
<mmix-knuth-mmixware>: Set unsupported_languages.  Name explicit
non-ported target libraries in noconfigdirs.
<cris-*, crisv32-*> Ditto, except for non-aout, non-elf,
non-linux-gnu.  Remove libgcj_ex_libffi.
  <lang_frag loop>: Set add_this_lang=no if the language is in
unsupported_languages.
* configure: Regenerate.

19 years agodaily update
Alan Modra [Tue, 7 Jun 2005 00:00:05 +0000 (00:00 +0000)]
daily update

19 years agomerge from gcc
DJ Delorie [Mon, 6 Jun 2005 22:13:35 +0000 (22:13 +0000)]
merge from gcc

19 years ago* configure.in: Fix typo in handling of --with-mpfr-dir.
DJ Delorie [Mon, 6 Jun 2005 18:36:50 +0000 (18:36 +0000)]
* configure.in: Fix typo in handling of --with-mpfr-dir.
* configure: Regenerate.

19 years agobfd/
H.J. Lu [Mon, 6 Jun 2005 14:28:31 +0000 (14:28 +0000)]
bfd/

2005-06-06  H.J. Lu  <hongjiu.lu@intel.com>

PR 990
* bfd.c (bfd_find_line): New.

* dwarf2.c (comp_unit): Add variable_table.
(funcinfo): Add file, line, and sec.
(varinfo): New.
(lookup_symbol_in_function_table): New.
(lookup_symbol_in_variable_table): New.
(scan_unit_for_functions): Renamed to ...
(scan_unit_for_symbols): This. Handle DW_TAG_entry_point and
DW_TAG_variable.
(comp_unit_find_nearest_line): Updated.
(comp_unit_find_line): New.
(_bfd_dwarf2_find_line): New.

* elf-bfd.h (_bfd_elf_find_line): New.
(_bfd_generic_find_line): New. Defined.

* elf.c (_bfd_elf_find_line): New.

* libbfd-in.h (_bfd_dwarf2_find_line): New.
(_bfd_generic_find_line): New.

* bfd-in2.h: Regenerated.
* libbfd.h: Likewise.

* libbfd.c (_bfd_generic_find_line): New.

* targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize _bfd_find_line
with _bfd_generic_find_line.
(bfd_target): Add _bfd_find_line.

binutils/

2005-06-06  H.J. Lu  <hongjiu.lu@intel.com>

PR 990
* nm.c (print_symbol): Call bfd_find_line before
bfd_find_nearest_line.

19 years ago2005-06-06 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 6 Jun 2005 14:16:45 +0000 (14:16 +0000)]
2005-06-06  H.J. Lu  <hongjiu.lu@intel.com>

* dwarf2.c (decode_line_info): Properly set low_pc.

19 years ago * elf64-ppc.c (ppc_stub_name): Return immediately on bfd_malloc fail.
Alan Modra [Mon, 6 Jun 2005 13:16:15 +0000 (13:16 +0000)]
* elf64-ppc.c (ppc_stub_name): Return immediately on bfd_malloc fail.
(ppc64_elf_edit_opd): Ignore zero size .opd.  Check bfd_alloc
return value.

19 years agobfd/
Alan Modra [Mon, 6 Jun 2005 12:59:59 +0000 (12:59 +0000)]
bfd/
* elf64-pcc.c (ppc64_elf_gc_mark_hook): For the local sym in .opd
case, include addend when indexing .opd section map.
(ppc64_elf_edit_opd): Add no_opd_opt param.  Do nothing besides
clear opd_adjust array if no_opd_opt set.  Tidy code.
* elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
ld/
* emultempl/ppc64elf.em (ppc_before_allocation): Always run
ppc64_elf_edit_opd.

19 years ago * NEWS: Mention new powerpc ld support.
Alan Modra [Mon, 6 Jun 2005 06:53:07 +0000 (06:53 +0000)]
* NEWS: Mention new powerpc ld support.

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

19 years agold/
H.J. Lu [Sun, 5 Jun 2005 15:28:36 +0000 (15:28 +0000)]
ld/

2005-06-05  H.J. Lu  <hongjiu.lu@intel.com>

* ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
section only if the symbol will be defined.

ld/testsuite/

2005-06-05  H.J. Lu  <hongjiu.lu@intel.com>

* ld-cris/hiddef1.d: Undo the last change.
* ld-cris/libdso-10.d: Likewise.
* ld-cris/libdso-2.d: Likewise.

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

19 years ago2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sat, 4 Jun 2005 18:11:07 +0000 (18:11 +0000)]
2005-06-04  H.J. Lu  <hongjiu.lu@intel.com>

* ld-cris/hiddef1.d: Updated.
* ld-cris/libdso-10.d: Likewise.
* ld-cris/libdso-2.d: Likewise.

19 years ago2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sat, 4 Jun 2005 16:33:09 +0000 (16:33 +0000)]
2005-06-04  H.J. Lu  <hongjiu.lu@intel.com>

* dwarf2.c (comp_unit): Fix a typo in comment.

19 years ago2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sat, 4 Jun 2005 14:40:21 +0000 (14:40 +0000)]
2005-06-04  H.J. Lu  <hongjiu.lu@intel.com>

PR 992
* ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
section for etree_assign, etree_provide and etree_provided.
Call fold_binary on etree_binary.

* ldlang.c (lang_mark_used_section_1): Handle load base.

19 years ago(CE, C3, CM, UE, UF): Redefine without reference to their Thumb-enabled
Nick Clifton [Sat, 4 Jun 2005 14:06:01 +0000 (14:06 +0000)]
(CE, C3, CM, UE, UF): Redefine without reference to their Thumb-enabled
equivalents.

19 years agodaily update
Alan Modra [Sat, 4 Jun 2005 00:00:08 +0000 (00:00 +0000)]
daily update

19 years agoPatch from Steve Ellcey for hpux build failure.
Jim Wilson [Fri, 3 Jun 2005 21:33:49 +0000 (21:33 +0000)]
Patch from Steve Ellcey for hpux build failure.
* configure.in: Check for getc_unlocked prototype.
* configure: Regenerate.
* config.in: Regenerate.
* strings.c (get_char): Only call getc_unlocked if we have seen a
prototype.

19 years ago* configure.in (ALL_LINGUAS): Add zh_TW
Nick Clifton [Fri, 3 Jun 2005 13:22:15 +0000 (13:22 +0000)]
* configure.in (ALL_LINGUAS): Add zh_TW
* configure: Regenerate.
* po/zh_TW.po: New Chinese (traditional) translation.

19 years agoRemove spurious blank space
Nick Clifton [Fri, 3 Jun 2005 10:14:29 +0000 (10:14 +0000)]
Remove spurious blank space

19 years agoConvert to ISO C90 formatting
Nick Clifton [Fri, 3 Jun 2005 10:13:15 +0000 (10:13 +0000)]
Convert to ISO C90 formatting

19 years agoinclude/
Alan Modra [Fri, 3 Jun 2005 09:52:50 +0000 (09:52 +0000)]
include/
* bfdlink.h (struct bfd_link_callbacks): Add einfo.
bfd/
* configure.in: Bump version
* configure: Regenerate.
* elflink.c (elf_link_input_bfd): Use einfo linker callback to print
discarded section sym refs and kill linker output.
* simple.c (simple_dummy_einfo): New function.
(bfd_simple_get_relocated_section_contents): Init callbacks.einfo.
ld/
* ldmain.c (link_callbacks): Add einfo.
(add_archive_element): Use passed info, not link_info.
(constructor_callback): Likewise.
(reloc_overflow): Don't handle null bfd specially.
(reloc_dangerous, unattached_reloc): Likewise.
* ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
(vfinfo <C, D, G>): Handle null bfd.  Wrap comments.

19 years ago * elf32-i386.c (elf_i386_relocate_section): Handle zero symndx
Alan Modra [Fri, 3 Jun 2005 03:58:13 +0000 (03:58 +0000)]
* elf32-i386.c (elf_i386_relocate_section): Handle zero symndx
for all reloc types.

19 years agodaily update
Alan Modra [Fri, 3 Jun 2005 00:00:05 +0000 (00:00 +0000)]
daily update

19 years ago* config.sub: Add cases for the Renesas m32c. (This patch has been
Jim Blandy [Thu, 2 Jun 2005 21:23:04 +0000 (21:23 +0000)]
* config.sub: Add cases for the Renesas m32c.  (This patch has been
accepted into the master sources.)

19 years ago * configure.in: Set noconfigdirs for ms1.
Aldy Hernandez [Thu, 2 Jun 2005 19:56:31 +0000 (19:56 +0000)]
    * configure.in: Set noconfigdirs for ms1.

        * configure: Regenerate.

19 years ago * ld-powerpc/powerpc.exp (ppcelftests): Assemble sda test with -a32.
Alan Modra [Thu, 2 Jun 2005 14:30:03 +0000 (14:30 +0000)]
* ld-powerpc/powerpc.exp (ppcelftests): Assemble sda test with -a32.

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.