OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
17 years ago2006-09-16 Paul Brook <paul@codesourcery.com>
Paul Brook [Sat, 16 Sep 2006 16:24:28 +0000 (16:24 +0000)]
2006-09-16  Paul Brook  <paul@codesourcery.com>

gas/
* config/tc-arm.c (s_arm_unwind_movsp): Add offset argument.
* doc/c-arm.texi (movsp): Document offset argument.

gas/testsuite/
* gas/arm/unwind.s: Test two argument form of .movsp.
* gas/arm/unwind.d: Update expected output.
* gas/arm/unwind_vxworks.d: Ditto.

17 years ago2006-09-16 Paul Brook <paul@codesourcery.com>
Paul Brook [Sat, 16 Sep 2006 00:55:33 +0000 (00:55 +0000)]
2006-09-16  Paul Brook  <paul@codesourcery.com>

* config/tc-arm.c (thumb32_negate_data_op): Consistently use
unsigned int to avoid 64-bit host problems.

17 years agodaily update
Alan Modra [Fri, 15 Sep 2006 23:59:44 +0000 (23:59 +0000)]
daily update

17 years ago * config/bfin-parse.y (binary): Do some more constant folding for
Bernd Schmidt [Fri, 15 Sep 2006 17:02:35 +0000 (17:02 +0000)]
* config/bfin-parse.y (binary): Do some more constant folding for
additions.

17 years ago2006-09-15 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 15 Sep 2006 16:19:33 +0000 (16:19 +0000)]
2006-09-15  H.J. Lu  <hongjiu.lu@intel.com>

* ld-scripts/overlay-size.t: Discard .reginfo sections.

17 years ago2006-09-15 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 15 Sep 2006 14:55:42 +0000 (14:55 +0000)]
2006-09-15  H.J. Lu  <hongjiu.lu@intel.com>

* ld-elf/hash.d: Don't run for mips targets.

17 years ago2006-09-15 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 15 Sep 2006 14:48:46 +0000 (14:48 +0000)]
2006-09-15  H.J. Lu  <hongjiu.lu@intel.com>

* ld-elf/loadaddr.s: Pad sections to 16 bytes.
* ld-elf/loadaddr1.d: Updated.
* ld-elf/loadaddr2.d: Likewise.
* ld-elf/loadaddr3a.d: Likewise.
* ld-elf/loadaddr3b.d: Likewise.

17 years agoPR ld/3107
Nick Clifton [Fri, 15 Sep 2006 09:48:58 +0000 (09:48 +0000)]
PR ld/3107
* ldlang.c (lang_size_sections_1): Do not abort when encountering a non-empty
  section that is ignored.  Instead produce a warning message.

17 years agoFix PR references.
H.J. Lu [Fri, 15 Sep 2006 00:12:32 +0000 (00:12 +0000)]
Fix PR references.

17 years agodaily update
Alan Modra [Thu, 14 Sep 2006 23:59:47 +0000 (23:59 +0000)]
daily update

17 years agobinutils/
H.J. Lu [Thu, 14 Sep 2006 23:37:35 +0000 (23:37 +0000)]
binutils/

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

PR binutils/3182
* objcopy.c (group_signature): Return proper group signature.

binutils/testsuite/

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

PR binutils/3182
* binutils-all/objcopy.exp: Run strip-1 and strip-2 for ELF
targets.

* binutils-all/strip-1.d: New file.
* binutils-all/strip-2.d: Likewise.

* lib/utils-lib.exp (run_dump_test): Support strip.

17 years ago PR 3182
Alan Modra [Thu, 14 Sep 2006 12:11:33 +0000 (12:11 +0000)]
PR 3182
* elf.c (_bfd_elf_copy_private_header_data): Fix group members
that have had their SHT_GROUP section removed.
* objcopy.c (group_signature): New function, split out from..
(setup_section): ..here.
(is_strip_section): Return true for SHT_GROUP sections that are
going to lose their group signature symbol.

