OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
17 years ago2006-08-18 Paul Brook <paul@codesourcery.com>
Paul Brook [Fri, 18 Aug 2006 15:00:18 +0000 (15:00 +0000)]
2006-08-18  Paul Brook  <paul@codesourcery.com>

bfd/
* elf32-arm.c (elf32_arm_link_hash_entry): Add export_glue.
(elf32_arm_link_hash_newfunc): Initialize export_glue.
(record_arm_to_thumb_glue): Return stub symbol.
(elf32_arm_create_thumb_stub): New function.
(elf32_arm_to_thumb_stub): Use it.
(elf32_arm_to_thumb_export_stub): New function.
(elf32_arm_begin_write_processing): New function.
(allocate_dynrelocs): Allocate Arm stubs.
(elf_backend_begin_write_processing): Define.
(elf32_arm_symbian_begin_write_processing): Remove ATTRIBUTE_UNUSED.
Call elf32_arm_begin_write_processing.

ld/
* emultempl/armelf.em (arm_elf_before_allocation): Call
gld${EMULATION_NAME}_before_allocation after setting interworking bfd.

ld/testsuite/
* ld-arm/arm-elf.exp (armelftests): Add armthumb-lib.so.  Add
-use-blx to mixed-lib.so
* ld-arm/armthumb-lib.d: New file.
* ld-arm/armthumb-lib.sym: New file.

17 years ago2006-08-18 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 18 Aug 2006 14:38:00 +0000 (14:38 +0000)]
2006-08-18  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/3052
* ld-elf/loadaddr.s: New file.
* ld-elf/loadaddr1.d: Likewise.
* ld-elf/loadaddr1.t: Likewise.
* ld-elf/loadaddr2.d: Likewise.
* ld-elf/loadaddr2.t: Likewise.

17 years agodaily update
Alan Modra [Fri, 18 Aug 2006 00:00:05 +0000 (00:00 +0000)]
daily update

17 years ago* pe-dll.c (autofilter_symbolprefixlist): Remove .idata$.
Christopher Faylor [Thu, 17 Aug 2006 17:02:13 +0000 (17:02 +0000)]
* pe-dll.c (autofilter_symbolprefixlist): Remove .idata$.
(generate_reloc): Revert to skipping sections without a SEC_LOAD flag, and to
not skipping .idata* sections.

17 years agobfd/
Alan Modra [Thu, 17 Aug 2006 08:21:06 +0000 (08:21 +0000)]
bfd/
* elf64-ppc.c (create_linkage_sections): Align .glink to 8 bytes.
(ppc64_elf_build_stubs): Use new lazy linking stub.
ld/testsuite/
* ld-powerpc/tlsexe.d: Update for lazy link stub change.
* ld-powerpc/tlsexe.r: Likewise.
* ld-powerpc/tlsexetoc.d: Likewise.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlsso.d: Likewise.
* ld-powerpc/tlstocso.d: Likewise.

17 years ago * elf64-ppc.c (ppc64_elf_size_stubs): Ignore non-code sections.
Alan Modra [Thu, 17 Aug 2006 08:09:52 +0000 (08:09 +0000)]
* elf64-ppc.c (ppc64_elf_size_stubs): Ignore non-code sections.

17 years agobfd/
H.J. Lu [Thu, 17 Aug 2006 02:04:53 +0000 (02:04 +0000)]
bfd/

2006-08-16  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/3015
* elf.c (get_program_header_size): Add a PT_GNU_RELRO segment
only if there is a PT_DYNAMIC segment.
(_bfd_elf_map_sections_to_segments): Likewise.
(assign_file_positions_for_load_sections): Set PT_GNU_RELRO
segment alignment to 1.

ld/testsuite/

2006-08-16  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/3015
* ld-elf/binutils.exp: Add tests for "-z relro".

17 years agodaily update
Alan Modra [Thu, 17 Aug 2006 00:00:07 +0000 (00:00 +0000)]
daily update

17 years ago * config/tc-arm.c (md_assemble): Improve diagnostic when attempting
Julian Brown [Wed, 16 Aug 2006 10:33:50 +0000 (10:33 +0000)]
* config/tc-arm.c (md_assemble): Improve diagnostic when attempting
to use ARM instructions on non-ARM-supporting cores.
(autoselect_thumb_from_cpu_variant): New function. Switch on Thumb
mode automatically based on cpu variant.
(md_begin): Call above function.

17 years ago * gas/arm/noarm.s: Add test for disabled ARM insns.
Julian Brown [Wed, 16 Aug 2006 10:32:40 +0000 (10:32 +0000)]
* gas/arm/noarm.s: Add test for disabled ARM insns.
* gas/arm/noarm.d: Drive test for above.
* gas/arm/noarm.l: Expected error output.

17 years ago * config/tc-arm.c (opcode_lookup): Allow Neon type suffixes to be
Julian Brown [Wed, 16 Aug 2006 10:16:29 +0000 (10:16 +0000)]
* config/tc-arm.c (opcode_lookup): Allow Neon type suffixes to be
recognized in non-unified syntax mode.

17 years agold/
Alan Modra [Wed, 16 Aug 2006 08:31:45 +0000 (08:31 +0000)]
ld/
PR 3052
* ldlang.h (lang_output_section_statement_type): Replace
"processed" field with "processed_vma" and "processed_lma".
* ldlang.c (lang_do_assignments_1): Move lma setting code..
(lang_size_sections_1): ..to here.
(lang_reset_memory_regions): Adjust for
lang_output_section_statement_type change.
* ldexp.c (fold_name): Likewise.

And this is something I forgot the check in from the previous patch.
ld/testsuite/
* ld-scripts/overlay-size-map.d: Adjust.

17 years agodaily update
Alan Modra [Wed, 16 Aug 2006 00:00:05 +0000 (00:00 +0000)]
daily update

