OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
19 years agodaily update
Alan Modra [Tue, 5 Jul 2005 00:00:06 +0000 (00:00 +0000)]
daily update

19 years ago2005-07-04 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 4 Jul 2005 17:51:36 +0000 (17:51 +0000)]
2005-07-04  H.J. Lu  <hongjiu.lu@intel.com>

* tic30-dis.c (cnvt_tmsfloat_ieee): Use HUGE_VALF if defined.

19 years ago2005-07-04 Zack Weinberg <zack@codesourcery.com>
Paul Brook [Mon, 4 Jul 2005 14:58:52 +0000 (14:58 +0000)]
2005-07-04  Zack Weinberg  <zack@codesourcery.com>

* lib/gas-defs.exp (run_dump_tests): New proc.
(run_dump_test): Add support for new options: target, not-target,
skip, not-skip, error-output.  Document stderr.  Tidy a
little.
(slurp_options): If a line doesn't match the option regexp, but
does begin with #, ignore it; don't stop parsing options.
* gas/arm/arm.exp: Remove most code.  Use run_dump_tests.

* gas/arm/archv6t2-bad.d, gas/arm/armv1.d, gas/arm/iwmmxt-bad.d
* gas/arm/r15-bad.d, gas/arm/req.d, gas/arm/t16-bad.d
* gas/arm/undefined.d, gas/arm/undefined_coff.d, gas/arm/vfp-bad.d:
New files.
* gas/arm/bignum1.d, gas/arm/mapping.d, gas/arm/pic.d:
Only run on ELF targets.
* gas/arm/tls.d, gas/arm/unwind.d: Only run on ELF targets.
Skip on VxWorks.
* gas/arm/tls_vxworks.d, gas/arm/unwind_vxworks.d: New files.
* gas/arm/thumb.d, gas/arm/thumb32.d: Don't run on aout or pe.
* gas/arm/le-fpconst.d: Only run on *-*-pe.
* gas/arm/inst.d: Skip on WinCE.
* gas/arm/wince_inst.d: Skip unless WinCE.
* gas/arm/el_segundo.d: Mark up for actual use; adjust
expectations.
* gas/arm/el_segundo.s: Remove irrelevant junk.  Add padding
for a.out's sake.

19 years agoFix typo
Nick Clifton [Mon, 4 Jul 2005 14:36:02 +0000 (14:36 +0000)]
Fix typo

19 years agoFix compile time warning messages about signed/unsigned conflicts reported
Nick Clifton [Mon, 4 Jul 2005 14:27:07 +0000 (14:27 +0000)]
Fix compile time warning messages about signed/unsigned conflicts reported
by GCC 4.0

19 years agom32r-linux-ld support for position independent executables
Nick Clifton [Mon, 4 Jul 2005 13:54:36 +0000 (13:54 +0000)]
m32r-linux-ld support for position independent executables

19 years ago PR 1042
Alan Modra [Mon, 4 Jul 2005 10:30:09 +0000 (10:30 +0000)]
PR 1042
* elf.c (assign_file_positions_for_segments): Remove excluded
sections from the segment map.

19 years ago * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
Alan Modra [Mon, 4 Jul 2005 04:04:19 +0000 (04:04 +0000)]
* emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.