17 years agodaily update
Alan Modra [Wed, 13 Sep 2006 23:59:49 +0000 (23:59 +0000)]
daily update

17 years agomerge from gcc
DJ Delorie [Wed, 13 Sep 2006 22:07:31 +0000 (22:07 +0000)]
merge from gcc

17 years ago PR 3182
Alan Modra [Wed, 13 Sep 2006 15:08:38 +0000 (15:08 +0000)]
PR 3182
* objcopy.c (copy_object): Load symbols earlier.
(setup_section): Mark group signature symbols with BSF_KEEP.

17 years ago2006-09-13 Jan Beulich <jbeulich@novell.com>
Jan Beulich [Wed, 13 Sep 2006 10:15:59 +0000 (10:15 +0000)]
2006-09-13  Jan Beulich  <jbeulich@novell.com>

* input-file.c (input_file_give_next_buffer): Demote as_bad to
as_warn.

17 years ago PR gas/3165
Alan Modra [Wed, 13 Sep 2006 00:46:09 +0000 (00:46 +0000)]
PR gas/3165
* config/tc-sh (DWARF2_CIE_DATA_ALIGNMENT): Wrap negative number
in parens.

17 years ago * input-file.h: Update comment.
Alan Modra [Wed, 13 Sep 2006 00:00:40 +0000 (00:00 +0000)]
* input-file.h: Update comment.

17 years agodaily update
Alan Modra [Tue, 12 Sep 2006 23:59:45 +0000 (23:59 +0000)]
daily update

17 years ago * input-file.c (input_file_open): Replace as_perror with as_bad
Alan Modra [Tue, 12 Sep 2006 23:57:26 +0000 (23:57 +0000)]
* input-file.c (input_file_open): Replace as_perror with as_bad
so that gas exits with error on file errors.  Correct error
message.
(input_file_get, input_file_give_next_buffer): Likewise.

17 years agobfd/
H.J. Lu [Tue, 12 Sep 2006 22:10:31 +0000 (22:10 +0000)]
bfd/

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

PR ld/3197
* elflink.c (elf_link_output_extsym): Compute bucket only if
needed.

ld/testsuite/

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

PR ld/3197
* ld-elf/hash.d: New test.

17 years agodaily update
Alan Modra [Tue, 12 Sep 2006 01:34:11 +0000 (01:34 +0000)]
daily update

17 years agoPR binutils/3110
Nick Clifton [Mon, 11 Sep 2006 14:40:39 +0000 (14:40 +0000)]
PR binutils/3110
* objcopy.c (copy_archive): Add new parameter: force_output_target. If not
  true, then perserve the file formats of each copied archive element,
  otherwise force them to be one specific file format.
  (copy_file): Compute force_output_target parameter to pass to copy_archive.

17 years agoPR gas/3172
Nick Clifton [Mon, 11 Sep 2006 14:27:32 +0000 (14:27 +0000)]
PR gas/3172
* config/tc-arm.c (parse_typed_reg_or_scalar): Accept wCg class registers
  as a sub-class of wC registers.

17 years ago PR gas/3165
Alan Modra [Mon, 11 Sep 2006 02:32:50 +0000 (02:32 +0000)]
PR gas/3165
* config/tc-mips.h (enum dwarf2_format): Forward declare.
(DWARF2_CIE_DATA_ALIGNMENT): Wrap negative number in parens.
* config/tc-alpha.h (DWARF2_CIE_DATA_ALIGNMENT): Likewise.
* config/tc-arm.h (DWARF2_CIE_DATA_ALIGNMENT): Likewise.

17 years agodaily update
Alan Modra [Sun, 10 Sep 2006 23:59:51 +0000 (23:59 +0000)]
daily update

17 years ago2006-09-10 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sun, 10 Sep 2006 23:51:09 +0000 (23:51 +0000)]
2006-09-10  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/3186
* elf.c (_bfd_elf_make_section_from_shdr): Correct length of
"gnu.linkonce.wi.".

17 years agodaily update
Alan Modra [Sat, 9 Sep 2006 23:59:51 +0000 (23:59 +0000)]
daily update

