OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
15 years agodaily update
Alan Modra [Fri, 3 Apr 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * ld-pe/export_dynamic_warning.d (#warning): Fix regex pattern.
Dave Korn [Thu, 2 Apr 2009 16:44:23 +0000 (16:44 +0000)]
* ld-pe/export_dynamic_warning.d (#warning):  Fix regex pattern.

15 years agold/ChangeLog
Dave Korn [Thu, 2 Apr 2009 14:42:41 +0000 (14:42 +0000)]
ld/ChangeLog

PR ld/6744
* ld.texinfo (--export-dynamic):  Mention --export-all-symbols.
* emultempl/pe.em (gld_${EMULATION_NAME}_after_parse):  Issue
warning if --export-dynamic was passed on command-line.
* emultempl/pep.em (gld_${EMULATION_NAME}_after_parse):  Likewise.

ld/testsuite/ChangeLog

PR ld/6744
* ld-pe/export_dynamic_warning.d:  New test control file.
* ld-pe/export_dynamic_warning.s:  New test source file.
* ld-pe/pe.exp:  Also run export_dynamic_warning dump test.

15 years ago2009-04-02 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Thu, 2 Apr 2009 14:12:46 +0000 (14:12 +0000)]
2009-04-02  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (elf32_arm_stub_long_branch_v4t_thumb_thumb,
elf32_arm_stub_long_branch_v4t_thumb_thumb_pic): Two new long
branch stubs.
(elf32_arm_stub_type): New enum values for the two new stubs.
(arm_type_of_stub): Make use of the two new stubs.
(arm_size_one_stub): Handle the two new stubs.

testsuite/
* ld-arm/farcall-thumb-thumb-pic-veneer.d: Update expected
results.
* ld-arm/farcall-thumb-thumb.d: Likewise.

15 years ago * inutils-all/objcopy.exp (strip_executable): Delete remote dest
Dave Korn [Thu, 2 Apr 2009 13:47:44 +0000 (13:47 +0000)]
* inutils-all/objcopy.exp (strip_executable):  Delete remote dest
file before downloading.
(strip_executable_with_saving_a_symbol):  Likewise.
(keep_debug_symbols_and_test_copy):  Likewise.

15 years agoopcodes/
Peter Bergner [Thu, 2 Apr 2009 13:30:56 +0000 (13:30 +0000)]
opcodes/
* ppc-dis.c (powerpc_init_dialect): Do not choose a default dialect
due to -many/-Many.
(print_insn_powerpc): Make sure we only deprecate instructions using
the original dialect and not a modified dialect due to -Many handling.
Move the handling of the condition register and default operands to
the end of the if/else if/else chain.
* ppc-opc.c (powerpc_opcodes): Reorder the opcode table so that
instructions from newer processors are listed before older ones.
<"icblce", "sync", "eieio", "tlbld">: Deprecate for processors
that have instructions with conflicting opcodes.

15 years ago * config/tc-arm.c (arm_cpus): Add entry for ARM Cortex-M0.
Nick Clifton [Thu, 2 Apr 2009 09:43:56 +0000 (09:43 +0000)]
    * config/tc-arm.c (arm_cpus): Add entry for ARM Cortex-M0.
        * doc/c-arm.texi: Added codes for processors ARM Cortex-M0 and
        Cortex-M1.

15 years agoPR 9987
Nick Clifton [Thu, 2 Apr 2009 09:34:22 +0000 (09:34 +0000)]
PR 9987
        * lib/ld-lib.exp (check_gc_sections_available): Do not run garbage
        collection tests for cygwin targets.

15 years ago * gold.h (reserve_unordered_map): Define, three versions, one for
Ian Lance Taylor [Thu, 2 Apr 2009 04:19:03 +0000 (04:19 +0000)]
* gold.h (reserve_unordered_map): Define, three versions, one for
each version of Unordered_map.
* layout.cc (Layout::Layout): Remove options parameter.  Add
number_of_input_files parameter.  Don't initialize options_.
Initialize number_of_input_files_ and resized_signatures_.  Move
sections_are_attached_.
(Layout::layout_group): Reserve space for group_signatures_.
(Layout::find_or_add_kept_section): Change name parameter to be a
reference.  Resize signatures_ map when it gets large enough.
(Layout::layout_eh_frame): Use parameters->options() instead of
this->options_.
(Layout::make_output_section): Likewise.
(Layout::attach_allocated_section_to_segment): Likewise.
(Layout::finalize, Layout::create_executable_stack): Likewise.
(Layout::set_segment_offsets, Layout::create_interp): Likewise.
(Layout::finish_dynamic_section, Layout::write_binary): Likewise.
* layout.h (class Layout): Update declarations.  Remove options_
field.  Add number_of_input_files_ and resized_signatures_
fields.  Move sections_are_attached_ field.
* main.cc (main): Pass number of input files to Layout
constructor.  Don't pass options.

15 years agoopcodes/
Peter Bergner [Thu, 2 Apr 2009 00:42:29 +0000 (00:42 +0000)]
opcodes/
        * ppc-opc.c (powerpc_opcodes) <"dcbzl">: Merge the POWER4 and
        E500MC entries.

15 years ago2009-04-01 Matt Thomas <matt@netbsd.org>
Matt Thomas [Thu, 2 Apr 2009 00:20:42 +0000 (00:20 +0000)]
2009-04-01  Matt Thomas  <matt@netbsd.org>

* elf32-vax.c (elf_vax_check_relocs): Do not put relocations against
hidden symbols into the GOT or PLT.GOT.
(elf_vax_relocate_section): Do not emit a PCREL reloc
into a shared object if it is against a hidden symbol.

15 years ago2009-04-01 Matt Thomas <matt@netbsd.org>
Matt Thomas [Thu, 2 Apr 2009 00:10:46 +0000 (00:10 +0000)]
2009-04-01 Matt Thomas  <matt@netbsd.org>

* config/tc-vax.c (synthetic_votstrs): add "jbbcci" and "jbbssi"
(md_assemble): emit symbol name when used as immediate in PIC mode.
(md_assemble): fix LP64 bug (use sizeof (valueT) instead 4).

15 years agodaily update
Alan Modra [Thu, 2 Apr 2009 00:00:08 +0000 (00:00 +0000)]
daily update

15 years ago2009-04-01 Sterling Augustine <sterling@jaw.hq.tensilica.com>
Sterling Augustine [Wed, 1 Apr 2009 21:07:14 +0000 (21:07 +0000)]
2009-04-01  Sterling Augustine  <sterling@jaw.hq.tensilica.com>

* config/tc-xtensa.c (parse_arguments): call demand_empty_rest_of_line

15 years agobfd/
Richard Sandiford [Wed, 1 Apr 2009 20:13:10 +0000 (20:13 +0000)]
bfd/
* xcofflink.c (xcoff_archive_info): Add contains_shared_object_p
and know_contains_shared_object_p.
(xcoff_archive_contains_shared_object_p): Add an "info" parameter.
Cache the result in the archive_info table.
(xcoff_auto_export_p): Add an "info" parameter and update the
call to xcoff_archive_contains_shared_object_p.
(xcoff_mark_auto_exports): Update accordingly.
(xcoff_post_gc_symbol): Likewise.

15 years agobfd/
Richard Sandiford [Wed, 1 Apr 2009 20:09:03 +0000 (20:09 +0000)]
bfd/
* xcofflink.c (bfd_link_input_bfd): Treat __rtinit as C_HIDEXT
rather than C_EXT.

ld/testsuite/
* ld-powerpc/aix-gc-1.nd: New test.
* ld-powerpc/aix52.exp: Run it.

15 years agobfd/
Richard Sandiford [Wed, 1 Apr 2009 20:04:28 +0000 (20:04 +0000)]
bfd/
* coff-rs6000.c (member_layout): New structure.
(archive_iterator): Likewise.
(member_layout_init): New function.
(archive_iterator_begin): Likewise.
(archive_iterator_next): Likewise.
(xcoff_write_armap_old): Use the new iterator functions.
(do_shared_object_padding): Delete.
(xcoff_write_armap_big): Use the new iterator functions.  Simplify
handling of arch_info.
(xcoff_write_archive_contents_old): Allocate arelt_data in the
first loop rather than the second.  Allocate a member header if
there isn't one, then work out the stat information and length
in the first loop too.  Use the new iterators for the second loop.
(xcoff_write_archive_contents_big): Likewise.

15 years agobfd/
Richard Sandiford [Wed, 1 Apr 2009 19:53:53 +0000 (19:53 +0000)]
bfd/
* bfd-in.h (bfd_xcoff_split_import_path): Declare.
(bfd_xcoff_set_archive_import_path): Likewise.
* bfd-in2.h: Regenerate.
* xcofflink.c: Include libiberty.h.
(xcoff_archive_info): New structure.
(xcoff_archive_info_hash): New function.
(xcoff_archive_info_eq): Likewise.
(xcoff_get_archive_info): Likewise.
(_bfd_xcoff_bfd_link_hash_table_create): Initialize archive_info.
(bfd_xcoff_split_import_path): New function.
(bfd_xcoff_set_archive_import_path): Likewise.
(xcoff_set_import_path): Move earlier in file.
(xcoff_link_add_dynamic_symbols): Set the import path of a non-archive
object to the the directory part of the bfd's filename.  Get the
import path and filename of an archive object from the archive's
xcoff_tdata, initializing it if necessary.  Update use of
import_file_id.
(bfd_link_input_bfd): Update use of import_file_id.
(xcoff_write_global_symbol): Likewise.

ld/
* emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
function.
(ld_${EMULATION_NAME}_emulation): Use it.

15 years agoinclude/coff/
Richard Sandiford [Wed, 1 Apr 2009 19:38:11 +0000 (19:38 +0000)]
include/coff/
* xcoff.h (xcoff_link_hash_table): Move to bfd/xcofflink.c.

bfd/
* xcofflink.c (xcoff_link_hash_table): Moved from include/coff/xcoff.h.

15 years agobfd/
Richard Sandiford [Wed, 1 Apr 2009 19:27:38 +0000 (19:27 +0000)]
bfd/
* xcofflink.c (xcoff_link_create_extra_sections): Don't create
a .loader section for relocatable links.
(xcoff_need_ldrel_p): New function.
(xcoff_mark): Use it.
(bfd_xcoff_link_count_reloc): Only count loader relocs if there's
a loader section.
(xcoff_build_ldsym): New function, split out from...
(xcoff_build_ldsyms): ...here.  Rename to...
(xcoff_post_gc_symbol): ...this.  Only export symbols, and only
call xcoff_build_ldsym, if there's a loader section.
(xcoff_build_loader_section): New function, extracted verbatim from...
(bfd_xcoff_size_dynamic_sections): ...here.  Only call it if
there's a loader section.  Only add an __rtinit loader symbol
if there's a loader section.  Update after above name change.
(xcoff_symbol_section, xcoff_create_ldrel): New functions.
(bfd_link_input_bfd): Use xcoff_need_ldrel_p, xcoff_symbol_section
and xcoff_create_ldrel.
(xcoff_write_global_symbol): Use xcoff_create_ldrel.
(xcoff_reloc_link_order): Likewise, but only call it if there's
a loader section.  Use xcoff_symbol_section.
(_bfd_xcoff_bfd_final_link): Only use fdinfo.ldrel and fdinfo.ldsym
if there's a loader section.

ld/testsuite/
* ld-powerpc/aix-rel-1.s, ld-powerpc/aix-rel-1.od: New test.
* ld-powerpc/aix52.exp: Run it.

15 years agobfd/
Richard Sandiford [Wed, 1 Apr 2009 19:05:53 +0000 (19:05 +0000)]
bfd/
* xcofflink.c (bfd_link_input_bfd): Fix buffer overrun.

15 years ago2009-04-01 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 1 Apr 2009 17:30:35 +0000 (17:30 +0000)]
2009-04-01  H.J. Lu  <hongjiu.lu@intel.com>

* common.h (EM_INTEL178): Removed.
(EM_INTEL179): Likewise.
(EM_ETPU): New.
(EM_SLE9X): Likewise.
(EM_INTEL181): Likewise.
(EM_INTEL182): Likewise.

15 years agobinutils/ChangeLog
Dave Korn [Wed, 1 Apr 2009 17:20:19 +0000 (17:20 +0000)]
binutils/ChangeLog

* dlltool.c (set_dll_name_from_def):  Accept new second arg that
indicates if we are building DLL or EXE, and use it to add a
default suffix to the output filename when none is already present.
(def_name):  Indicate we are building an EXE when calling it.
(def_library):  Indicate we are building a DLL when calling it.

ld/testsuite/ChangeLog

* ld-cygwin/exe-export.exp:  Add "-lkernel32" when linking test exe.
* ld-cygwin/testexe.c (testexe_main):  Indicate whether global_a
was set to correct final value using error return status.
(testexe_dummy):  Dummy function calls an import from kernel32.dll
to ensure it is mapped into the process space at runtime.

15 years ago2009-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
Ramana Radhakrishnan [Wed, 1 Apr 2009 16:49:32 +0000 (16:49 +0000)]
2009-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

* config/tc-arm.c (arm_validate_fix): Define only for OBJ_COFF.
(find_real_start): Likewise.
* config/tc-arm.h (TC_VALIDATE_FIX): Likewise

15 years ago2009-04-01 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Wed, 1 Apr 2009 15:45:13 +0000 (15:45 +0000)]
2009-04-01  Christophe Lyon  <christophe.lyon@st.com>