17 years ago * elf32-mips.c, elf64-mips.c, elfn32-mips.c
Thiemo Seufer [Tue, 15 Aug 2006 18:28:48 +0000 (18:28 +0000)]
* elf32-mips.c, elf64-mips.c, elfn32-mips.c
(elf_backend_merge_symbol_attribute): Define.
* elflink.c (elf_link_add_object_symbols): Merge only the ELF
visibility flags.
* elfxx-mips.c (_bfd_mips_elf_merge_symbol_attribute): New function.

17 years ago [ ChangeLog ]
Thiemo Seufer [Tue, 15 Aug 2006 18:23:11 +0000 (18:23 +0000)]
[ ChangeLog ]
* config.sub: Add support for sde as alias of mipsisa32-sde-elf.

[ bfd/ChangeLog ]
* config.bfd: Add configurations for mips*el-sde-elf* and
mips*-sde-elf*.

[ binutils/testsuite/ChangeLog ]
* binutils-all/readelf.exp (readelf_test): Handle mips*-sde-elf*.

[ gas/ChangeLog ]
* configure.tgt: Handle mips*-sde-elf*.

[ gas/testsuite/ChangeLog ]
* gas/mips/mips.exp: Handle mips*-sde-elf*.

17 years agoPR binutils/3039
Nick Clifton [Tue, 15 Aug 2006 12:01:43 +0000 (12:01 +0000)]
PR binutils/3039
* wrstabs.c (stab_tag_type): Initialize 'size'.

17 years agodaily update
Alan Modra [Tue, 15 Aug 2006 00:00:07 +0000 (00:00 +0000)]
daily update

17 years agoFix bug 3000
Michael Meissner [Mon, 14 Aug 2006 23:45:59 +0000 (23:45 +0000)]
Fix bug 3000

17 years ago* elf-m10300.c (elf32_mn10300_link_hash_entry): Add value.
DJ Delorie [Mon, 14 Aug 2006 20:05:00 +0000 (20:05 +0000)]
* elf-m10300.c (elf32_mn10300_link_hash_entry): Add value.
(elf32_mn10300_count_hash_table_entries): New.
(elf32_mn10300_list_hash_table_entries): New.
(sort_by_value): New.
(mn10300_elf_relax_section): Don't skip data sections; restrict
code-specific tests to code-specific areas so that potential
indirect calls can be detected.  Check for multiple local symbols
at the same address and merge their flags.
(elf32_mn10300_link_hash_newfunc): Initialize value.

17 years ago * elfxx-mips.c (_bfd_mips_elf_symbol_processing,
Thiemo Seufer [Mon, 14 Aug 2006 12:19:20 +0000 (12:19 +0000)]
* elfxx-mips.c (_bfd_mips_elf_symbol_processing,
_bfd_mips_elf_add_symbol_hook): Don't try to place small common TLS
symbols in .scommon.

17 years agodaily update
Alan Modra [Mon, 14 Aug 2006 00:00:05 +0000 (00:00 +0000)]
daily update

17 years agodaily update
Alan Modra [Sun, 13 Aug 2006 00:22:16 +0000 (00:22 +0000)]
daily update

17 years ago [ gas/ChangeLog ]
Thiemo Seufer [Sat, 12 Aug 2006 23:00:35 +0000 (23:00 +0000)]
[ gas/ChangeLog ]
* config/tc-mips.c (mips16_ip): Fix argument register handling
for restore instruction.

[ gas/testsuite/ChangeLog ]
* gas/mips/mips16-save.d: Fix testcase.

17 years agodaily update
Alan Modra [Sat, 12 Aug 2006 00:00:30 +0000 (00:00 +0000)]
daily update

17 years ago * ld-elfcomm/elfcomm.exp (dump_common1): Extend regexp to match also
Thiemo Seufer [Fri, 11 Aug 2006 14:05:12 +0000 (14:05 +0000)]
* ld-elfcomm/elfcomm.exp (dump_common1): Extend regexp to match also
MIPS small commons.

17 years ago * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Set
Thiemo Seufer [Fri, 11 Aug 2006 13:55:38 +0000 (13:55 +0000)]
* elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Set
sh_entsize only when sgot was already initialized.

17 years agodaily update
Alan Modra [Fri, 11 Aug 2006 00:00:34 +0000 (00:00 +0000)]
daily update

17 years ago PR binutils/3017
Joern Rennecke [Thu, 10 Aug 2006 13:23:15 +0000 (13:23 +0000)]
PR binutils/3017
* doc/Makefile.am: Use single quotes inside backquotes for
date command while generating config.texi.
* doc/Makefile.in: Regenerate.

17 years agodaily update
Alan Modra [Thu, 10 Aug 2006 01:14:24 +0000 (01:14 +0000)]
daily update

17 years ago2006-08-08 Peter S. Mazinger <ps.m@gmx.net>
Mike Frysinger [Wed, 9 Aug 2006 00:52:31 +0000 (00:52 +0000)]
2006-08-08  Peter S. Mazinger  <ps.m@gmx.net>

* emulparams/armelf.sh (MAXPAGESIZE): Changed to
"CONSTANT (MAXPAGESIZE)".

17 years agodaily update
Alan Modra [Wed, 9 Aug 2006 00:27:48 +0000 (00:27 +0000)]
daily update

17 years agogas/ChangeLog:
Bob Wilson [Tue, 8 Aug 2006 19:09:34 +0000 (19:09 +0000)]
gas/ChangeLog:
* dwarf2dbg.c (DWARF2_USE_FIXED_ADVANCE_PC): New.
(out_sleb128): New.
(out_fixed_inc_line_addr): New.
(process_entries): Use out_fixed_inc_line_addr when
DWARF2_USE_FIXED_ADVANCE_PC is set.
* config/tc-xtensa.h (DWARF2_USE_FIXED_ADVANCE_PC): Define.
gas/testsuite/ChangeLog:
* gas/lns/lns-common-1-alt.d: New file.
* gas/lns/lns.exp: Use lns-common-1-alt.d for xtensa targets.

17 years ago* elf32-sh.c (sh_elf_relax_section): Allow for branches across
DJ Delorie [Tue, 8 Aug 2006 17:21:55 +0000 (17:21 +0000)]
* elf32-sh.c (sh_elf_relax_section): Allow for branches across
non-moving .align directives.  Preserve any DIR32 offset when
converting bsr's to jsr's.

17 years ago* config/tc-sh.c (sh_frob_section): Canonicalize pointers to local
DJ Delorie [Tue, 8 Aug 2006 17:21:04 +0000 (17:21 +0000)]
* config/tc-sh.c (sh_frob_section): Canonicalize pointers to local
vs full symbols so that we never have more than one pointer value
for any given symbol in our symbol table.

17 years ago2006-08-08 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 8 Aug 2006 16:08:47 +0000 (16:08 +0000)]
2006-08-08  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/3006
* ldlang.c (lang_section_bst_type): Moved to ...
* ldlang.h: Here.