17 years agodaily update
Alan Modra [Fri, 8 Sep 2006 23:59:52 +0000 (23:59 +0000)]
daily update

17 years ago * lib/gas-dg.exp (gas-dg-test): Treat $dir as a literal.
Kazu Hirata [Fri, 8 Sep 2006 17:08:05 +0000 (17:08 +0000)]
* lib/gas-dg.exp (gas-dg-test): Treat $dir as a literal.

17 years agoPR gas/3129
Nick Clifton [Fri, 8 Sep 2006 16:25:46 +0000 (16:25 +0000)]
PR gas/3129
* doc/as.texinfo (Macro): Improve documentation about separating macro arguments from following text.

17 years ago2006-09-08 Paul Brook <paul@codesourcery.com>
Paul Brook [Fri, 8 Sep 2006 15:51:02 +0000 (15:51 +0000)]
2006-09-08  Paul Brook  <paul@codesourcery.com>

gas/
* config/tc-arm.c (insns): Allow ARM IT pseudo-insn on all cores.

gas/testsuite/
* gas/arm/arm-it.s: New test.
* gas/arm/arm-it.d: New test.

17 years ago2006-09-08 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 8 Sep 2006 13:43:54 +0000 (13:43 +0000)]
2006-09-08  H.J. Lu  <hongjiu.lu@intel.com>

* ld.texinfo: Document --dynamic-list-cpp-typeinfo.

17 years ago2006-09-04 Vladimir Prus <vladimir@codesourcery.com>
Richard Earnshaw [Fri, 8 Sep 2006 10:32:28 +0000 (10:32 +0000)]
2006-09-04  Vladimir Prus  <vladimir@codesourcery.com>

* ld-arm/use-thumb-lib.sym: Use regexps instead of
absolute addresses, for robustness.

17 years ago2006-09-08 Vladimir Prus <vladimir@codesourcery.com>
Richard Earnshaw [Fri, 8 Sep 2006 10:30:27 +0000 (10:30 +0000)]
2006-09-08  Vladimir Prus  <vladimir@codesourcery.com>

* elf32-arm.c (elf32_arm_swap_symbol_out): Remove
unconditional setting of low bit for Thumb symbol
mistakenly left behind after check for external
symbols was added.  Fix comment typo.

17 years agodaily update
Alan Modra [Thu, 7 Sep 2006 23:59:54 +0000 (23:59 +0000)]
daily update

17 years agoMore symbol resolution code.
Ian Lance Taylor [Thu, 7 Sep 2006 21:21:41 +0000 (21:21 +0000)]
More symbol resolution code.

17 years ago2006-09-07 Paul Brook <paul@codesourcery.com>
Paul Brook [Thu, 7 Sep 2006 17:54:15 +0000 (17:54 +0000)]
2006-09-07  Paul Brook  <paul@codesourcery.com>

gas/
* config/tc-arm.c (parse_operands): Mark operand as present.

gas/testsuite/
* gas/arm/neon-omit.s: Test three-argument variants.
* gas/arm/neon-omit.d: Update expected output.

17 years agobfd/
H.J. Lu [Thu, 7 Sep 2006 17:16:34 +0000 (17:16 +0000)]
bfd/

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

* elf-bfd.h (elf_link_hash_entry): Add a dynamic field.
(bfd_elf_link_mark_dynamic_symbol): New.
(SYMBOLIC_BIND): New.