19 years ago PR 1004
Alan Modra [Mon, 4 Jul 2005 01:53:44 +0000 (01:53 +0000)]
PR 1004
bfd/
* elf-bfd.h (struct elf_backend_data): Add get_sec_type_attr.  Delete
special_sections.
(_bfd_elf_get_special_section): Declare.
(bfd_elf_special_section): Update prototype.
* elf.c (special_sections): Remove unused outer entries.
(get_special_section): Delete.
(_bfd_elf_get_special_section): New function.
(_bfd_elf_get_sec_type_attr): Replace "name" arg with "sec".  Update
special_sections indexing.
(_bfd_elf_new_section_hook): Call backend get_sec_type_attr.
* elf32-arm.c (symbian_special_sections_d): Delete.
(symbian_special_sections_g, symbian_special_sections_h): Delete.
(symbian_special_sections_i, symbian_special_sections_f): Delete.
(symbian_special_sections_p): Delete.
(elf32_arm_symbian_special_sections): Merge above to here.
(elf32_arm_symbian_get_sec_type_attr): New function.
(elf_backend_special_sections): Don't define.
(elf_backend_get_sec_type_attr): Define.
* elf32-m32r.c: Similarly to elf32-arm.c.
* elf32-m68hc11.c: Likewise.
* elf32-m68hc12.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-sh64.c: Likewise.
* elf32-v850.c: Likewise.
* elf32-xtensa.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-hppa.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-sh64.c: Likewise.
* elfxx-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
* elf32-ppc.c: Likewise.
(bfd_elf_special_section ppc_alt_plt): New.  Use it if .plt loadable.
* elfxx-mips.h (_bfd_mips_elf_get_sec_type_attr): Declare.
(_bfd_mips_elf_special_sections, elf_backend_special_sections): Delete.
(elf_backend_get_sec_type_attr): Define.
* elfxx-target.h (elf_backend_get_sec_type_attr): Define.
(elf_backend_special_sections): Don't define.
(elfNN_bed): Update.

binutils/
* objcopy.c (copy_object): Use bfd_make_section_with_flags.
(write_debugging_info): Likewise.
(setup_section): Use bfd_make_section_anyway_with_flags.
gas/
* config/obj-elf.c (obj_elf_change_section): Use backend
get_sec_type_attr.

19 years agodaily update
Alan Modra [Mon, 4 Jul 2005 00:00:04 +0000 (00:00 +0000)]
daily update

19 years ago * src-release (do-proto-toplev): Remove dejagnu bits.
Ben Elliston [Sun, 3 Jul 2005 20:43:40 +0000 (20:43 +0000)]
* src-release (do-proto-toplev): Remove dejagnu bits.
(DEJAGNU_SUPPORT_DIRS): Remove.
(dejagnu.tar.bz2, dejagnu.tar): Likewise.
(GDBD_SUPPORT_DIRS): Likewise.
(gdb+dejagnu.tar.bz2, gdb+dejagnu.tar): Likewise.
(INSIGHTD_SUPPORT_DIRS): Likewise.
(insight+dejagnu.tar.bz2, insight+dejagnu.tar): Likewise.

19 years agomerge from gcc
DJ Delorie [Sun, 3 Jul 2005 19:16:20 +0000 (19:16 +0000)]
merge from gcc

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

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