* ldlang.h (lang_wild_statement_struct): Add a tree field.

* ldlang.c (wild_sort_fast): Use the tree field for BST.
(wild): Likeise.
(analyze_walk_wild_section_handler): Initialize the tree field.

17 years agold/
H.J. Lu [Tue, 8 Aug 2006 15:07:16 +0000 (15:07 +0000)]
ld/

2006-08-08  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/3009
* ldlang.c (update_wild_statements): Update the whole wild
section list.

ld/testsuite/

2006-08-08  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/3009
* ld-scripts/sort.t: New file.
* ld-scripts/sort_b_a-1.d: Likewise.
* ld-scripts/sort_b_a-1.s: Likewise.
* ld-scripts/sort_b_n-1.d: Likewise.
* ld-scripts/sort_b_n-1.s: Likewise.

17 years ago * elf64-ppc.c (ppc64_elf_build_stubs): Clear relbrlt reloc_count
Alan Modra [Tue, 8 Aug 2006 14:21:46 +0000 (14:21 +0000)]
* elf64-ppc.c (ppc64_elf_build_stubs): Clear relbrlt reloc_count
after stubs have been built.

17 years agoPR binutils/2768
Nick Clifton [Tue, 8 Aug 2006 09:43:10 +0000 (09:43 +0000)]
PR binutils/2768
* dwarf.c (display_debug_aranges): When the address size is greater than 4
  display addresses and lengths as 16 hex digits, otherwise use 8 hex digits.

17 years ago* dwarf2dbg.c (out_debug_info): Add new parameter ranges_seg and emit
Nick Clifton [Tue, 8 Aug 2006 08:29:08 +0000 (08:29 +0000)]
* dwarf2dbg.c (out_debug_info): Add new parameter ranges_seg and emit
  DW_AT_ranges when code in compilation unit is not contiguous.
  (out_debug_abbrev): Emit DW_AT_ranges abbreviation if code in is not contiguous.
  (dwarf2_finish): Create and pass ranges_seg to out_debug_info.
  (out_debug_ranges): New function to emit .debug_ranges section when code is not contiguous.

17 years ago* config/tc-arm.c (WARN_DEPRECATED): Enable.
Nick Clifton [Tue, 8 Aug 2006 08:23:25 +0000 (08:23 +0000)]
* config/tc-arm.c (WARN_DEPRECATED): Enable.

17 years agodaily update
Alan Modra [Tue, 8 Aug 2006 00:00:08 +0000 (00:00 +0000)]
daily update

17 years ago* elf32-sh.c (vxworks_object_p): Only check for vxworks target vectors if
Nick Clifton [Mon, 7 Aug 2006 14:03:35 +0000 (14:03 +0000)]
* elf32-sh.c (vxworks_object_p): Only check for vxworks target vectors if
  they are going to be created.

17 years agoFix typo in bfd_elf32_shnbsd_vec target list.
Nick Clifton [Mon, 7 Aug 2006 11:04:37 +0000 (11:04 +0000)]
Fix typo in bfd_elf32_shnbsd_vec target list.

17 years ago* coff-arm.c (coff_arm_rtype_to_howto): Only check for ARM_SECREL relocation types...
Nick Clifton [Mon, 7 Aug 2006 10:26:08 +0000 (10:26 +0000)]
* coff-arm.c (coff_arm_rtype_to_howto): Only check for ARM_SECREL relocation types if the target is ARM_WINCE

17 years agodaily update
Alan Modra [Mon, 7 Aug 2006 00:00:06 +0000 (00:00 +0000)]
daily update

17 years ago PR binutils/3001
Nick Clifton [Sun, 6 Aug 2006 15:49:46 +0000 (15:49 +0000)]
 PR binutils/3001
* addr2line.c (process_file): Change function from void to returning an int.  Return 0 upon success, 1 otherwise.
 (main): Use return value from process_file as the exit value.
* ar.c (ranlib_only):  Change function from void to returning an int.  Return 0 upon success, 1 otherwise.
  (ranlib_touch): Likewise.
  (main): Use return value from ranlib functions as exit value.
* objcopy.c (add_specific_symbol): Set status to 1 if get_file_size fails.
  (copy_file): Likewise.
  (strip_main): Likewise.
  (copy_main): Likewise.
* objdump.c (display_file): Set exit_status to 1 if get_file_size fails.
* size.c (display_file): Set return_code to 1 if get_file_size fails.

17 years ago* gas/arm/thumb2_add.s: Don't use elf specific ".type" pseudo-op.
Nick Clifton [Sun, 6 Aug 2006 15:15:36 +0000 (15:15 +0000)]
* gas/arm/thumb2_add.s: Don't use elf specific ".type" pseudo-op.

17 years ago* gas/arm/wince.s: New test.
Nick Clifton [Sun, 6 Aug 2006 15:11:08 +0000 (15:11 +0000)]
* gas/arm/wince.s: New test.
* gas/arm/wince.d: New test.

17 years ago* bfd.c (bfd_get_sign_extend_vma): Add cases for pe-arm-little and pei-arm-little.
Nick Clifton [Sun, 6 Aug 2006 15:04:23 +0000 (15:04 +0000)]
* bfd.c (bfd_get_sign_extend_vma): Add cases for pe-arm-little and pei-arm-little.
* coff-arm.c (coff_arm_rtype_to_howto) [COFF_WITH_PE]: Handle ARM_SECREL.
  (coff_arm_reloc_type_lookup): Map BFD_RELOC_32_SECREL to  ARM_SECREL.