* elf32-i386.c (elf_i386_check_relocs): Replace info->symbolic
with SYMBOLIC_BIND (info, h).
(elf_i386_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
(elf64_x86_64_relocate_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_check_relocs): Likewise.

* elflink.c (bfd_elf_link_mark_dynamic_symbol): New.
(bfd_elf_record_link_assignment): Call
bfd_elf_link_mark_dynamic_symbol on new entry.
(_bfd_elf_merge_symbol): Likewise.
(_bfd_elf_export_symbol): Return if the symbol isn't exported.
(_bfd_elf_fix_symbol_flags): Replace info->symbolic with
SYMBOLIC_BIND (info, h).
(_bfd_elf_dynamic_symbol_p): Likewise.
(_bfd_elf_symbol_refs_local_p): Likewise.
(bfd_elf_size_dynamic_sections): Updated.

include/

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

* bfdlink.h (bfd_elf_dynamic_list): New.
(bfd_link_info): Add a dynamic field.

ld/

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

* Makefile.am (CXX): Set to g++.
(CXX_FOR_TARGET): Likewise.
* Makefile.in: Regenerated.

* NEWS: Mention --dynamic-list.

* ld.texinfo: Document --dynamic-list.

* ldgram.y: Support dynamic list.

* ldlang.c (lang_process): Call lang_finalize_version_expr_head
on link_info.dynamic if needed.
(lang_append_dynamic_list): New.
(lang_append_dynamic_list_cpp_typeinfo): New.
* ldlang.h (lang_append_dynamic_list): Likewise.
* ldlang.h (lang_append_dynamic_list_cpp_typeinfo): Likewise.

* ldlex.h (input_enum): Add input_dynamic_list.
* ldlex.l: Handle it.

* ldmain.c (main): Initialize link_info.dynamic.

* lexsup.c (option_values): Add OPTION_DYNAMIC_LIST and
OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
(ld_options): Add entries for OPTION_DYNAMIC_LIST and
OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
(parse_args): Handle OPTION_DYNAMIC_LIST and
OPTION_DYNAMIC_LIST_CPP_TYPEINFO.

ld/testsuite/

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

* ld-elf/dl1.c: New file.
* ld-elf/dl1.list: Likewise.
* ld-elf/dl1.out: Likewise.
* ld-elf/dl1main.c: Likewise.
* ld-elf/dl2.c: Likewise.
* ld-elf/dl2.list: Likewise.
* ld-elf/dl2a.out: Likewise.
* ld-elf/dl2b.out: Likewise.
* ld-elf/dl2main.c: Likewise.
* ld-elf/dl2xxx.c: Likewise.
* ld-elf/dl2xxx.list: Likewise.
* ld-elf/dl3.cc: Likewise.
* ld-elf/dl3.list: Likewise.
* ld-elf/dl3a.out: Likewise.
* ld-elf/dl3b.out: Likewise.
* ld-elf/dl3header.h: Likewise.
* ld-elf/dl3main.cc: Likewise.

* ld-elf/shared.exp: Updated.

* lib/ld-lib.exp (run_ld_link_exec_tests): Take an optional
argument for source language. Use CC/CXX for link, depending
on source language.
(run_cc_link_tests): Likewise.

17 years ago* emulparams/h8300elf.sh: _tinydata should not be placed in relocatables.
Nick Clifton [Thu, 7 Sep 2006 17:01:10 +0000 (17:01 +0000)]
* emulparams/h8300elf.sh: _tinydata should not be placed in relocatables.
* emulparams/h8300.sh: Likewise.
* emulparams/h8300sxelf.sh: Likewise.

17 years agodaily update
Alan Modra [Wed, 6 Sep 2006 23:59:54 +0000 (23:59 +0000)]
daily update

17 years agodaily update
Alan Modra [Wed, 6 Sep 2006 00:00:12 +0000 (00:00 +0000)]
daily update

17 years ago2006-09-05 Bibo Mao <bibo.mao@intel.com>
H.J. Lu [Tue, 5 Sep 2006 18:56:50 +0000 (18:56 +0000)]
2006-09-05  Bibo Mao  <bibo.mao@intel.com>

PR binutils/3171
* coffcode.h (coff_write_object_contents): Set the optional
header magic number to PE32PMAGIC instead of ZMAGIC for ia64.

17 years ago2006-09-05 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 5 Sep 2006 16:26:29 +0000 (16:26 +0000)]
2006-09-05  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/3015
* emultempl/elf32.em: Enable "-z relro" only if $COMMONPAGESIZE
is defined.