opcodes/
* arm-dis.c (print_insn): Print BE8 opcodes in little endianness.

ld/testsuite/
* ld-arm/arm-elf.exp: BE8 tests expect the same output as the
default ones.
* ld-arm/arm-be8.d: Print opcodes in little endian.
* ld-arm/farcall-thumb-arm-be8.d: Removed useless expected result.
* ld-arm/farcall-arm-arm-be8.d: Likewise.

15 years ago2009-04-01 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Wed, 1 Apr 2009 15:34:12 +0000 (15:34 +0000)]
2009-04-01  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (group_sections): Rewrite loops for better
readability.

15 years ago PR 9972
Nick Clifton [Wed, 1 Apr 2009 14:57:11 +0000 (14:57 +0000)]
    PR 9972
        * doc/binutils.texi (strings): Document the -V alias for the
        --version option.
        * strings.c (usage): Likewise.

15 years ago * config/tc-arm.c (do_nop): Generate v6k nops whenever possible.
Nathan Sidwell [Wed, 1 Apr 2009 14:02:57 +0000 (14:02 +0000)]
* config/tc-arm.c (do_nop): Generate v6k nops whenever possible.
(arm_handle_align): Generate v6k ARM, thumb2 wide & narrow nops
whenever possible.

testsuite/
* gas/arm/align.s, gas/arm/align.d: New.
* gas/arm/thumb32.d, gas/arm/arch6zk.d, gas/arm/arch6zk.s,
arm/thumb2_relax.d: Adjust for align changes.