* pe-arm.c [COFF_SECTION_ALIGNMENT_ENTRIES]: Define.
* pei-arm.c [TARGET_UNDERSCORE]: Define for ARM_WINCE like in pe-arm.c.
  [COFF_SECTION_ALIGNMENT_ENTRIES]: Define.

* config/tc-arm.c: Move "dwarf2dbg.h" inclusion out of OBJ_ELF only block.
  (pe_directive_secrel) [TE_PE]: New function.
  (md_pseudo_table) [!OBJ_ELF]: Handle 2byte, 4byte, 8byte, file, loc, loc_mark_labels.
  [TE_PE]: Handle secrel32.
  (output_relax_insn): Remove OBJ_ELF around dwarf2_emit_insn call.
  (output_inst): Remove OBJ_ELF around dwarf2_emit_insn call.
  (arm_frob_label): Remove OBJ_ELF around dwarf2_emit_label call.
  (md_section_align): Only round section sizes here for AOUT targets.
  (tc_arm_regname_to_dw2regnum): Move out for OBJ_ELF only block.
  (tc_pe_dwarf2_emit_offset): New function.
  (md_apply_fix) [TE_PE]: Handle BFD_RELOC_32_SECREL.
  (cons_fix_new_arm): Handle O_secrel.
* config/tc-arm.h : Move DWARF2_LINE_MIN_INSN_LENGTH, DWARF2_DEFAULT_RETURN_COLUMN and DWARF2_CIE_DATA_ALIGNMENT out of OBJ_ELF only block.
  [TE_PE]: Define O_secrel, TC_DWARF2_EMIT_OFFSET, and declare tc_pe_dwarf2_emit_offset.

* ld-pe/pe.exp: Enable tests on arm-wince-pe.
* ld-pe/secrel.d: Adjust test to work on arm-wince-pe too.

17 years agofix my name
Mike Frysinger [Sun, 6 Aug 2006 05:24:32 +0000 (05:24 +0000)]
fix my name

17 years ago2006-08-04 Nick Clifton <nickc@redhat.com>
Mike Frysinger [Sun, 6 Aug 2006 05:23:16 +0000 (05:23 +0000)]
2006-08-04  Nick Clifton  <nickc@redhat.com>
    Mike Frysinger  <michael.frysing@analog.com>
* scripttempl/elf.sc (USER_LABEL_PREFIX): Define.
(__preinit_array_start, __preinit_array_end, __init_array_start,
__init_array_end, __fini_array_start, __fini_array_end, edata, end):
Use ${USER_LABEL_PREFIX}.
* emulparams/bfin.sh (DATA_END_SYMBOLS,END_SYMBOLS): Unset.
(USER_LABEL_PREFIX): Set.

17 years agodaily update
Alan Modra [Sun, 6 Aug 2006 00:00:06 +0000 (00:00 +0000)]
daily update

17 years agodaily update
Alan Modra [Sat, 5 Aug 2006 00:00:07 +0000 (00:00 +0000)]
daily update

17 years agoInclude <cassert>
Ian Lance Taylor [Fri, 4 Aug 2006 23:20:34 +0000 (23:20 +0000)]
Include <cassert>

17 years agoInitial CVS checkin of gold
Ian Lance Taylor [Fri, 4 Aug 2006 23:10:59 +0000 (23:10 +0000)]
Initial CVS checkin of gold

17 years ago* ldmain.c (main): Initialise print_gc_sections field of link_info structure.
Nick Clifton [Fri, 4 Aug 2006 14:53:26 +0000 (14:53 +0000)]
* ldmain.c (main): Initialise print_gc_sections field of link_info structure.
* lexsup.c: Add --print-gc-sections and --no-print-gc-sections switches.
* ld.texinfo: Document new switches.
* NEWS: Mention new switches.
* bfdlink.h (struct bfd_link_info): New field: print_gc_sections.
* elflink.c (elf_gc_sweep): If info.print_gc_sections is true, list removed sections to stderr.

17 years agobfd/
Richard Sandiford [Fri, 4 Aug 2006 13:13:56 +0000 (13:13 +0000)]
bfd/
2006-08-02  Richard Sandiford  <richard@codesourcery.com>
    Kazu Hirata  <kazu@codesourcery.com>
    Phil Edwards  <phil@codesourcery.com>
    Nathan Sidwell  <nathan@codesourcery.com>