17 years ago2006-09-04 Paul Brook <paul@codesourcery.com>
Paul Brook [Tue, 5 Sep 2006 14:07:22 +0000 (14:07 +0000)]
2006-09-04  Paul Brook  <paul@codesourcery.com>

gas/
* config/tc-arm.c (do_neon_dyadic_if_i): Remove.
(do_neon_dyadic_if_i_d): Avoid setting U bit.
(do_neon_mac_maybe_scalar): Ditto.
(do_neon_dyadic_narrow): Force operand type to NT_integer.
(insns): Remove out of date comments.

gas/testsuite/
* gas/arm/neon-cov.s: Test .u and .s aliases for .i suffixes.
* gas/arm/neon-cov.d: Adjust expected output.

opcodes/
* arm-dis.c (neon_opcode): Fix suffix on VMOVN.

17 years agoPR binutils/3166
Nick Clifton [Tue, 5 Sep 2006 08:22:27 +0000 (08:22 +0000)]
PR binutils/3166
* objcopy.c (is_strip_section): Do not treat group sections as debugging sections.
* doc/binutils.texi (--only-keep-debug): Document that this switch is only intended for use on fully linked files.

17 years agodaily update
Alan Modra [Mon, 4 Sep 2006 23:59:55 +0000 (23:59 +0000)]
daily update

17 years ago bfd/
Mark Shinwell [Mon, 4 Sep 2006 07:11:11 +0000 (07:11 +0000)]
bfd/
        * elf32-arm.c (elf32_arm_howto_table_1): Adjust entries for
        R_ARM_THM_ALU_PREL_11_0 and R_ARM_THM_PC12 relocations.
        (elf32_arm_final_link_relocate): Handle R_ARM_THM_ALU_PREL_11_0
        and R_ARM_THM_PC12 relocations.

17 years agodaily update
Alan Modra [Sun, 3 Sep 2006 23:59:56 +0000 (23:59 +0000)]
daily update

17 years agodaily update
Alan Modra [Sat, 2 Sep 2006 23:59:57 +0000 (23:59 +0000)]
daily update

17 years agodaily update
Alan Modra [Sat, 2 Sep 2006 00:00:00 +0000 (00:00 +0000)]
daily update

17 years agoPR binutils/3146
Nick Clifton [Fri, 1 Sep 2006 11:38:20 +0000 (11:38 +0000)]
PR binutils/3146
* readelf.c (dump_relocations): Check for a NULL value in rtype before using it.

17 years agodaily update
Alan Modra [Thu, 31 Aug 2006 23:59:58 +0000 (23:59 +0000)]
daily update

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

17 years ago * configure.in: Never build newlib for a Mingw host.
Corinna Vinschen [Wed, 30 Aug 2006 13:14:18 +0000 (13:14 +0000)]
* configure.in: Never build newlib for a Mingw host.
Never build newlib as Mingw target library.
Test the existence of winsup/cygwin for building a Cygwin newlib,
rather than just winsup.
Add winsup/mingw and winsup/w32api paths to FLAGS_FOR_TARGET if
building a Mingw target.
* configure: Regenerate.

17 years ago * configure.ac: Add case for Mingw as host.
Corinna Vinschen [Wed, 30 Aug 2006 13:08:27 +0000 (13:08 +0000)]
* configure.ac: Add case for Mingw as host.
* configure: Regenerate.

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

17 years ago* read.c (s_align): Initialize the 'stopc' variable to prevent
Nick Clifton [Tue, 29 Aug 2006 15:19:43 +0000 (15:19 +0000)]
* read.c (s_align): Initialize the 'stopc' variable to prevent
  compiler complaints about it being used without being initialized.
 (s_comm_internal, s_mri_common, s_fail, s_globl, s_space,
  s_float_space, s_struct, cons_worker, equals): Likewise.

17 years ago * ldlang.c (walk_wild): Allow * to glob '/' in wildcarded match.
Nathan Sidwell [Tue, 29 Aug 2006 11:27:45 +0000 (11:27 +0000)]
* ldlang.c (walk_wild): Allow * to glob '/' in wildcarded match.