19 years ago * configure.in (AM_BINUTILS_WARNINGS): Add.
Steve Ellcey [Fri, 1 Jul 2005 15:19:47 +0000 (15:19 +0000)]
* configure.in (AM_BINUTILS_WARNINGS): Add.
(BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
* configure: Regenerate.
* config.in: Regenerate.
* objdump.c (NEED_DECLARATION_*): Replace with !HAVE_DECL_*.
* bucomm.h: (NEED_DECLARATION_*): Ditto.

19 years agoUpdate function declarations to ISO C90 formatting
Nick Clifton [Fri, 1 Jul 2005 11:16:33 +0000 (11:16 +0000)]
Update function declarations to ISO C90 formatting

19 years agogas/
Jan Beulich [Fri, 1 Jul 2005 06:51:39 +0000 (06:51 +0000)]
gas/
2005-07-01  Jan Beulich  <jbeulich@novell.com>

* config/tc-ia64.c (line_separator_chars): Add '{' and '}'.
(output_spill_psprel, output_spill_psprel_p): Combine.
(output_spill_sprel, output_spill_sprel_p): Combine.
(output_spill_reg, output_spill_regp_p): Combine.
(process_one_record): Handle psp_psprel.
(parse_predicate_and_operand): New.
(convert_expr_to_ab_reg): Two new parameters. Return void. Always
initialize output values. Emit diagnostic case here.
(convert_expr_to_xy_reg): Likewise. Don't allow r0, f0, and f1.
(add_unwind_entry): New second parameter. Allow first parameter to
be NULL. Parse optional tag, emit warning about further support for
it otherwise being missing. Check end-of-line when requested.
(dot_fframe): Clear operand when wrong. Allow tag.
(dot_vframe): Likewise.
(dot_vframesp): Likewise. Rename parameter, issue warning when psp
relative.
(dot_vframepsp): Remove.
(dot_altrp): Clear operand when wrong. Allow tag.
(dot_save): Likewise. Let default case also go through
add_unwind_entry.
(dot_savemem): Likewise.
(dot_restore): Don't return when wrong operand. Allow tag.
(dot_spillreg, dot_spillreg_p): Combine. Simplify by using
parse_predicate_and_operand and the new arguments to
convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
when wrong operand. Allow tag.
(dot_restorereg, dot_restorereg_p): Likewise.
(dot_spillmem, dot_spillmem_p): Likewise.
(dot_saveg): Clear operand when wrong. Perform tighter operand
checks. Allow tag.
(dot_savef): Likewise.
(dot_saveb): Likewise.
(dot_savegf): Likewise.
(dot_spill): Remove end-of-line check.  Combine. Simplify by using
parse_predicate_and_operand and the new arguments to
convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
when wrong operand. Allow tag.
(popcount): New.
(dot_label_state): Don't return when wrong operand.
(dot_copy_state): Likewise.
(dot_unwabi): Likewise. Check if in prologue.
(dot_body): Don't call demand_empty_rest_of_line.
(dot_prologue): Type of mask and grsave is unsigned. Perform tighter
operand checks.
(md_pseudo_table): Also use dot_restorereg for .restorereg.p. Also
use dot_spillreg for .spillreg.p. Also use dot_spillmem for
.spillpsp.p and .spillsp.p. Also use dot_vframesp for .vframepsp.
(parse_operand): New second parameter. Don't deal with '}' here
anymore. Don't advance past end-of-line.
(parse_operands): Pass second argument to parse_operand.
(ia64_start_line): Prevent out-of-bounds access through
input_line_pointer. Deal with '}' here.
(ia64_unrecognized_line): Don't deal with '}' here.
(dot_alias): Use ignore_rest_of_line not its deprecated alias
discard_rest_of_line.

gas/testsuite/
2005-07-01  Jan Beulich  <jbeulich@novell.com>

* gas/ia64/group-2.s: Use register as second operand of .prologue.
* gas/ia64/unwind-err.s: Add check for .vframesp.
* gas/ia64/unwind-err.l: Adjust.
* gas/ia64/strange.[sd]: New.
* gas/ia64/unwind-bad.[sl]: New.
* gas/ia64/unwind-ok.[sd]: New.
* gas/ia64/ia64.exp: Run new tests.

19 years ago * elf64-alpha.c (elf64_alpha_create_got_section): Always create
Alan Modra [Fri, 1 Jul 2005 04:46:08 +0000 (04:46 +0000)]
* elf64-alpha.c (elf64_alpha_create_got_section): Always create
a new .got section.
(elf64_alpha_create_dynamic_sections): Always make new sections
by using bfd_make_section_anyway_with_flags.  Check that .got not
already created.
(elf64_alpha_check_relocs): Delete "got_created".  Use tdata->gotobj
instead.

19 years ago * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
Alan Modra [Fri, 1 Jul 2005 01:55:01 +0000 (01:55 +0000)]
* scripttempl/elf.sc (.gcc_except_table): Don't KEEP.

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

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

19 years agoCorrect ChangeLog entry
Zack Weinberg [Thu, 30 Jun 2005 18:35:17 +0000 (18:35 +0000)]
Correct ChangeLog entry

19 years agogas:
Zack Weinberg [Thu, 30 Jun 2005 18:33:17 +0000 (18:33 +0000)]
gas:
* config/tc-arm.c (T_OPCODE_BRANCH, encode_arm_addr_mode_2)
(encode_arm_addr_mode_3, encode_arm_cp_address, do_blx, do_t_blx)
(do_t_branch, insns [b, bl]): Don't encode pipeline offset.
(s_arm_elf_cons): Disallow use of (plt) suffix.
(do_adrl): Adjust X_add_number unconditionally.
(md_pcrel_from): Rename md_pcrel_from_section, add second segT
argument.  Handle all adjustment for pipeline offset here.
(md_apply_fix): No need to undo work of md_pcrel_from.  No
need to extract pre-encoded pipeline adjustments from various
branch instructions.  Generally, assume instructions are already
all-bits-zero in the field being fixed up.  Remove all OBJ_ELF
special cases.  Handle BFD_RELOC_ARM_PLT32 like
BFD_RELOC_ARM_PCREL_BRANCH.
(tc_gen_reloc): Remove OBJ_ELF special case.
* config/tc-arm.c: Define MD_PCREL_FROM_SECTION.