* config.bfd (sh-*-vxworks): Use bfd_elf32_shvxworks_vec and
bfd_elf32_shlvxworks_vec.
* configure.in (bfd_elf32_sh64_vec): Add elf-vxworks.lo.
(bfd_elf32_sh64l_vec, bfd_elf32_sh64lin_vec): Likewise.
(bfd_elf32_sh64blin_vec, bfd_elf32_sh64lnbsd_vec): Likewise.
(bfd_elf32_sh64nbsd_vec, bfd_elf32_sh_vec): Likewise.
(bfd_elf32_shblin_vec, bfd_elf32_shl_vec): Likewise.
(bfd_elf32_shl_symbian_vec, bfd_elf32_shlin_vec): Likewise.
(bfd_elf32_shlnbsd_vec, bfd_elf32_shnbsd_vec): Likewise.
(bfd_elf32_shlvxworks_vec, bfd_elf32_shvxworks_vec): New stanzas.
* configure: Regenerate.
* Makefile.am: Regenerate dependencies.
* Makefile.in: Regenerate.
* elf-vxworks.c (elf_vxworks_gott_symbol_p): New function.
(elf_vxworks_add_symbol_hook): Use it.
(elf_vxworks_link_output_symbol_hook): Likewise.  Use the hash
table entry to check for weak undefined symbols and to obtain
the original bfd.
(elf_vxworks_emit_relocs): Use target_index instead of this_idx.
* elf32-sh-relocs.h: New file, split from elf32-sh.c.
(R_SH_DIR32): Use SH_PARTIAL32 for the partial_inplace field,
SH_SRC_MASK32 for the src_mask field, and SH_ELF_RELOC for the
special_function field.
(R_SH_REL32): Use SH_PARTIAL32 and SH_SRC_MASK32 here too.
(R_SH_REL32, R_SH_TLS_GD_32, R_SH_TLS_LD_32): Likewise.
(R_SH_TLS_LDO_32, R_SH_TLS_IE_32, R_SH_TLS_LE_32): Likewise.
(R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32, R_SH_TLS_TPOFF32): Likewise.
(R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT): Likewise.
(R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): Likewise.
(SH_PARTIAL32, SH_SRC_MASK32, SH_ELF_RELOC): Undefine at end of file.
* elf32-sh.c: Include elf32-vxworks.h.
(MINUS_ONE): Define.
(sh_elf_howto_table): Include elf32-sh-relocs.h with SH_PARTIAL32
set to TRUE, SH_SRC_MASK32 set to 0xffffffff, and SH_ELF_RELOC set
to sh_elf_reloc.
(sh_vxworks_howto_table): New variable.  Include elf32-sh-relocs.h
with SH_PARTIAL32 set to FALSE, SH_SRC_MASK32 set to 0, and
SH_ELF_RELOC set to bfd_elf_generic_reloc.
(vxworks_object_p, get_howto_table): New functions.
(sh_elf_reloc_type_lookup): Fix typo.  Use get_howto_table.
(sh_elf_info_to_howto): Use get_howto_table.
(sh_elf_relax_section): Honor the partial_inplace field of the
R_SH_DIR32 howto.
(sh_elf_relax_delete_bytes): Likewise.
(elf_sh_plt_info): New structure.
(PLT_ENTRY_SIZE): Replace both definitions with...
(ELF_PLT_ENTRY_SIZE): ...this new macro, with separate definitions for
INCLUDE_SHMEDIA and !INCLUDE_SHMEDIA.
(elf_sh_plt0_entry_be): Update sizes of both definitions accordingly.
(elf_sh_plt0_entry_le): Likewise.
(elf_sh_plt_entry_be, elf_sh_plt_entry_le): Likewise.
(elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le): Likewise.
(elf_sh_plts): New structure, with separate definitions for
INCLUDE_SHMEDIA and !INCLUDE_SHMEDIA.
(elf_sh_plt0_entry): Delete both definitions.
(elf_sh_plt_entry, elf_sh_pic_plt_entry): Likewise.
(elf_sh_sizeof_plt, elf_sh_plt_plt0_offset): Likewise.
(elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset): Likewise.
(elf_sh_plt_reloc_offset): Likewise.
(movi_shori_putval): Delete in favor of...
(install_plt_field): ...this new function, with separate definitions
for INCLUDE_SHMEDIA and !INCLUDE_SHMEDIA.
(get_plt_info): New function, with separate definitions
for INCLUDE_SHMEDIA and !INCLUDE_SHMEDIA.
(elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset): Delete.
(VXWORKS_PLT_HEADER_SIZE, VXWORKS_PLT_ENTRY_SIZE): New macros.
(vxworks_sh_plt0_entry_be, vxworks_sh_plt0_entry_le): New constants.
(vxworks_sh_plt_entry_be, vxworks_sh_plt_entry_le): Likewise.
(vxworks_sh_pic_plt_entry_be, vxworks_sh_pic_plt_entry_le): Likewise.
(get_plt_index, get_plt_offset): New functions.
(elf_sh_link_hash_table): Add srelplt2, plt_info and vxworks_p fields.
(sh_elf_link_hash_table_create): Initialize them.
(sh_elf_create_dynamic_sections): Call
elf_vxworks_create_dynamic_sections for VxWorks.
(allocate_dynrelocs): Use htab->plt_info to get the size of PLT
entries.  Allocate relocation entries in .rela.plt.unloaded if
generating a VxWorks executable.
(sh_elf_always_size_sections): New function.
(sh_elf_size_dynamic_sections): Extend .rela.plt handling to
.rela.plt.unloaded.
(sh_elf_relocate_section): Use get_howto_table.  Honor
partial_inplace when calculating the addend for dynamic
relocations.  Use get_plt_index.
(sh_elf_finish_dynamic_symbol): Use get_plt_index, install_plt_field
and htab->plt_info.  Fill in the bra .plt offset for VxWorks
executables.  Populate .rela.plt.unloaded.  Do not make
_GLOBAL_OFFSET_TABLE_ absolute on VxWorks.
(sh_elf_finish_dynamic_sections): Use install_plt_field and
htab->plt_info.  Handle cases where there is no special PLT header.
Populate the first relocation in .rela.plt.unloaded and fix up
the remaining entries.
(sh_elf_plt_sym_val): Use get_plt_info.
(elf_backend_always_size_sections): Define.
(TARGET_BIG_SYM, TARGET_BIG_NAME): Override for VxWorks.
(TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise.
(elf32_bed, elf_backend_want_plt_sym): Likewise.
(elf_symbol_leading_char, elf_backend_want_got_underscore): Likewise.
(elf_backend_grok_prstatus, elf_backend_grok_psinfo): Likewise.
(elf_backend_add_symbol_hook): Likewise.
(elf_backend_link_output_symbol_hook): Likewise.
(elf_backend_emit_relocs): Likewise.
(elf_backend_final_write_processing): Likewise.
(ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Likewise.
* targets.c (bfd_elf32_shlvxworks_vec): Declare.
(bfd_elf32_shvxworks_vec): Likewise.
(_bfd_target_vector): Include bfd_elf32_shlvxworks_vec and
bfd_elf32_shvxworks_vec.

gas/
* config/tc-sh.c (apply_full_field_fix): New function.
(md_apply_fix): Use it instead of md_number_to_chars.  Do not fill
in fx_addnumber for BFD_RELOC_32_PLT_PCREL.
(tc_gen_reloc): Use fx_addnumber rather than 0 as the default case.
* config/tc-sh.h (TARGET_FORMAT): Override for TE_VXWORKS.

ld/
2006-08-02  Richard Sandiford  <richard@codesourcery.com>
    Kazu Hirata  <kazu@codesourcery.com>
    Phil Edwards  <phil@codesourcery.com>

* Makefile.am (ALL_EMULATIONS): Add eshelf_vxworks.o and
eshlelf_vxworks.o.
(eshelf_vxworks.c, eshlelf_vxworks.c): New rules.
* Makefile.in: Regenerate.
* configure.tgt (sh-*-vxworks): Use shelf_vxworks and
shlelf_vxworks.
* emulparams/shelf_vxworks.sh: New file.
* emulparams/shlelf_vxworks.sh: Likewise.
* emulparams/vxworks.sh (FINI): Prefix _etext with ${SYMPREFIX}.
(OTHER_END_SYMBOLS): Likewise _ehdr.
(DATA_END_SYMBOLS): Likewise _edata.
* emultempl/vxworks.em (vxworks_after_open): Check whether output_bfd
is indeed an ELF file before dealing with --force-dynamic.

ld/testsuite/
* ld-sh/rd-sh.exp: Treat vxworks1-static.d specially.
* ld-sh/sh-vxworks.exp: New file.
* ld-sh/sh.exp: Extend sh-linux SIZEOF_HEADERS handling to
sh-*-vxworks.
* ld-sh/vxworks1-le.dd, ld-sh/vxworks1-lib-le.dd,
* ld-sh/vxworks1-lib.dd, ld-sh/vxworks1-lib.nd,
* ld-sh/vxworks1-lib.rd, ld-sh/vxworks1-lib.s,
* ld-sh/vxworks1-static.d, ld-sh/vxworks1.dd,
* ld-sh/vxworks1.ld, ld-sh/vxworks1.rd, ld-sh/vxworks1.s,
* ld-sh/vxworks2-static.sd, ld-sh/vxworks2.s,
* ld-sh/vxworks2.sd, ld-sh/vxworks3-le.dd,
* ld-sh/vxworks3-lib-le.dd, ld-sh/vxworks3-lib.dd,
* ld-sh/vxworks3-lib.s, ld-sh/vxworks3.dd, ld-sh/vxworks3.s,
* ld-sh/vxworks4.d, ld-sh/vxworks4a.s, ld-sh/vxworks4b.s,
* ld-sh/reloc1.s, ld-sh/reloc1.d: New tests.

17 years agodaily update
Alan Modra [Fri, 4 Aug 2006 00:00:08 +0000 (00:00 +0000)]
daily update

17 years agoPR gas/2991
Nick Clifton [Thu, 3 Aug 2006 17:01:10 +0000 (17:01 +0000)]
PR gas/2991
* config.in: Regenerate.

17 years agogas:
Joseph Myers [Thu, 3 Aug 2006 15:59:00 +0000 (15:59 +0000)]
gas:
* config/tc-arm.c (parse_operands): Handle invalid register name
for OP_RIWR_RIWC.

gas/testsuite:
* gas/arm/iwmmxt-bad.s: Test invalid register names for wldrw and
wstrw.
* gas/arm/iwmmxt-bad.l: Update.

17 years agogas:
Joseph Myers [Thu, 3 Aug 2006 15:57:04 +0000 (15:57 +0000)]
gas:
* config/tc-arm.c (enum operand_parse_code): Add OP_RIWC_RIWG.
(parse_operands): Handle it.
(insns): Use it for tmcr and tmrc.

gas/testsuite:
* gas/arm/iwmmxt.s: Test tmcr and tmrc with wcgr registers.
* gas/arm/iwmmxt.d: Update.

17 years agodaily update
Alan Modra [Thu, 3 Aug 2006 00:00:06 +0000 (00:00 +0000)]
daily update

17 years ago* configure.in (arm-*-openbsd*): Set COREFILE to netbsd-core.lo.
Mark Kettenis [Wed, 2 Aug 2006 21:41:12 +0000 (21:41 +0000)]
* configure.in (arm-*-openbsd*): Set COREFILE to netbsd-core.lo.
* configure: Regenerate.

17 years agoPR binutils/2983
Nick Clifton [Wed, 2 Aug 2006 16:25:14 +0000 (16:25 +0000)]
PR binutils/2983
* bfd/elf64-x86-64.c: Add FreeBSD support.
  (elf64_x86_64_fbsd_post_process_headers): New function.
* bfd/targets.c (_bfd_target_vector): Add bfd_elf64_x86_64_freebsd_vec.
* bfd/config.bfd (x64_64-*-freebsd*): Add bfd_elf64_x86_64_freebsd_vec to the targ_selvecs.
* bfd/configure.in: Add entry for bfd_elf64_x86_64_freebsd_vec.
* bfd/configure: Regenerate.
* gas/config/tc-i386.c (md_parse_option): Treat any target starting with elf64_x86_64 as a viable target for the -64 switch.
  (i386_target_format): For 64-bit ELF flavoured output use ELF_TARGET_FORMAT64.
* gas/config/tc-i386.h (ELF_TARGET_FORMAT64): Define.
* ld/emulparams/elf_x86_64_fbsd.sh (OUTPUT_FORMAT): Define as elf64-x86-64-freebsd.

17 years agoPR gas/2991
Nick Clifton [Wed, 2 Aug 2006 14:26:07 +0000 (14:26 +0000)]
PR gas/2991
* acinclude.m4 (BFD_BINARY_FOPEN): Import this function from bfd/aclocal.m4.
* configure.in: Run BFD_BINARY_FOPEN.
* configure: Regenerate.
* as.h: Look at USE_BINARY_FOPEN to decide which fopen-*.h header file to include.

17 years ago * readelf.c (dump_relocations): Handle MIPS-specific
Thiemo Seufer [Wed, 2 Aug 2006 09:45:12 +0000 (09:45 +0000)]
* readelf.c (dump_relocations): Handle MIPS-specific
SHN_MIPS_SCOMMON and SHN_MIPS_SUNDEFINED.
(get_symbol_index_type): Similarly.

17 years agodaily update
Alan Modra [Wed, 2 Aug 2006 00:00:06 +0000 (00:00 +0000)]
daily update

17 years agogas/
H.J. Lu [Tue, 1 Aug 2006 17:54:28 +0000 (17:54 +0000)]
gas/

2006-08-01  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (md_assemble): Don't update
cpu_arch_isa_flags.

gas/testsuite/

2006-08-01  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/nops-2-i386.d: Updated.
* gas/i386/nops-2-merom.d: Likewise.
* gas/i386/nops-2.d: Likewise.

17 years agold/
H.J. Lu [Tue, 1 Aug 2006 17:50:52 +0000 (17:50 +0000)]
ld/

2006-08-01  H.J. Lu  <hongjiu.lu@intel.com>

* ldlang.c (init_os): Add flags. Replace bfd_make_section with
bfd_make_section_with_flags.
(exp_init_os): Updated.
(lang_add_section): Call init_os with flags.
(map_input_to_output_sections): Likewise.

ld/testsuite/

2006-08-01  H.J. Lu  <hongjiu.lu@intel.com>

* ld-elf/noload-1.d: New.
* ld-elf/noload-1.s: Likewise.
* ld-elf/noload-1.t: Likewise.

17 years ago * config/tc-mips.c (md_section_align): Check ELF-ness at runtime.
Thiemo Seufer [Tue, 1 Aug 2006 07:58:22 +0000 (07:58 +0000)]
* config/tc-mips.c (md_section_align): Check ELF-ness at runtime.

17 years ago * config/tc-mips.c (macro_build_lui): Fix comment formatting.
Thiemo Seufer [Tue, 1 Aug 2006 05:49:02 +0000 (05:49 +0000)]
* config/tc-mips.c (macro_build_lui): Fix comment formatting.
(md_apply_fix): Likewise. Unify handling of BFD_RELOC_RVA,
BFD_RELOC_32 and BFD_RELOC_16.
(s_align, s_cpload, s_cplocal, s_cprestore, s_mips_stab,
md_convert_frag, md_obj_end): Fix comment formatting.

17 years agodaily update
Alan Modra [Tue, 1 Aug 2006 00:00:06 +0000 (00:00 +0000)]
daily update

17 years ago * config/tc-mips.c (md_apply_fix, tc_gen_reloc): Remove special
Thiemo Seufer [Mon, 31 Jul 2006 17:23:31 +0000 (17:23 +0000)]
* config/tc-mips.c (md_apply_fix, tc_gen_reloc): Remove special
handling for BFD_RELOC_MIPS16_JMP.

17 years agodaily update
Alan Modra [Mon, 31 Jul 2006 00:00:05 +0000 (00:00 +0000)]
daily update

17 years agodaily update
Alan Modra [Sun, 30 Jul 2006 00:00:05 +0000 (00:00 +0000)]
daily update

17 years agoopcodes/
Richard Sandiford [Sat, 29 Jul 2006 08:55:38 +0000 (08:55 +0000)]
opcodes/
* m68k-opc.c (m68k_opcodes): Fix operand specificer in the Coldfire
"fdaddl" entry.

gas/testsuite/
* gas/m68k/mcf-fpu.s: Add tests for all addressing modes.
* gas/m68k/mcf-fpu.d: Update accordingly.

17 years agold/
Richard Sandiford [Sat, 29 Jul 2006 08:48:15 +0000 (08:48 +0000)]
ld/
* Makefile.am (eelf32b4300.c): Update dependencies.
(eelf32bmip.c): Likewise.
(eelf32bsmip.c): Likewise.
(eelf32btsmip.c): Likewise.
(eelf32btsmipn32.c): Likewise.
(eelf32ltsmip.c): Likewise.
(eelf32ltsmipn32.c): Likewise.
(eelf32ebmip.c): Likewise.
(eelf32ebmipvxworks.c): Likewise.
(eelf32elmip.c): Likewise.
(eelf32elmipvxworks.c): Likewise.
(eelf32bmipn32.c): Likewise.
(eelf32lmip.c): Likewise.
(eelf32mipswindiss.c): Likewise.
(eelf32lsmip.c): Likewise.
(eelf64bmip.c): Likewise.
(eelf64btsmip.c): Likewise.
(eelf64ltsmip.c): Likewise.
(emipsbig.c): Likewise.  Canonicalize ${GENSCRIPTS} line.
(emipsbsd.c): Likewise.
(emipsidt.c): Update dependencies.
(emipsidtl.c): Likewise.
(emipslit.c): Likewise.
(emipslnews.c): Likewise.
(emipspe.c): Likewise.  Fix ${GENSCRIPTS} invocation.
* Makefile.in: Regenerate.
* emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define.
* emulparams/elf32bmipn32-defs.sh (EXTRA_EM_FILE): Likewise.
* emultempl/irix.em: Include emultempl/mipself.em.
* emultempl/mipself.em: New file.

ld/testsuite/
* ld-mips-elf/hash1.s, ld-mips-elf/hash1a.d,
* ld-mips-elf/hash1b.d, ld-mips-elf/hash1c.d: New tests.
* ld-mips-elf/mips-elf.exp: Run them.

17 years agodaily update
Alan Modra [Sat, 29 Jul 2006 00:00:10 +0000 (00:00 +0000)]
daily update

18 years agodaily update
Alan Modra [Fri, 28 Jul 2006 00:00:11 +0000 (00:00 +0000)]
daily update

18 years agomerge from gcc
DJ Delorie [Thu, 27 Jul 2006 18:05:31 +0000 (18:05 +0000)]
merge from gcc

18 years agodaily update
Alan Modra [Thu, 27 Jul 2006 00:00:06 +0000 (00:00 +0000)]
daily update

18 years ago * elfxx-ia64.c (elfNN_ia64_choose_gp): Use rawsize if set.
Andreas Schwab [Wed, 26 Jul 2006 19:56:16 +0000 (19:56 +0000)]
* elfxx-ia64.c (elfNN_ia64_choose_gp): Use rawsize if set.

18 years ago * elf.c (elf_modify_segment_map): Delete empty PT_LOAD segments.
Alan Modra [Wed, 26 Jul 2006 12:32:27 +0000 (12:32 +0000)]
* elf.c (elf_modify_segment_map): Delete empty PT_LOAD segments.
* elf32-xtensa.c (elf_xtensa_modify_segment_map): Delete.
(define elf_backend_modify_segment_map): Don't define.

18 years ago * emultempl/elf-generic.em (map_segments): Reorganise loop so that
Alan Modra [Wed, 26 Jul 2006 12:27:12 +0000 (12:27 +0000)]
* emultempl/elf-generic.em (map_segments): Reorganise loop so that
layout happens before segment map.  Don't do segment map on
relocatable link.

18 years ago * ld-scripts/overlay-size-map.d: Update.
Alan Modra [Wed, 26 Jul 2006 05:10:05 +0000 (05:10 +0000)]
* ld-scripts/overlay-size-map.d: Update.

18 years ago * ldexp.c (fold_name <LOADADDR>): Use the lma.
Alan Modra [Wed, 26 Jul 2006 05:05:52 +0000 (05:05 +0000)]
* ldexp.c (fold_name <LOADADDR>): Use the lma.
* ldlang.h (lang_memory_region_type): Delete old_length.  Add
last_os.
* ldlang.c (lang_memory_region_lookup): Init new field.
(lang_reset_memory_regions): Reset new field.
(lang_insert_orphan): Don't set load_base.
(lang_leave_overlay): Likewise.
(lang_size_sections_1): Delete unnecessary code setting lma_region
to region.  Correct lma region check.
(lang_do_assignments_1): Rename output_section_statement parm
to current_os.  Set lma from previous section in region.

18 years ago * ldlang.c: Formatting.
Alan Modra [Wed, 26 Jul 2006 00:42:33 +0000 (00:42 +0000)]
* ldlang.c: Formatting.

18 years ago * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections):
Bob Wilson [Wed, 26 Jul 2006 00:10:26 +0000 (00:10 +0000)]
* emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections):
Set discarded section's output_section to bfd_abs_section_ptr.