17 years agoAdjust target test.
Alan Modra [Tue, 29 Aug 2006 05:16:18 +0000 (05:16 +0000)]
Adjust target test.

17 years ago * ecoff.c (ecoff_directive_val): Fix message typo.
Alan Modra [Tue, 29 Aug 2006 01:31:56 +0000 (01:31 +0000)]
* ecoff.c (ecoff_directive_val): Fix message typo.
* config/tc-ns32k.c (convert_iif): Likewise.
* config/tc-sh64.c (shmedia_check_limits): Likewise.

17 years agoNew tests.
Alan Modra [Tue, 29 Aug 2006 01:24:17 +0000 (01:24 +0000)]
New tests.

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

17 years ago * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will
Alan Modra [Mon, 28 Aug 2006 01:52:56 +0000 (01:52 +0000)]
* scripttempl/elf.sc: Ensure that crtbegin and crtend entries will
not match random object files in a path containing "crtbegin" or
"crtend" as part of a directory name.
* scripttempl/armbpabi.sc: Likewise.
* scripttempl/crisaout.sc: Likewise.
* scripttempl/elf32crx.sc: Likewise.
* scripttempl/elf32sh-symbian.sc: Likewise.
* scripttempl/elf_chaos.sc: Likewise.
* scripttempl/elfd10v.sc: Likewise.
* scripttempl/elfd30v.sc: Likewise.
* scripttempl/elfxtensa.sc: Likewise.
* scripttempl/iq2000.sc: Likewise.
* scripttempl/mmo.sc: Likewise.
* scripttempl/xstormy16.sc: Likewise.

17 years agomerge from gcc
DJ Delorie [Mon, 28 Aug 2006 00:56:25 +0000 (00:56 +0000)]
merge from gcc

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

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

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

17 years ago * config/tc-xtensa.c (xtensa_mark_literal_pool_location): Do not check
Bob Wilson [Fri, 25 Aug 2006 19:59:31 +0000 (19:59 +0000)]
* config/tc-xtensa.c (xtensa_mark_literal_pool_location): Do not check
the state of the absolute_literals directive.  Remove align frag at
the start of the literal pool position.

17 years ago * doc/c-xtensa.texi: Add @group commands in examples.
Bob Wilson [Fri, 25 Aug 2006 19:50:30 +0000 (19:50 +0000)]
* doc/c-xtensa.texi: Add @group commands in examples.

17 years agobfd/
Bob Wilson [Fri, 25 Aug 2006 00:08:55 +0000 (00:08 +0000)]
bfd/
* elf32-xtensa.c (xtensa_get_property_section_name): Delete.
(xtensa_get_property_section): New.
(xtensa_read_table_entries): Use xtensa_get_property_section.
(relax_property_section, xtensa_get_property_predef_flags): Handle
group name suffixes in property section names.
(match_section_group): New.
gas/
* config/tc-xtensa.c (FINI_LITERAL_SECTION_NAME): Delete.
(INIT_LITERAL_SECTION_NAME): Delete.
(lit_state struct): Remove segment names, init_lit_seg, and
fini_lit_seg.  Add lit_prefix and current_text_seg.
(init_literal_head_h, init_literal_head): Delete.
(fini_literal_head_h, fini_literal_head): Delete.
(xtensa_begin_directive): Move argument parsing to
xtensa_literal_prefix function.
(xtensa_end_directive): Deallocate lit_prefix field of lit_state.
(xtensa_literal_prefix): Parse the directive argument here and
record it in the lit_prefix field.  Remove code to derive literal
section names.
(linkonce_len): New.
(get_is_linkonce_section): Use linkonce_len.  Check for any
".gnu.linkonce.*" section, not just text sections.
(md_begin): Remove initialization of deleted lit_state fields.
(xtensa_reorder_segments, xtensa_post_relax_hook): Remove references
to init_literal_head and fini_literal_head.
(xtensa_move_literals): Likewise.  Skip literals for .init and .fini
when traversing literal_head list.
(match_section_group): New.
(cache_literal_section): Rewrite to determine the literal section
name on the fly, create the section and return it.
(xtensa_switch_to_literal_fragment): Adjust for cache_literal_section.
(xtensa_switch_to_non_abs_literal_fragment): Likewise.
(xtensa_create_property_segments, xtensa_create_xproperty_segments):
Use xtensa_get_property_section from bfd.
(retrieve_xtensa_section): Delete.
* doc/c-xtensa.texi (Xtensa Options): Fix --text-section-literals
description to refer to plural literal sections and add xref to
the Literal Directive section.
(Literal Directive): Describe new rules for deriving literal section
names.  Add footnote for special case of .init/.fini with
--text-section-literals.
(Literal Prefix Directive): Replace old naming rules with xref to the
Literal Directive section.
ld/
* emulparams/elf32xtensa.sh (.xt.prop): Add .xt.prop.*.
* scripttempl/elfxtensa.sc (.text): Add .literal.*.