15 years agogas/
Peter Bergner [Wed, 1 Apr 2009 01:41:07 +0000 (01:41 +0000)]
gas/
* config/tc-ppc.c (ppc_handle_align): Handle power7's group ending nop.

gas/testsuite/
* gas/ppc/power7.d ("ori", ".p2align"): Add tests for group ending nop.
* gas/ppc/power7.s: Likewise.
* gas/ppc/power6.d: Likewise.
* gas/ppc/power6.s: Likewise.

15 years agodaily update sid-snapshot-20090401
Alan Modra [Wed, 1 Apr 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago2009-03-31 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 31 Mar 2009 21:19:03 +0000 (21:19 +0000)]
2009-03-31  H.J. Lu  <hongjiu.lu@intel.com>

* common.h (EM_INTEL178): New.
(EM_INTEL179): Likewise.
(EM_INTEL180): Likewise.

15 years ago PR 9992
Nick Clifton [Tue, 31 Mar 2009 08:08:33 +0000 (08:08 +0000)]
    PR 9992
        * configure.in: Import Solaris specific largefile test from
        bfd/configure.in.
        * configure: Regenerate.

15 years ago * doc/internals.texi: Fix trivial syntax errors.
Dave Korn [Tue, 31 Mar 2009 04:57:48 +0000 (04:57 +0000)]
* doc/internals.texi:  Fix trivial syntax errors.