18 years agodaily update
Alan Modra [Wed, 26 Jul 2006 00:00:05 +0000 (00:00 +0000)]
daily update

18 years ago * ld-mips-elf/mips16-call-global-2.s,
Thiemo Seufer [Tue, 25 Jul 2006 16:45:55 +0000 (16:45 +0000)]
* ld-mips-elf/mips16-call-global-2.s,
ld-mips-elf/mips16-call-global-3.s, ld-mips-elf/mips16-call-global.d:
Improve test robustness.

18 years ago * ldlang.c (analyze_walk_wild_section_handler): Init handler_data
Alan Modra [Tue, 25 Jul 2006 14:45:17 +0000 (14:45 +0000)]
* ldlang.c (analyze_walk_wild_section_handler): Init handler_data
earlier.

18 years ago * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Allow
Thiemo Seufer [Tue, 25 Jul 2006 09:17:57 +0000 (09:17 +0000)]
* elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Allow
linking of objects for compatible machine types.

18 years ago * elfxx-mips.c (mips_elf_next_relocation): Tighten check to test
Thiemo Seufer [Tue, 25 Jul 2006 09:06:05 +0000 (09:06 +0000)]
* elfxx-mips.c (mips_elf_next_relocation): Tighten check to test
also for same symbol.

18 years ago * elfxx-mips.c (mips_elf_calculate_relocation): Remove magic constant.
Thiemo Seufer [Tue, 25 Jul 2006 09:01:02 +0000 (09:01 +0000)]
* elfxx-mips.c (mips_elf_calculate_relocation): Remove magic constant.