17 years ago* ldlang.c (lang_size_sections_1, lang_assignment_statement_enum):
Nick Clifton [Thu, 24 Aug 2006 14:59:24 +0000 (14:59 +0000)]
* ldlang.c (lang_size_sections_1, lang_assignment_statement_enum):
  Adjust the current address of DEFAULT_MEMORY_REGION even when dot hasn't changed.

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

17 years ago* archive.c (hpux_uid_gid_encode): Fix thinko decrementing "cnt" variable.
Nick Clifton [Wed, 23 Aug 2006 17:20:08 +0000 (17:20 +0000)]
* archive.c (hpux_uid_gid_encode): Fix thinko decrementing "cnt" variable.

17 years ago2006-08-23 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 23 Aug 2006 14:48:49 +0000 (14:48 +0000)]
2006-08-23  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (three_byte_table): Expand to 256 elements.

17 years ago2006-08-23 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 23 Aug 2006 14:45:30 +0000 (14:45 +0000)]
2006-08-23  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/3052
* ld-elf/loadaddr1.t: Add "AT (ADDR(.data))".
* ld-elf/loadaddr2.t: Likewise.

17 years ago2006-08-23 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 23 Aug 2006 14:43:56 +0000 (14:43 +0000)]
2006-08-23  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/3103
* ld-elf/overlay.d: New file.
* ld-elf/overlay.s: Likewise.
* ld-elf/overlay.t: Likewise.

17 years ago * ldexp.c (fold_name <LOADADDR>): Return an absolute value
Alan Modra [Wed, 23 Aug 2006 01:35:31 +0000 (01:35 +0000)]
* ldexp.c (fold_name <LOADADDR>): Return an absolute value
        rather than a section relative value.

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

17 years ago * elf32-arm.c (elf32_arm_copy_indirect_symbol): Only copy
Daniel Jacobowitz [Tue, 22 Aug 2006 13:18:03 +0000 (13:18 +0000)]
* elf32-arm.c (elf32_arm_copy_indirect_symbol): Only copy
plt_thumb_refcount from indirect symbols.

17 years ago * elf32-ppc.c (ppc_elf_relocate_section): Correct GOT and PLT HA
Alan Modra [Tue, 22 Aug 2006 12:06:10 +0000 (12:06 +0000)]
* elf32-ppc.c (ppc_elf_relocate_section): Correct GOT and PLT HA
reloc handling.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.

17 years ago* configure.tgt: Set targ_emul to arm_wince_pe for ARM Windows CE targets.
Nick Clifton [Tue, 22 Aug 2006 11:50:33 +0000 (11:50 +0000)]
* configure.tgt: Set targ_emul to arm_wince_pe for ARM Windows CE targets.

17 years ago * NEWS: Mention LMA default change.
Alan Modra [Tue, 22 Aug 2006 07:41:05 +0000 (07:41 +0000)]
* NEWS: Mention LMA default change.
* ld.texinfo (Output Section LMA): Update default description.
(Location Counter): Clarify backward movement.
* ldlang.c (lang_size_sections_1): Leave non-alloc sections with
default lma equal to vma.  Warn on backward movement of dot.

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