gas/testsuite:
* gas/arm/arm.exp: Don't special case ldconst, arm7t, or copro
for *-wince-*.
* gas/arm/wince_arm7t.d, gas/arm/wince_copro.d
* gas/arm/wince_ldconst.d: Delete.

19 years ago * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Ignore dynamic
Alan Modra [Thu, 30 Jun 2005 08:11:15 +0000 (08:11 +0000)]
* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Ignore dynamic
_SDA_BASE_ and _SDA2_BASE_ symbols.
* elflink.c (_bfd_elf_provide_symbol): Correct comment.  Define
sym if not def_regular.
(_bfd_elf_provide_section_bound_symbols): Similarly.

19 years ago * Makefile.am (check-DEJAGNU): Don't search for expect.
Ben Elliston [Thu, 30 Jun 2005 00:54:06 +0000 (00:54 +0000)]
* Makefile.am (check-DEJAGNU): Don't search for expect.
* Makefile.in: Regenerate.

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

19 years ago * config.bfd: Mark as obsolete:
Ben Elliston [Wed, 29 Jun 2005 21:22:13 +0000 (21:22 +0000)]
* config.bfd: Mark as obsolete:
    m68*-apollo-*
    m68*-apple-aux*
    m68*-bull-sysv*

19 years ago * Makefile.am (EXPECT): Set to expect.
Ben Elliston [Wed, 29 Jun 2005 20:30:00 +0000 (20:30 +0000)]
* Makefile.am (EXPECT): Set to expect.
(RUNTEST): Likewise, set to runtest.
* Makefile.in: Regenerate.

19 years ago * setup.com (mpw): Remove unused directive.
Ben Elliston [Wed, 29 Jun 2005 19:12:31 +0000 (19:12 +0000)]
* setup.com (mpw): Remove unused directive.

19 years ago * elflink.c (_bfd_elf_gc_mark): Mark sections referenced by
Alan Modra [Wed, 29 Jun 2005 14:05:21 +0000 (14:05 +0000)]
* elflink.c (_bfd_elf_gc_mark): Mark sections referenced by
.eh_frame specially..
(bfd_elf_gc_sections): ..rather than totally ignoring .eh_frame.
Don't recheck sections we have already marked.
(elf_gc_sweep): Keep non-code sections referenced from .eh_frame.
* section.c (struct bfd_section): Add gc_mark_from_eh.
(STD_SECTION): Adjust.
* ecoff.c (bfd_debug_section): Adjust.
* bfd-in2.h: Regenerate.

19 years ago * elflink.c (elf_gc_sweep): Do not refcount on sections that have
Alan Modra [Wed, 29 Jun 2005 13:56:06 +0000 (13:56 +0000)]
* elflink.c (elf_gc_sweep): Do not refcount on sections that have
not been processed by check_relocs.

19 years ago2005-06-29 Paul Brook <paul@codesourcery.com>
Paul Brook [Wed, 29 Jun 2005 13:16:44 +0000 (13:16 +0000)]
2005-06-29  Paul Brook  <paul@codesourcery.com>

* bfd-in.h (_bfd_elf_provide_symbol): Update prototype.
* bfd-in2.h: Regenerate.
* elf32-ppc.c (ppc_elf_set_sdata_syms): Make sdata symbols section
relative.
* elflink.c (bfd_elf_set_symbol): Add section argument.
(_bfd_elf_provide_symbol): Ditto.
(_bfd_elf_provide_section_bound_symbols): Pass NULL section argument.

19 years agoRemove dejagnu/ entry.
Ben Elliston [Wed, 29 Jun 2005 02:05:07 +0000 (02:05 +0000)]
Remove dejagnu/ entry.

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

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