18 years agoSync from GCC
Paolo Bonzini [Tue, 25 Jul 2006 08:39:57 +0000 (08:39 +0000)]
Sync from GCC

2006-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>

        PR bootstrap/18058
        * configure.in: Add -fkeep-inline-functions to CFLAGS for stage 1
        if the bootstrap compiler is a GCC version that supports it.
        * configure: Regenerate.

config:
2006-07-21  David Daney  <ddaney@avtrex.com>

        PR libgcj/28426
        * gxx-include-dir.m4: Use target_alias in path for cross build.

18 years ago2006-07-25 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Tue, 25 Jul 2006 08:32:44 +0000 (08:32 +0000)]
2006-07-25  Paolo Bonzini  <bonzini@gnu.org>

PR build/26188
        * stdint.m4: Test for uintptr_t even on systems with uint64_t or uint32_t.

Sync from GCC
2006-07-21  Steve Ellcey  <sje@cup.hp.com>

        PR target/26792
        * unwind_ipinfo.m4: New.

18 years ago * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Add space
Bob Wilson [Tue, 25 Jul 2006 00:20:09 +0000 (00:20 +0000)]
* emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Add space
in dep_sec_name for null terminator.  Make sure dep_sec_name has a
".t" linkonce tag.

18 years agodaily update
Alan Modra [Tue, 25 Jul 2006 00:00:04 +0000 (00:00 +0000)]
daily update

18 years ago* emulparams/elf_x86_64.sh (LIBPATH_SUFFIX, ELF_INTERPRETER_NAME): Set for *-*-solaris2*.
Nick Clifton [Mon, 24 Jul 2006 18:18:19 +0000 (18:18 +0000)]
* emulparams/elf_x86_64.sh (LIBPATH_SUFFIX, ELF_INTERPRETER_NAME): Set for *-*-solaris2*.
* elf.c (bfd_section_from_shdr): Reject unrecognised OS-specific sections
  only if the SHF_OS_NONCONFORMING flag is present.

18 years agoPR ld/2729
Nick Clifton [Mon, 24 Jul 2006 16:51:26 +0000 (16:51 +0000)]
PR ld/2729
* peXXigen.c (_bfd_XXi_final_link_postscript): Check for the existance of
  output sections before putting their entries into the DataDictionary.