17 years agogas:
Joseph Myers [Mon, 21 Aug 2006 11:41:24 +0000 (11:41 +0000)]
gas:
* config/tc-arm.c (s_arm_unwind_save_mmxwr): Correct condition for
merging with previous long opcode.

gas/testsuite:
* gas/arm/unwind.s: Test not merging iWMMXt register save with
previous long opcode.
* gas/arm/unwind.d, gas/arm/unwind_vxworks.d: Update.

17 years ago bfd/
Mark Shinwell [Mon, 21 Aug 2006 10:47:22 +0000 (10:47 +0000)]
bfd/
* elf32-arm.c (elf32_arm_link_hash_table): Correct typo in
comment for target1_is_rel.

17 years agobfd
Nick Clifton [Mon, 21 Aug 2006 08:12:46 +0000 (08:12 +0000)]
bfd
* Makefile.am: Add rules to build pe-arm-wince.lo and pei-arm-wince.lo objects.
* Makefile.in: Regenerate.
* pe-arm-wince.c: New file.
* pei-arm-wince.c: New file.
* pei-arm.c: Remove ARM_WINCE block.
* pe-arm.c: Remove ARM_WINCE block. Rename
bfd_arm_pe_allocate_interworking_sections,
bfd_arm_pe_get_bfd_for_interworking, and
bfd_arm_pe_process_before_allocation to
bfd_armpe_allocate_interworking_sections,
bfd_armpe_get_bfd_for_interworking, and
bfd_armpe_process_before_allocation. Move them before including bfd.h.
* bfd.c: ARM wince bfd format names were renamed. Adjust.
* coff-arm.c [ARM_WINCE]: Adjust so Windows CE doesn't end up with unexpected/conflicting relocs.
* targets.c: The arm-wince-pe target got its own new vector.  Adjust.
* config.bfd: Likewise.
* configure.in: Likewise.
* configure: Regenerate.

binutils
* configure.in: Split arm-pe and arm-wince-pe. Build dlltool with -DDLLTOOL_ARM_WINCE for Windows CE case.
* configure: Regenerate.
* dlltool.c: Add support for arm-wince.

gas
* Makefile.am (TARG_ENV_HFILES): Add te-wince-pe.h.
* Makefile.in: Regenerate.
* config/tc-arm.h [TARGET_FORMAT]: ARM wince bfd names were  renamed. Adjust.

ld
* Makefile.am: Split arm-wince into its own emulation.
* Makefile.in: Regenerate.
* configure.tgt: Set targ_emul to arm_wince_pe for ARM Windows CE targets.
* pe-dll.c : Define PE_ARCH_arm_wince.
  (pe_detail_list): Add PE_ARCH_arm_wince case.
  (make_one): Handle PE_ARCH_arm_epoc and PE_ARCH_arm_wince cases.
* emulparams/arm_wince_pe.sh: New file.
* emultempl/pe.em: Handle new TARGET_IS_arm_wince_pe define.
  Remap bfd_arm_allocate_interworking_sections, bfd_arm_get_bfd_for_interworking and
  bfd_arm_process_before_allocation for arm-pe and arm-wince-pe targets too.
  (gld_${EMULATION_NAME}_recognized_file): Handle arm-wince and arm-epoc bfd format names.

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

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

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

17 years agoAnother snapshot of the current state of the sources. Gets to the
Ian Lance Taylor [Fri, 18 Aug 2006 22:29:20 +0000 (22:29 +0000)]
Another snapshot of the current state of the sources.  Gets to the
point of symbol resolution and can now issue a multiple definition
error.  Also added target selection infrastructure.

17 years agoAdd comment missing from previous patch.
Paul Brook [Fri, 18 Aug 2006 16:18:23 +0000 (16:18 +0000)]
Add comment missing from previous patch.

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