19 years ago * bfd/elf32-hppa.c (struct elf32_hppa_stub_hash_entry):
Dave Anglin [Mon, 27 Jun 2005 23:43:43 +0000 (23:43 +0000)]
* bfd/elf32-hppa.c (struct elf32_hppa_stub_hash_entry):
Use bh_root, and hh.
(struct elf32_hppa_link_hash_entry): Use eh, and hsh_cache.
(struct elf32_hppa_dyn_reloc_entry): Use hdh_next.
(struct elf32_hppa_link_hash_table): Use etab and bstab.
(stub_hash_newfunc): Use hh.
(hppa_link_hash_newfunc): Use hsh_cache.
(elf32_hppa_link_hash_table_create): Use etab, and bstab.
(elf32_hppa_link_hash_table_free): Use bstab.
(hppa_stub_name): Use eh.
(hppa_get_stub_entry): Use hh, hsh_entry, and hsh_cache.
(hppa_add_stub): Use bstab.
(hppa_type_of_stub): Use eh.
(hppa_build_one_stub): Use hh and bh_root.
(elf32_hppa_copy_indirect_symbol): Use hdh_next.
(elf32_hppa_check_relocs): Use eh, etab, and hdh_next.
(elf32_hppa_gc_sweep_hook): Use hdh_next.
(elf32_hppa_adjust_dynamic_symbol): Use hdh_next, and etab.
(allocate_plt_static): Use etab.
(allocate_dynrelocs): Use etab, and hdh_next.
(readonly_dynrelocs): Use hdh_next.
(elf32_hppa_size_dynamic_sections): Use etab, and hdh_next.
(get_local_syms): Use eh, bstab, and hh.
(elf32_hppa_size_stubs): Use eh, bstab, and hh.
(elf32_hppa_set_gp): Use etab.
(elf32_hppa_build_stubs): Use bstab.
(final_link_relocate): Use eh, bh_root.
(elf32_hppa_relocate_section): Use elf, etab.
(elf32_hppa_finish_dynamic_sections): Use etab.

19 years ago2005-06-27 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 27 Jun 2005 21:08:10 +0000 (21:08 +0000)]
2005-06-27  H.J. Lu  <hongjiu.lu@intel.com>