15 years ago* elflink.c (elf_link_input_bfd): Don't try to resolve complex
DJ Delorie [Tue, 31 Mar 2009 01:42:29 +0000 (01:42 +0000)]
* elflink.c (elf_link_input_bfd): Don't try to resolve complex
relocs when doing a relocatable link.

15 years agodaily update
Alan Modra [Tue, 31 Mar 2009 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago * ffsll.c (ffsll): Correct implementation.
Ian Lance Taylor [Mon, 30 Mar 2009 23:17:11 +0000 (23:17 +0000)]
* ffsll.c (ffsll): Correct implementation.

15 years agobinutils/
Richard Sandiford [Mon, 30 Mar 2009 20:39:43 +0000 (20:39 +0000)]
binutils/
* MAINTAINERS: Add self.

15 years agogas/testsuite:
Joseph Myers [Mon, 30 Mar 2009 14:41:31 +0000 (14:41 +0000)]
gas/testsuite:
* gas/arm/mapsecs.d, gas/arm/mapsecs.s: New.

opcodes:
* arm-dis.c (print_insn): Also check section matches in backwards
search for mapping symbol.

15 years agodaily update
Alan Modra [Mon, 30 Mar 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agodaily update
Alan Modra [Sun, 29 Mar 2009 00:00:06 +0000 (00:00 +0000)]
daily update

15 years ago * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not
Mark Mitchell [Sat, 28 Mar 2009 23:19:00 +0000 (23:19 +0000)]
* coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not
"ERROR:", in error messages.
* cpu-arm.c (bfd_arm_merge_machines): Likewise.
* elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise.
* elf32-arm.c (tag_cpu_arch_combine): Likewise.
(elf32_arm_merge_eabi_attributes): Likewise.
(elf32_arm_merge_private_bfd_data): Likewise.

15 years ago * ffsll.c: New file.
Ian Lance Taylor [Sat, 28 Mar 2009 05:22:30 +0000 (05:22 +0000)]
* ffsll.c: New file.
* configure.ac: Call AC_REPLACE_FUNCS on ffsll.
* gold.h (ffsll): Declare if HAVE_FFSLL is not defined.
* ftruncate.c (ftruncate): Declare before definition.
* mremap.c (mremap): Likewise.
* pread.c (pread): Likewise.
* configure, Makefile.in, config.in: Rebuild.

15 years agodaily update
Alan Modra [Sat, 28 Mar 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * mremap.c: New file.
Ian Lance Taylor [Fri, 27 Mar 2009 23:21:09 +0000 (23:21 +0000)]
* mremap.c: New file.
* configure.ac: Call AC_REPLACE_FUNCS on mremap.
* gold.h (MREMAP_MAYMOVE): Define if HAVE_MREMAP is not defined.
(mremap): Declare if HAVE_MREMAP is not defined.
* configure, Makefile.in, config.in: Rebuild.

15 years agomerge from gcc
DJ Delorie [Fri, 27 Mar 2009 23:07:30 +0000 (23:07 +0000)]
merge from gcc

15 years ago * powerpc.cc (Target_powerpc::check_non_pic): Assert that output is
Cary Coutant [Fri, 27 Mar 2009 18:19:09 +0000 (18:19 +0000)]
* powerpc.cc (Target_powerpc::check_non_pic): Assert that output is
position independent.
* sparc.cc (Target_sparc::check_non_pic): Likewise.
* x86_64.cc (Target_x86_64::check_non_pic): Likewise.

15 years ago * dwarf.c (display_debug_ranges): Add the base address to the
Nick Clifton [Fri, 27 Mar 2009 14:27:02 +0000 (14:27 +0000)]
    * dwarf.c (display_debug_ranges): Add the base address to the
        displayed values for 'Begin' and 'End'.

15 years ago * djunpack.bat: Use ".." quoting in Sed command, for the sake of cgen-snapshot-20090401
Eli Zaretskii [Fri, 27 Mar 2009 13:37:09 +0000 (13:37 +0000)]
* djunpack.bat: Use ".." quoting in Sed command, for the sake of
Windows builds of Sed.

15 years ago * section.c (bfd_get_section_contents): Detect and handle the case
Nick Clifton [Fri, 27 Mar 2009 11:38:30 +0000 (11:38 +0000)]
    * section.c (bfd_get_section_contents): Detect and handle the case
        where a section has the SEC_IN_MEMORY flag set but no actual
        contents allocated.

15 years agoRemove merge markers
Nick Clifton [Fri, 27 Mar 2009 08:26:18 +0000 (08:26 +0000)]
Remove merge markers

15 years ago2009-03-26 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 27 Mar 2009 00:28:32 +0000 (00:28 +0000)]
2009-03-26  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (get_valid_dis386): Abort on unhandled table.

15 years agodaily update
Alan Modra [Fri, 27 Mar 2009 00:00:10 +0000 (00:00 +0000)]
daily update

15 years ago2009-03-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
Ramana Radhakrishnan [Thu, 26 Mar 2009 13:59:28 +0000 (13:59 +0000)]
2009-03-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        * gas/arm/wince_inst.d: Convert to unified syntax.

15 years ago PR 6494
Alan Modra [Thu, 26 Mar 2009 12:23:52 +0000 (12:23 +0000)]
PR 6494
* elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO
p_filesz and p_memsz are equal.  Use p_memsz as the segment size.
(assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO
if we don't find matching PT_LOAD when copying.

15 years ago PR 10005
Alan Modra [Thu, 26 Mar 2009 02:41:12 +0000 (02:41 +0000)]
PR 10005
* config/tc-i386.c (reloc): Don't abort on lack of required
reloc type.

15 years agodaily update
Alan Modra [Thu, 26 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago2009-03-25 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 25 Mar 2009 19:49:25 +0000 (19:49 +0000)]
2009-03-25  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (parse_insn): Use default_arch on unsupported
arch.

15 years ago2009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
M R Swami Reddy [Wed, 25 Mar 2009 08:08:36 +0000 (08:08 +0000)]
2009-03-25  M R Swami Reddy <MR.Swami.Reddy@nsc.com>

        * elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of
        the reloc descriptions.

15 years ago2009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
M R Swami Reddy [Wed, 25 Mar 2009 08:05:57 +0000 (08:05 +0000)]
2009-03-25  M R Swami Reddy <MR.Swami.Reddy@nsc.com>

* elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of
the reloc descriptions.

15 years ago * ld-cris/tls-e-dtpoffd3.d, ld-cris/tls-e-tpoffcomm1.d,
Hans-Peter Nilsson [Wed, 25 Mar 2009 03:04:21 +0000 (03:04 +0000)]
* ld-cris/tls-e-dtpoffd3.d, ld-cris/tls-e-tpoffcomm1.d,
ld-cris/tls-e-tpoffcomm1.s: New tests.

15 years ago * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
Hans-Peter Nilsson [Wed, 25 Mar 2009 03:03:40 +0000 (03:03 +0000)]
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
<R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols.
<case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto.

15 years ago * readelf.c (process_file_header): Don't report a corrupt string
Alan Modra [Wed, 25 Mar 2009 01:37:18 +0000 (01:37 +0000)]
* readelf.c (process_file_header): Don't report a corrupt string
table index if it is zero.

15 years ago * symtab.h (needs_plt_entry): Check for unsatisfied reference from
Cary Coutant [Wed, 25 Mar 2009 01:34:25 +0000 (01:34 +0000)]
* symtab.h (needs_plt_entry): Check for unsatisfied reference from
an executable.
(needs_dynamic_reloc): Likewise.

15 years agodaily update
Alan Modra [Wed, 25 Mar 2009 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago * yyscript.y (file_cmd): Recognize EXTERN.
Ian Lance Taylor [Tue, 24 Mar 2009 19:08:37 +0000 (19:08 +0000)]
* yyscript.y (file_cmd): Recognize EXTERN.
(extern_name_list, extern_name_list_body): New nonterminals.
* script.cc (script_add_extern): Define.
* script-c.h (script_add_extern): Declare.

15 years ago * object.cc (is_elf_object): Define.
Ian Lance Taylor [Tue, 24 Mar 2009 18:42:10 +0000 (18:42 +0000)]
* object.cc (is_elf_object): Define.
* object.h (is_elf_object): Declare.
* archive.cc (Archive::get_elf_object_for_member): Call
is_elf_object.
* readsymc.cc (Read_symbols::do_read_symbols): Likewise.

15 years ago2009-03-24 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 24 Mar 2009 18:07:14 +0000 (18:07 +0000)]
2009-03-24  H.J. Lu  <hongjiu.lu@intel.com>

* cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static.
(bfd_i386_arch_intel_syntax): Likewise.
(i8086_arch): Likewise.
(bfd_x86_64_arch): Likewise.

15 years ago * output.cc (Output_file::map_anonymous): Define.
Ian Lance Taylor [Tue, 24 Mar 2009 18:04:26 +0000 (18:04 +0000)]
* output.cc (Output_file::map_anonymous): Define.
(Output_file::map): Use map_anonymous.  If the regular mmap fails,
try an anonymous one.  Report the size if the mmap fails.
* output.h (class Output_file): Declare map_anonymous.

15 years ago * target-select.cc (instantiate_target): Don't acquire the lock if
Ian Lance Taylor [Tue, 24 Mar 2009 17:32:43 +0000 (17:32 +0000)]
* target-select.cc (instantiate_target): Don't acquire the lock if
the instantiated_target_ field has already been set.

15 years ago * ld-cris/tls-commx.s, ld-cris/tls-dso-dtpoffd2.d,
Hans-Peter Nilsson [Tue, 24 Mar 2009 07:58:23 +0000 (07:58 +0000)]
* ld-cris/tls-commx.s, ld-cris/tls-dso-dtpoffd2.d,
ld-cris/tls-dso-dtpoffd4.d, ld-cris/tls-dtpoffdx.s,
ld-cris/tls-e-dtpoffd1.d: New tests.

15 years ago * elf32-cris.c (cris_elf_relocate_section): <case
Hans-Peter Nilsson [Tue, 24 Mar 2009 07:57:21 +0000 (07:57 +0000)]
* elf32-cris.c (cris_elf_relocate_section): <case
R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local
symbols for non-allocated sections.  Don't check whether to
generate R_CRIS_DTPMOD for non-allocated sections.
(cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't
handle relocation GC:ing if applied to non-allocated section.
(cris_elf_check_relocs): Similar.

15 years ago2009-03-23 Ian Lance Taylor <iant@google.com>
Ian Lance Taylor [Tue, 24 Mar 2009 04:50:32 +0000 (04:50 +0000)]
2009-03-23  Ian Lance Taylor  <iant@google.com>

* gold-threads.h (class Initialize_lock): Define.
* gold-threads.cc (class Initialize_lock_once): Define.
(initialize_lock_control): New static variable.
(initialize_lock_pointer): New static variable.
(initialize_lock_once): New static function.
(Initialize_lock::Initialize_lock): Define.
(Initialize_lock::initialize): Define.
* target-select.h: Include "gold-threads.h".
(class Target_selector): Add lock_ and initialize_lock_ fields.
Don't define instantiate_target, just declare it.
* target-select.cc (Target_selector::Target_selector): Initialize
new fields.
(Target_selector::instantiate_target): Define.
* descriptors.h: Include "gold-threads.h".
(class Descriptors): Add initialize_lock_ field.
* descriptors.cc (Descriptors::Descriptors): Initialize new
field.
(Descriptors::open): Use initialize_lock_ field
* errors.h (class Errors): Add initialize_lock_ field.
* errors.cc (Errors::Errors): Initialize new field.
(Errors::initialize_lock): Use initialize_lock_ field.
* powerpc.cc (class Target_selector_powerpc): Remove
instantiated_target_ field.  In do_recognize call
instantiate_target rather than do_instantiate_target.  In
do_instantiate_target just allocate a new target.
* sparc.cc (class Target_selector_sparc): Likewise.

15 years ago * ld-cris/tls-e-20.d, ld-cris/tls-e-20a.d, ld-cris/tls-e-21.d,
Hans-Peter Nilsson [Tue, 24 Mar 2009 03:34:05 +0000 (03:34 +0000)]
* ld-cris/tls-e-20.d, ld-cris/tls-e-20a.d, ld-cris/tls-e-21.d,
ld-cris/tls-e-80.d, ld-cris/tls-gd-3.d, ld-cris/tls-gd-3h.d,
ld-cris/tls-global-74.d, ld-cris/tls-ldgde-14.d,
ld-cris/tls-ldgde-15.d, ld-cris/tls-legd-16.d,
ld-cris/tls-legd-17.d, ld-cris/tls-local-57.d,
ld-cris/tls-local-58.d, ld-cris/tls-local-59.d: Adjust for BFD
change in link-time known GOT contents for GD relocations.

15 years ago * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
Hans-Peter Nilsson [Tue, 24 Mar 2009 03:32:31 +0000 (03:32 +0000)]
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
<R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size
when emitting a known TP offset in the GOT.

15 years ago2009-03-23 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 24 Mar 2009 01:04:25 +0000 (01:04 +0000)]
2009-03-23  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/9966
* listing.c (listing_newline): Properly handle `\\"' and ';'.

* read.c (is_end_of_line): Update comments for line separator.
(read_begin): Set line separator in is_end_of_line to 2.

15 years ago2009-03-23 Ian Lance Taylor <iant@google.com>
Ian Lance Taylor [Tue, 24 Mar 2009 00:31:29 +0000 (00:31 +0000)]
2009-03-23  Ian Lance Taylor  <iant@google.com>

* freebsd.h: New file.
* i386.cc: Include "freebsd.h".
(Target_i386): Derive from Target_freebsd rather than
Sized_target.
(Target_selector_i386): Derive from Target_selector_freebsd rather
than Target_selector.
* x86_64.cc: Include "freebsd.h".
(Target_x86_64): Derive from Target_freebsd rather than
Sized_target.
(Target_selector_x86_64): Derive from Target_selector_freebsd
rather than Target_selector.
* target.h (class Target): Add adjust_elf_header and
do_adjust_elf_header.
* output.cc (Output_file_header:: do_sized_write): Call target
adjust_elf_header routine.
* configure.tgt: Set targ_osabi.
* configure.ac: Define GOLD_DEFAULT_OSABI.
* parameters.cc (Parameters::default_target): Pass
GOLD_DEFAULT_OSABI to select_target.
* target-select.h (class Target_selector): Make instantiate_target
protected rather than private.
* Makefile.am (HFILES): Add freebsd.h.
* configure, Makefile.in, config.in: Rebuild.

15 years agodaily update
Alan Modra [Tue, 24 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years agomerge from gcc
DJ Delorie [Mon, 23 Mar 2009 22:05:12 +0000 (22:05 +0000)]
merge from gcc

15 years ago * merge.cc (do_add_input_section): Correct pend value. Change
Ian Lance Taylor [Mon, 23 Mar 2009 21:15:08 +0000 (21:15 +0000)]
* merge.cc (do_add_input_section): Correct pend value.  Change
message about last entry not being null terminated from error to
warning.

15 years ago * elf64-ppc.c (synthetic_opd): Delete.
Alan Modra [Mon, 23 Mar 2009 13:35:46 +0000 (13:35 +0000)]
* elf64-ppc.c (synthetic_opd): Delete.
(compare_symbols): Look for .opd name rather than section match.
(ppc64_elf_get_synthetic_symtab): Likewise.

15 years agodaily update
Alan Modra [Mon, 23 Mar 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agodaily update
Alan Modra [Sun, 22 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * elf32-ppc.c (is_pic_glink_stub): Delete.
Alan Modra [Sat, 21 Mar 2009 02:35:27 +0000 (02:35 +0000)]
* elf32-ppc.c (is_pic_glink_stub): Delete.
(is_nonpic_glink_stub): New function.
(ppc_elf_get_synthetic_symtab): Check for last non-pic stub rather
than first pic one.
(struct ppc_elf_link_hash_table <glink_pltresolve>): Comment fix.

15 years agodaily update
Alan Modra [Sat, 21 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years agoinclude/elf:
Ian Lance Taylor [Fri, 20 Mar 2009 23:37:51 +0000 (23:37 +0000)]
include/elf:
* common.h (SHT_GNU_INCREMENTAL_INPUTS): Define.
elfcpp:
* elfcpp.h (SHT_GNU_INCREMENTAL_INPUTS): Define.
gold:
* incremental.cc: New file.
* Makefile.am (CCFILES): Add incremental.cc.
* Makefile.in: Rebuild.

15 years agold/
H.J. Lu [Fri, 20 Mar 2009 17:39:04 +0000 (17:39 +0000)]
ld/

2009-03-20  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/9970
* ldlang.c (lang_end): Warn missing entry symbol for -pie.

ld/testsuite/

2009-03-20  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/9970
* ld-pie/pie.exp: Use -fpie to compile.  Run *.d tests.

* ld-pie/start.d: New.
* ld-pie/start.s: Likewise.

15 years ago2009-03-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
Andreas Krebbel [Fri, 20 Mar 2009 12:57:15 +0000 (12:57 +0000)]
2009-03-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
    Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_*
        macros for visibilty and locality checks.
(elf_s390_adjust_dynamic_symbol): Likewise.
(allocate_dynrelocs): Likewise.
(elf_s390_relocate_section): Likewise.
(elf_s390_finish_dynamic_symbol): Likewise.
* elf64-s390.c (elf_s390_check_relocs): Likewise.
(elf_s390_adjust_dynamic_symbol): Likewise.
(allocate_dynrelocs): Likewise.
(elf_s390_relocate_section): Likewise.
(elf_s390_finish_dynamic_symbol): Likewise.

15 years ago2009-03-19 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 20 Mar 2009 00:05:37 +0000 (00:05 +0000)]
2009-03-19  H.J. Lu  <hongjiu.lu@intel.com>

* dwarf.c (dwarf_regnames): Moved before frame_need_space.
(dwarf_regnames_count): Likewise.
(frame_need_space): Return int.
(display_debug_frames): Check invalid registers.

15 years agodaily update
Alan Modra [Fri, 20 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago2009-03-19 Paul Pluzhnikov <ppluzhnikov@google.com>
Paul Pluzhnikov [Thu, 19 Mar 2009 19:39:32 +0000 (19:39 +0000)]
2009-03-19  Paul Pluzhnikov  <ppluzhnikov@google.com>

* layout.cc (Layout::output_section_name): Preserve names
of '.note.' sections.

15 years ago * descriptors.cc (Descriptors::open): Check that the options are
Ian Lance Taylor [Thu, 19 Mar 2009 19:02:53 +0000 (19:02 +0000)]
* descriptors.cc (Descriptors::open): Check that the options are
valid before using them.

15 years ago2009-03-19 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 19 Mar 2009 14:42:52 +0000 (14:42 +0000)]
2009-03-19  H.J. Lu  <hongjiu.lu@intel.com>

* readelf.c (debug_apply_relocations): Check relocations
against STT_SECTION symbol.

15 years ago2009-03-19 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Thu, 19 Mar 2009 11:02:09 +0000 (11:02 +0000)]
2009-03-19  Kai Tietz  <kai.tietz@onevision.com>

        * bfd-in2.h: Regenerated.
        * coffcode.h (sec_to_styp_flags): For pe-coff add SEC_READONLY
        for debugging sections and map memory read/write dependent on
        SEC_COFF_NOREAD.
        (styp_to_sec_flags): Set SEC_COFF_NOREAD for sections
        without memory read flags set.
        * section.c: Add SEC_COFF_NOREAD to section flags.

15 years ago * config/tc-sparc.c (md_parse_option): If the user gives
David S. Miller [Thu, 19 Mar 2009 10:41:46 +0000 (10:41 +0000)]
* config/tc-sparc.c (md_parse_option): If the user gives
us '--64' make sure max_architecture is at least V9.

15 years ago* elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long
Andreas Schwab [Thu, 19 Mar 2009 10:40:06 +0000 (10:40 +0000)]
* elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long
for format string.

15 years agobfd/
Alan Modra [Thu, 19 Mar 2009 07:04:12 +0000 (07:04 +0000)]
bfd/
* elf32-spu.c (spu_elf_find_overlays): Separate error return from
"no overlays" return.  If there are overlays, create overlay
manager entry symbols here, so that..
(spu_elf_build_stubs): ..we don't need to set them up here.
Simplify entry symbol tests.
* elf32-spu.h (spu_elf_find_overlays): Update prototype.
ld/
* emultempl/spuelf.em (spu_before_allocation): Report errors from
spu_elf_find_overlays.

15 years ago * script-sections.h: Include <list>.
Ian Lance Taylor [Thu, 19 Mar 2009 05:51:49 +0000 (05:51 +0000)]
* script-sections.h: Include <list>.
(class Script_sections): Change Sections_elements from std::vector
to std::list.  Typedef public Elements_iterator.  Add
orphan_section_placement_, data_segment_align_start_, and
saw_data_segment_align_ fields.  Remove data_segment_align_index_
field.
* script-sections.cc (class Orphan_section_placement): New class.
(class Sections_element): Add virtual functions is_relro and
orphan_section_init.  Remove virtual function place_orphan_here.
(class Output_section_definition): Add is_relro and
orphan_section_init.  Remove place_orphan_here.
(class Orphan_output_section): Likewise.
(Script_sections::Script_sections): Update for field changes.
(Script_sections::data_segment_align): Set saw_data_segment_align_
and data_segment_align_start_, not data_segment_align_index.
(Script_sections::data_segment_relro_end): Check
saw_data_segment_align_.  Use data_segment_align_start_ rather
than data_segment_align_index_.
(Script_sections::place_orphan): Rewrite to use
Orphan_section_placement.

15 years ago2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 19 Mar 2009 02:38:53 +0000 (02:38 +0000)]
2009-03-18  H.J. Lu  <hongjiu.lu@intel.com>

* readelf.c (debug_apply_relocations): Allow relocations
against function symbols.

15 years agodaily update
Alan Modra [Thu, 19 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * configure: Rebuild.
Tom Tromey [Wed, 18 Mar 2009 23:33:26 +0000 (23:33 +0000)]
* configure: Rebuild.
* configure.ac (host_libs): Add libiconv.
* Makefile.in: Rebuild.
* Makefile.def (host_modules): Add libiconv.
(configure-gdb, all-gdb): Depend on libiconv.