* elfxx-ia64.c (elfNN_hpux_backend_symbol_processing): Remove
the extra `;'.

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

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

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

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

19 years ago * config/m68k-parse.h: Use ISO C90.
Ben Elliston [Thu, 23 Jun 2005 11:40:29 +0000 (11:40 +0000)]
* config/m68k-parse.h: Use ISO C90.
* config/m68k-parse.y: Likewise.
* config/tc-m68k.h: Likewise.

19 years ago * ld-elfweak/size_foo.c (foo): Fix warning about implicit return
Andreas Schwab [Thu, 23 Jun 2005 11:36:22 +0000 (11:36 +0000)]
* ld-elfweak/size_foo.c (foo): Fix warning about implicit return
type.

19 years ago * m68k-dis.c: Use ISC C90.
Ben Elliston [Thu, 23 Jun 2005 11:18:26 +0000 (11:18 +0000)]
* m68k-dis.c: Use ISC C90.
* m68k-opc.c: Formatting fixes.

19 years ago2005-06-22 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Thu, 23 Jun 2005 07:34:15 +0000 (07:34 +0000)]
2005-06-22  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.def (stagefeedback): Come after profile.
Define profiledbootstrap target.
* Makefile.tpl (profiledbootstrap): Remove.
(stageprofile-end): Zap stagefeedback.
(stagefeedback-start): Copy all .gcda files, not only GCC's.
* Makefile.in: Regenerate.

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

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

19 years ago * bfd/elf32-hppa.c (hppa_elf_hash_entry): Define.
Dave Anglin [Tue, 21 Jun 2005 13:53:55 +0000 (13:53 +0000)]
* bfd/elf32-hppa.c (hppa_elf_hash_entry): Define.
(hppa_stub_hash_entry): Define.
(stub_hash_newfunc): Rename variables.
(hppa_link_hash_newfunc): Likewise.
(elf32_hppa_link_hash_table_free): Likewise.
(hppa_stub_name): Likewise.
(hppa_get_stub_entry): Likewise.
(hppa_add_stub): Likewise.
(hppa_type_of_stub): Likewise.
(hppa_build_one_stub): Likewise.
(hppa_size_one_stub): Likewise.
(elf32_hppa_create_dynamic_sections): Likewise.
(elf32_hppa_copy_indirect_symbol): Likewise.
(elf32_hppa_check_relocs): Likewise.
(elf32_hppa_gc_mark_hook): Likewise.
(elf32_hppa_gc_sweep_hook): Likewise.
(elf32_hppa_grok_psinfo): Likewise.
(elf32_hppa_hide_symbol): Likewise.
(elf32_hppa_adjust_dynamic_symbol): Likewise.
(allocate_dynrelocs): Likewise.
(clobber_millicode_symbols): Likewise.
(readonly_dynrelocs): Likewise.
(elf32_hppa_size_dynamic_sections): Likewise.
(get_local_syms): Likewise.
(elf32_hppa_size_stubs): Likewise.
(hppa_record_segment_addr): Likewise.
(final_link_relocate): Likewise.
(elf32_hppa_relocate_section): Likewise.
(elf32_hppa_finish_dynamic_symbol): Likewise.

19 years agoIndex: include/ChangeLog
Geoffrey Keating [Tue, 21 Jun 2005 00:28:25 +0000 (00:28 +0000)]
Index: include/ChangeLog
2005-06-20  Geoffrey Keating  <geoffk@apple.com>

* libiberty.h (strverscmp): Prototype.

Index: libiberty/ChangeLog
2005-06-20  Geoffrey Keating  <geoffk@apple.com>

* strverscmp.c: New.
* Makefile.in (CFILES): Add strverscmp.c.
(CONFIGURED_OFILES): Add strverscmp.o.
(strverscmp.o): New rule.
(stamp-functions): Add $(srcdir) to files in source directory.
* configure.ac (funcs): Add strverscmp.
(AC_CHECK_FUNCS): Add strverscmp.
* configure: Regenerate.
* functions.texi: Regenerate.

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

19 years agogas/
H.J. Lu [Mon, 20 Jun 2005 23:18:39 +0000 (23:18 +0000)]
gas/

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

PR 1013
* config/tc-i386.c (md_assemble): Don't call optimize_disp on
movabs.
(optimize_disp): Optimize only if possible. Don't use 64bit
displacement on non-constants and do same on constants if
possible.

gas/testsuite/

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

PR 1013
* i386/x86_64.s: Add absolute 64bit addressing tests for mov.
* i386/x86_64.s: Updated.

include/opcode/

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

PR 1013
* i386.h (i386_optab): Update comments for 64bit addressing on
mov. Allow 64bit addressing for mov and movq.

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

PR 1025
* elf-m10300.c (mn10300_elf_check_relocs): Handle indirect
symbol.
* elf32-arm.c (elf32_arm_check_relocs): Likewise.
* elf32-avr.c (elf32_avr_check_relocs): Likewise.
* elf32-cris.c (cris_elf_check_relocs): Likewise.
* elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
* elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
* elf32-fr30.c (fr30_elf_check_relocs): Likewise.
* elf32-frv.c (elf32_frv_check_relocs): Likewise.
* elf32-i370.c (i370_elf_check_relocs): Likewise.
* elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
* elf32-m32r.c (m32r_elf_check_relocs): Likewise.
* elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
* elf32-m68k.c (elf_m68k_check_relocs): Likewise.
* elf32-mcore.c (mcore_elf_check_relocs): Likewise.
* elf32-ms1.c (ms1_elf_check_relocs): Likewise.
* elf32-msp430.c (elf32_msp430_check_relocs): Likewise.
* elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
* elf32-ppc.c (ppc_elf_check_relocs): Likewise.
* elf32-s390.c (elf_s390_check_relocs): Likewise.
* elf32-sh.c (sh_elf_check_relocs): Likewise.
* elf32-v850.c (v850_elf_check_relocs): Likewise.
* elf32-vax.c (elf_vax_check_relocs): Likewise.
* elf64-mmix.c (mmix_elf_check_relocs): Likewise.
* elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
* elf64-s390.c (elf_s390_check_relocs): Likewise.
* elf64-sh64.c (sh_elf64_check_relocs): Likewise.
* elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.

19 years ago2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 20 Jun 2005 13:06:27 +0000 (13:06 +0000)]
2005-06-20  H.J. Lu  <hongjiu.lu@intel.com>

PR 1022
* elf32-hppa.c (elf32_hppa_check_relocs): Handle indirect
symbol.

19 years ago2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 20 Jun 2005 12:59:49 +0000 (12:59 +0000)]
2005-06-20  H.J. Lu  <hongjiu.lu@intel.com>

PR 1025:
* elf32-i386.c (elf_i386_check_relocs): Handle indirect symbol.
* elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.

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

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

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

* reloc.c: Add BFD_RELOC_X86_64_GOTOFF64 and
BFD_RELOC_X86_64_GOTPC32.
* bfd-in2.h: Regenerated.

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

19 years ago * elf.c (bfd_section_from_shdr): Kill bogus warning.
Jakub Jelinek [Fri, 17 Jun 2005 15:48:25 +0000 (15:48 +0000)]
* elf.c (bfd_section_from_shdr): Kill bogus warning.

19 years ago * elf.c (bfd_section_from_shdr): Fail if sh_entsize is bogus for
Jakub Jelinek [Fri, 17 Jun 2005 13:39:56 +0000 (13:39 +0000)]
* elf.c (bfd_section_from_shdr): Fail if sh_entsize is bogus for
symbol, relocation, group or versym sections.

* coffcode.h (coff_slurp_reloc_table): Don't crash if native_relocs
is NULL.
* peXXigen.c (pe_print_idata): Don't crash if dll_name or start_address
doesn't point into the section.

19 years ago * elf/external.h (GRP_ENTRY_SIZE): Define.
Jakub Jelinek [Fri, 17 Jun 2005 13:37:26 +0000 (13:37 +0000)]
* elf/external.h (GRP_ENTRY_SIZE): Define.

* readelf.c (CHECK_ENTSIZE_VALUES, CHECK_ENTSIZE): Define.
(process_section_headers): Use it.
(process_relocs): Don't crash if symsec is not SHT_SYMTAB
or SHT_DYNSYM.
(process_version_sections): Use sizeof (Elf_External_Versym)
instead of sh_entsize.

19 years agobfd/
Jan Beulich [Fri, 17 Jun 2005 08:03:59 +0000 (08:03 +0000)]
bfd/
2005-06-17  Jan Beulich  <jbeulich@novell.com>

* bfd-in2.h (elf_x86_64_reloc_type): Add BFD_RELOC_X86_64_GOTOFF64
and BFD_RELOC_X86_64_GOTPC32.
* libbfd.h (bfd_reloc_code_real_names): Likewise.
* elf64-x86-64.c (x86_64_elf_howto_table): Add entries for
R_X86_64_PC64, R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
(x86_64_reloc_map): Add entries for R_X86_64_PC64, R_X86_64_GOTOFF64,
and R_X86_64_GOTPC32.
(elf64_x86_64_info_to_howto): Adjust bounding relocation type.
(elf64_x86_64_check_relocs): Also handle R_X86_64_PC64,
R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
(elf64_x86_64_relocate_section): Likewise.
(elf64_x86_64_gc_sweep_hook): Also handle R_X86_64_PC64.

gas/
2005-06-17  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (reloc): Also handle BFD_RELOC_64_PCREL.
(tc_i386_fix_adjustable): Include BFD_RELOC_X86_64_GOTOFF64,
BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64.
(output_disp): Do GOTPC conversion also for BFD_RELOC_X86_64_32S
and BFD_RELOC_32_PCREL. Use BFD_RELOC_X86_64_GOTPC32 instead of
aborting.
(output_imm): Do GOTPC conversion also for BFD_RELOC_X86_64_32S.
Use BFD_RELOC_X86_64_GOTPC32 instead of aborting.
(tc_gen_reloc): Do GOTPC conversion also for BFD_RELOC_32_PCREL.
Use BFD_RELOC_X86_64_GOTPC32 instead of aborting. Also handle
BFD_RELOC_X86_64_GOTOFF64, BFD_RELOC_X86_64_GOTPC32,
BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64. Also
convert 8-byte pc-relative relocations.
(lex_got): Use BFD_RELOC_X86_64_GOTOFF64 for 64-bit @gotoff.
(i386_validate_fix): Likewise.
(x86_cons): Also handle quad values in 64-bit mode.
(i386_displacement): Also handle BFD_RELOC_X86_64_GOTOFF64.
(md_apply_fix): Include BFD_RELOC_X86_64_DTPOFF64 and
BFD_RELOC_X86_64_TPOFF64 in the TLS check. Also convert BFD_RELOC_64
to pc-relative variant. Also check for BFD_RELOC_64_PCREL.

gas/testsuite/
2005-06-17  Jan Beulich  <jbeulich@novell.com>

* gas/i386/x86-64-pcrel.s: Add insn requiring 64-bit pc-relative
relocation. Add insns for all widths of non-pc-relative relocations.
* gas/i386/x86-64-pcrel.d: Adjust.

include/elf/
2005-06-17  Jan Beulich  <jbeulich@novell.com>

* x86-64.h (elf_x86_64_reloc_type): Adjust comment for
R_X86_64_GOTPCREL. Add R_X86_64_PC64, R_X86_64_GOTOFF64, and
R_X86_64_GOTPC32.

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

19 years ago* mips16-opc.c (mips16_opcodes): Add the following MIPS16e
David Ung [Thu, 16 Jun 2005 17:01:12 +0000 (17:01 +0000)]
* mips16-opc.c (mips16_opcodes): Add the following MIPS16e
instructions to the table; seb/seh/sew/zeb/zeh/zew.

19 years agoAdd quotes to avoid a null test expression.
Nick Clifton [Thu, 16 Jun 2005 09:46:10 +0000 (09:46 +0000)]
Add quotes to avoid a null test expression.

19 years agorename.c (simple_copy): Only define if it is going to be used.
Nick Clifton [Thu, 16 Jun 2005 09:18:19 +0000 (09:18 +0000)]
rename.c (simple_copy): Only define if it is going to be used.
  (smart_rename): Mark the preserve_dates parameter as possibly being unused.

resres.c (write_res_data): Prevent a potential compile time warning by casting
  the return value from fwrite.

19 years ago* archive.c: Include "libiberty.h".
Mark Kettenis [Thu, 16 Jun 2005 08:05:39 +0000 (08:05 +0000)]
* archive.c: Include "libiberty.h".

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

19 years ago2005-06-15 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 15 Jun 2005 16:23:54 +0000 (16:23 +0000)]
2005-06-15  Dave Brolley  <brolley@redhat.com>

        Contribute Morpho ms1 on behalf of Red Hat
        * ms1-asm.c, ms1-desc.c, ms1-dis.c, ms1-ibld.c, ms1-opc.c,
        ms1-opc.h: New files, Morpho ms1 target.

        2004-05-14  Stan Cox  <scox@redhat.com>

        * disassemble.c (ARCH_ms1): Define.
        (disassembler): Handle bfd_arch_ms1

        2004-05-13  Michael Snyder  <msnyder@redhat.com>

        * Makefile.am, Makefile.in: Add ms1 target.
        * configure.in: Ditto.

19 years ago2005-06-15 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 15 Jun 2005 15:33:07 +0000 (15:33 +0000)]
2005-06-15  Dave Brolley  <brolley@redhat.com>

        Contributed by Red Hat.
        * ms1.cpu: New file.  Written by Nick Clifton, Stan Cox.
        * ms1.opc: New file.  Written by Stan Cox.

19 years ago* elf32-v850.c (ELF_MACHINE_ALT2): Define so that binaries produced by the
Nick Clifton [Wed, 15 Jun 2005 08:22:45 +0000 (08:22 +0000)]
* elf32-v850.c (ELF_MACHINE_ALT2): Define so that binaries produced by the
  GreenHills toolchain can be assimilated.

19 years ago * som.c (som_find_inliner_info): New.
Dave Anglin [Wed, 15 Jun 2005 00:16:10 +0000 (00:16 +0000)]
* som.c (som_find_inliner_info): New.

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.