OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
15 years ago * Makefile.am (spu_ovl.o): Merge rule into..
Alan Modra [Sun, 3 Aug 2008 03:26:03 +0000 (03:26 +0000)]
* Makefile.am (spu_ovl.o): Merge rule into..
(spu_ovl.o_c): ..this one.  Only run cpp for spu target.
* Makefile.in: Regenerate.

15 years agodaily update
Alan Modra [Sun, 3 Aug 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * tcl.m4 (SC_PATH_TCLCONFIG): Add some simple logic to deal
Keith Seitz [Sat, 2 Aug 2008 21:20:13 +0000 (21:20 +0000)]
    * tcl.m4 (SC_PATH_TCLCONFIG): Add some simple logic to deal
        with cygwin.
        (SC_PATH_TKCONFIG): Likewise.

15 years ago Include the spu_ovl ASCII form in the repository files.
Jan Kratochvil [Sat, 2 Aug 2008 16:25:44 +0000 (16:25 +0000)]
Include the spu_ovl ASCII form in the repository files.
* emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'.
* Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'.
($(srcdir)/emultempl/spu_ovl.o_c): New target.
($(srcdir)/emultempl/spu_ovl.o): Rename to...
(spu_ovl.o): ...this one.
* Makefile.in: Regenerate.
* emultempl/spu_ovl.o_c: New file.
* emultempl/spu_ovl.o: File removed.

15 years ago * elf32-spu.c (mark_overlay_section): Move code calculating
Alan Modra [Sat, 2 Aug 2008 06:44:43 +0000 (06:44 +0000)]
* elf32-spu.c (mark_overlay_section): Move code calculating
max_overlay_size to correct block.
(spu_elf_auto_overlay): Don't use %x in einfo error message.

15 years agogas/
Peter Bergner [Sat, 2 Aug 2008 04:38:51 +0000 (04:38 +0000)]
gas/
* config/tc-ppc.c (parse_cpu): Rename altivec_or_spe to retain_flags.
Handle -mvsx and -mpower7.
(md_show_usage): Document -mpower7 and -mvsx.
* doc/as.texinfo (Target PowerPC): Document -mvsx.
* doc/c-ppc.texi (PowerPC-Opts): Document -mvsx and -mpower7.

gas/testsuite/
* gas/ppc/power7.d: New.
* gas/ppc/power7.s: Likewise.
* gas/ppc/ppc.exp: Run power7 test.

include/opcode/
* ppc.h (PPC_OPCODE_VSX, PPC_OPERAND_VSR): New.

opcodes/
* ppc-dis.c (powerpc_init_dialect): Handle power7 and vsx options.
(print_insn_powerpc): Prepend 'vs' when printing VSX registers.
(print_ppc_disassembler_options): Document -Mpower7 and -Mvsx.
* ppc-opc.c (insert_xt6): New static function.
(extract_xt6): Likewise.
(insert_xa6): Likewise.
(extract_xa6: Likewise.
(insert_xb6): Likewise.
(extract_xb6): Likewise.
(insert_xb6s): Likewise.
(extract_xb6s): Likewise.
(XS6, XT6, XA6, XB6, XB6S, DM, XX3, XX3DM, XX1_MASK, XX3_MASK,
XX3DM_MASK, PPCVSX): New.
(powerpc_opcodes): Add opcodes "lxvd2x", "lxvd2ux", "stxvd2x",
"stxvd2ux", "xxmrghd", "xxmrgld", "xxpermdi", "xvmovdp", "xvcpsgndp".

15 years agodaily update
Alan Modra [Sat, 2 Aug 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agoMissed ChangeLog entry for last change.
Pedro Alves [Fri, 1 Aug 2008 16:53:56 +0000 (16:53 +0000)]
Missed ChangeLog entry for last change.

* Makefile.am ($(srcdir)/ia64-asmtab.c): Remove line continuation.
* Makefile.in: Regenerate.

15 years ago * Makefile.am ($(srcdir)/ia64-asmtab.c): Remove line continuation.
Pedro Alves [Fri, 1 Aug 2008 14:35:06 +0000 (14:35 +0000)]
* Makefile.am ($(srcdir)/ia64-asmtab.c): Remove line continuation.
* Makefile.in: Regenerate.

15 years agobinutils/
H.J. Lu [Fri, 1 Aug 2008 14:21:30 +0000 (14:21 +0000)]
binutils/

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

* dwarf.c (dwarf_regnames_i386): Remove AVX registers.
(dwarf_regnames_x86_64): Likewise.

gas/testsuite/

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

* gas/cfi/cfi-i386.s: Remove tests for AVX register maps.
* gas/cfi/cfi-x86_64.s: Likewise.

* gas/cfi/cfi-i386.d: Updated.
* gas/cfi/cfi-x86_64.d: Likewise.

opcodes/

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

* i386-reg.tbl: Use Dw2Inval on AVX registers.
* i386-tbl.h: Regenerated.

15 years ago * elfcore.h (elf_core_file_p): Ensure we have a backend match
Alan Modra [Fri, 1 Aug 2008 12:21:28 +0000 (12:21 +0000)]
* elfcore.h (elf_core_file_p): Ensure we have a backend match
with the correct arch size before rejecting the generic fallback.
* elfcode.h (elf_object_p): Likewise.  Ensure arch size matches
before accepting a target.

15 years ago * elf.c (rewrite_elf_program_header): Don't wrap p_paddr to
Alan Modra [Fri, 1 Aug 2008 06:39:04 +0000 (06:39 +0000)]
* elf.c (rewrite_elf_program_header): Don't wrap p_paddr to
include file or program headers.

15 years agogas/
Peter Bergner [Fri, 1 Aug 2008 02:44:12 +0000 (02:44 +0000)]
gas/
* config/tc-ppc.c (parse_cpu) <power6>: Accept Altivec instructions.
<cell>: Likewise.

gas/testsuite/
* gas/ppc/cell.s: Add altivec instructions.
* gas/ppc/cell.d: Update expected output.
* gas/ppc/power6.d: New.
* gas/ppc/power6.s: Likewise.
* gas/ppc/ppc.exp (powerpc64*-*-*): Move cell from here to...
(powerpc*-*-*): Here.  Run power6 test.

15 years agodaily update
Alan Modra [Fri, 1 Aug 2008 00:00:06 +0000 (00:00 +0000)]
daily update

15 years agomerge from gcc
DJ Delorie [Thu, 31 Jul 2008 22:01:30 +0000 (22:01 +0000)]
merge from gcc

15 years agomerge from gcc
DJ Delorie [Thu, 31 Jul 2008 19:06:35 +0000 (19:06 +0000)]
merge from gcc

16 years ago2008-07-31 Takashi Ono <t_ono@hkfreak.net>
Danny Smith [Thu, 31 Jul 2008 07:27:52 +0000 (07:27 +0000)]
2008-07-31  Takashi Ono  <t_ono@hkfreak.net>

* pe-dll.c (generate_relocs): Don't generate relocs for
undefined weak symbols.

16 years ago * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
Jan Kratochvil [Thu, 31 Jul 2008 05:27:54 +0000 (05:27 +0000)]
* emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.

16 years agodaily update
Alan Modra [Thu, 31 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago2008-07-30 Paolo Bonzini <bonzini@gnu.org> cgen-snapshot-20080801
Paolo Bonzini [Wed, 30 Jul 2008 15:03:57 +0000 (15:03 +0000)]
2008-07-30 Paolo Bonzini  <bonzini@gnu.org>

Sync with gcc:
2008-07-30 Paolo Bonzini  <bonzini@gnu.org>

        * configure.ac: Add makefile fragments for hpux.
        * Makefile.def (flags_to_pass): Add ADA_CFLAGS.
        * Makefile.tpl (HOST_EXPORTS): Pass ADA_CFLAGS.
        * configure: Regenerate.
        * Makefile.in: Regenerate.

2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

        * Makefile.tpl ($(srcdir)/configure): Update dependencies.
        * Makefile.in: Regenerate.
        * configure: Regenerate.

config:
2008-07-30  Paolo Bonzini  <bonzini@gnu.org>

* mh-pa: New, from gcc/config/pa/x-ada.
* mh-pa-hpux10: New, from gcc/config/pa/x-ada-hpux10.

2008-06-11  Bernhard Fischer  <aldot@gcc.gnu.org>

        * tls.m4: Fix typos.

16 years ago * ld-elf/sec-to-seg.exp: New test: Checks the assignment of
Nick Clifton [Wed, 30 Jul 2008 10:28:31 +0000 (10:28 +0000)]
    * ld-elf/sec-to-seg.exp: New test: Checks the assignment of
        sections to segments.
        * ld-elf/sec-to-seg1.s: Test source file.
        * ld-elf/sec-to-seg2.s: Test source file.
        * ld-elf/sec-to-seg-script-same-page.t: Test linker script.
        * ld-elf/sec-to-seg-script-adjoining-pages.t: Test linker script.
        * ld-elf/sec-to-seg-script-disjoint-pages.t: Test linker script.

16 years agoinclude/opcode/
Alan Modra [Wed, 30 Jul 2008 06:29:22 +0000 (06:29 +0000)]
include/opcode/
* ppc.h (PPC_OPCODE_405): Define.
(PPC_OPERAND_FSL, PPC_OPERAND_FCR, PPC_OPERAND_UDI): Define.
gas/
* config/tc-ppc.c (parse_cpu): Separate handling of -m403/405.
(md_show_usage): Likewise.
opcodes/
* ppc-dis.c (print_insn_powerpc): Disassemble FSL/FCR/UDI fields.
* ppc-opc.c (powerpc_operands): Add Xilinx APU related operands.
(insert_sprg, PPC405): Use PPC_OPCODE_405.
(powerpc_opcodes): Add Xilinx APU related opcodes.

16 years agoSilence gcc printf warnings
Alan Modra [Wed, 30 Jul 2008 04:34:58 +0000 (04:34 +0000)]
Silence gcc printf warnings

16 years agodaily update
Alan Modra [Wed, 30 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago * script.cc (Script_options::finalize_symbols): Finalize SECTIONS
Ian Lance Taylor [Tue, 29 Jul 2008 22:58:03 +0000 (22:58 +0000)]
* script.cc (Script_options::finalize_symbols): Finalize SECTIONS
symbols before other symbols.
* testsuite/script_test_2.cc (test_addr): Declare.
(test_addr_alias): Declare.
(main): Check that test_addr and test_addr_alias have the right
values.
* testsuite/script_test_2.t: Define test_addr_alias and
test_addr.

16 years agodaily update
Alan Modra [Tue, 29 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * elfxx-mips.c (mips_elf_calculate_relocation): Avoid generating
Daniel Jacobowitz [Mon, 28 Jul 2008 22:14:53 +0000 (22:14 +0000)]
* elfxx-mips.c (mips_elf_calculate_relocation): Avoid generating
relocations for undefined weak symbols with non-default visibility.
(_bfd_mips_elf_check_relocs): Use possibly_dynamic_relocs for
global symbols in shared libraries.
(allocate_dynrelocs): New function.
(_bfd_mips_elf_adjust_dynamic_symbol): Do not handle
possibly_dynamic_relocs here.
(_bfd_mips_elf_size_dynamic_sections): Call allocate_dynrelocs.

16 years agobfd/ChangeLog:
Alexandre Oliva [Mon, 28 Jul 2008 18:07:05 +0000 (18:07 +0000)]
bfd/ChangeLog:
* elf32-i386.c (struct elf_i386_link_hash_table): Added field
tls_module_base.
(elf_i386_link_hash_table_create): Initialize it.
(elf_i386_always_size_sections): Set it.
(set_tls_module_base): New.
(elf_i386_relocate_sections): Call it.
* elf64-x86-64.c (struct elf64_x86_64_link_hash_table): Added
field tls_module_base.
(elf64_x86_64_link_hash_table_create): Initialize it.
(elf64_x86_64_always_size_sections): Set it.
(set_tls_module_base): New.
(elf64_x86_64_relocate_sections): Call it.
Reported by Cary Coutant <ccoutant@google.com>
ld/testsuite/ChangeLog:
* ld-i386/tlsbindesc.dd: Adjust incorrect expectations for LD to
LE relaxation.
* ld-x86-64/tlsbindesc.dd: Likewise.
* ld-i386/tlsbindesc.rd: Adjust address of _TLS_MODULE_BASE_.
* ld-x86-64/tlsbindesc.rd: Likewise.
Reported by Cary Coutant <ccoutant@google.com>

16 years agowarning fix
Alan Modra [Mon, 28 Jul 2008 06:48:00 +0000 (06:48 +0000)]
warning fix

16 years ago * elf32-arm.c (arm_map_one_stub): Declare variables at beginning
Alan Modra [Mon, 28 Jul 2008 06:46:31 +0000 (06:46 +0000)]
* elf32-arm.c (arm_map_one_stub): Declare variables at beginning
of block.
* elf32-avr.c (get_local_syms): Likewise.

16 years ago * readelf.c (print_vma): Typo fix.
Alan Modra [Mon, 28 Jul 2008 04:14:40 +0000 (04:14 +0000)]
* readelf.c (print_vma): Typo fix.

16 years agobfd/
Alan Modra [Mon, 28 Jul 2008 04:07:32 +0000 (04:07 +0000)]
bfd/
PR 6769
* bfd-in.h (BFD_VMA_FMT): Define.
(printf_vma, sprintf_vma): Use the above.
(_bfd_int64_low, _bfd_int64_high): Delete.
* bfd-in2.h: Regenerate.
binutils/
PR 6769
* readelf.c (print_dec_vma, print_hex_vma): Delete.
(print_vma): Use BFD_VMA_FMT.
* size.c (size_number, rprint_number): Likewise.

16 years agodaily update
Alan Modra [Mon, 28 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * ld-gc/gc.exp (test_gc): xfail powerpc64.
Alan Modra [Sun, 27 Jul 2008 04:40:58 +0000 (04:40 +0000)]
* ld-gc/gc.exp (test_gc): xfail powerpc64.

16 years ago * elf.c (_bfd_elf_make_section_from_shdr): Ignore return from
Alan Modra [Sun, 27 Jul 2008 03:43:51 +0000 (03:43 +0000)]
* elf.c (_bfd_elf_make_section_from_shdr): Ignore return from
elf_parse_notes.  Use bfd_malloc_and_get_section.
(elf_parse_notes): Validate note namesz and descsz.

16 years agodaily update
Alan Modra [Sun, 27 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years agomissed from last commit
Alan Modra [Sat, 26 Jul 2008 14:30:39 +0000 (14:30 +0000)]
missed from last commit

16 years agoSupport PowerPC single-precision float.
Alan Modra [Sat, 26 Jul 2008 13:10:48 +0000 (13:10 +0000)]
Support PowerPC single-precision float.

16 years ago * ld-scripts/include.exp: Don't run test for aout.
Alan Modra [Sat, 26 Jul 2008 01:23:37 +0000 (01:23 +0000)]
* ld-scripts/include.exp: Don't run test for aout.
* ld-scripts/include.s: Use .fill rather than .4byte.
* ld-scripts/include-1.d: Adjust.

16 years ago * binutils-all/objdump.exp: Run compressed debug test only for ELF.
Alan Modra [Sat, 26 Jul 2008 01:15:42 +0000 (01:15 +0000)]
* binutils-all/objdump.exp: Run compressed debug test only for ELF.

16 years agodaily update
Alan Modra [Sat, 26 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago * acinclude.m4: Remove libide, libgui, and all the other Tcl
Keith Seitz [Fri, 25 Jul 2008 18:00:17 +0000 (18:00 +0000)]
    * acinclude.m4: Remove libide, libgui, and all the other Tcl
        functions.
        * tcl.m4: New file.

16 years ago PR 5990
Ian Lance Taylor [Fri, 25 Jul 2008 04:25:49 +0000 (04:25 +0000)]
PR 5990
* descriptors.cc: New file.
* descriptors.h: New file.
* gold-threads.h (class Hold_optional_lock): New class.
* fileread.cc: Include "descriptors.h".
(File_read::~File_read): Release descriptor rather than closing
it.
(File_read::open) [file]: Call open_descriptor rather than open.
Set is_descriptor_opened_.
(File_read::open) [memory]: Assert that descriptor is not open.
(File_read::reopen_descriptor): New function.
(File_read::release): Release descriptor.
(File_read::do_read): Make non-const.  Reopen descriptor.
(File_read::read): Make non-const.
(File_read::make_view): Reopen descriptor.
(File_read::do_readv): Likewise.
* fileread.h (class File_read): Add is_descriptor_opened_ field.
Update declarations.
* layout.cc: Include "descriptors.h".
(Layout::create_build_id): Use open_descriptor rather than open.
* output.cc: Include "descriptors.h".
(Output_file::open): Use open_descriptor rather than open.
* archive.cc (Archive::const_iterator): Change Archive to be
non-const.
(Archive::begin, Archive::end): Make non-const.
(Archive::count_members): Likewise.
* archive.h (class Archive): Update declarations.
* object.h (Object::read): Make non-const.
* Makefile.am (CCFILES): Add descriptors.cc.
(HFILES): Add descriptors.h.
* Makefile.in: Rebuild.

16 years agodaily update
Alan Modra [Fri, 25 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago PR 6716
Ian Lance Taylor [Thu, 24 Jul 2008 21:45:50 +0000 (21:45 +0000)]
PR 6716
* gold.h: Always include <clocale>.  Add Solaris workarounds
following code in binutils/sysdep.h.

16 years ago PR 6048
Ian Lance Taylor [Thu, 24 Jul 2008 21:23:09 +0000 (21:23 +0000)]
PR 6048
* ehframe.cc (Eh_frame::add_ehframe_input_section): Check whether
this->eh_frame_hdr_ is NULL before using it.

16 years ago * dynobj.cc (Versions::Versions): Update comment.
Ian Lance Taylor [Thu, 24 Jul 2008 21:21:38 +0000 (21:21 +0000)]
* dynobj.cc (Versions::Versions): Update comment.

16 years ago2008-07-24 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 24 Jul 2008 18:51:33 +0000 (18:51 +0000)]
2008-07-24  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/nops-1.d: Add -mtune=generic32.
* gas/i386/nops-2.d: Likewise.
* gas/i386/nops-3.d: Likewise.

* gas/i386/x86-64-nops-1.d: Add -mtune=generic64.
* gas/i386/x86-64-nops-2.d: Likewise.
* gas/i386/x86-64-nops-3.d: Likewise.
* gas/i386/x86-64-nops-4.d: Likewise.

16 years ago * elf32-mips.c (elf_backend_write_section): Define.
Daniel Jacobowitz [Thu, 24 Jul 2008 16:17:42 +0000 (16:17 +0000)]
* elf32-mips.c (elf_backend_write_section): Define.

16 years agomerge from gcc
DJ Delorie [Thu, 24 Jul 2008 13:51:49 +0000 (13:51 +0000)]
merge from gcc

16 years ago * elf.c (_bfd_elf_map_sections_to_segments): Catch off by one
Nick Clifton [Thu, 24 Jul 2008 07:51:25 +0000 (07:51 +0000)]
    * elf.c (_bfd_elf_map_sections_to_segments): Catch off by one
        error assigning sections to segments.

16 years ago * dynobj.cc (Versions::Versions): If there is an soname, use it as
Ian Lance Taylor [Thu, 24 Jul 2008 07:26:27 +0000 (07:26 +0000)]
* dynobj.cc (Versions::Versions): If there is an soname, use it as
the base version name.

16 years ago * config/bfin-parse.y (asm_1): Error if plain symbol is used
Jie Zhang [Thu, 24 Jul 2008 07:25:13 +0000 (07:25 +0000)]
* config/bfin-parse.y (asm_1): Error if plain symbol is used
as load/store offset.

16 years ago * stringpool.cc (Stringpool_template::add_with_length): Set key to
Ian Lance Taylor [Thu, 24 Jul 2008 07:23:20 +0000 (07:23 +0000)]
* stringpool.cc (Stringpool_template::add_with_length): Set key to
array size plus one.
(Stringpool_template::set_string_offsets): Subtract one from key
before using it as an array index.
(Stringpool_template::get_offset_with_length): Likewise.
(Stringpool_template::write_to_buffer): Likewise.
* stringpool.h (Stringpool_template::get_offset_from_key):
Likewise.

16 years ago PR 6658
Ian Lance Taylor [Thu, 24 Jul 2008 01:24:50 +0000 (01:24 +0000)]
PR 6658
* object.h (Merged_symbol_value::value): Do our best to handle a
negative addend.

16 years agodaily update
Alan Modra [Thu, 24 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago PR 6647
Ian Lance Taylor [Wed, 23 Jul 2008 23:44:02 +0000 (23:44 +0000)]
PR 6647
* script.cc (Version_script_info::get_versions): Don't add empty
version tag to return value.
(Version_script_info::get_symbol_version_helper): Change return
type to bool.  Add pversion parameter.  Change all callers.
(script_register_vers_node): Don't require a non-NULL tag.
* script.h (class Version_script_info): Update declarations.
(Version_script_info::get_symbol_version): Change return type to
bool.  Add version parameter.  Change all callers.
* symtab.cc (Sized_symbol::add_from_relobj): Rework version
handling.  Handle an empty version from a version script.
(Symbol_table::define_special_symbol): Likewise.
* testsuite/ver_test_10.script: New file.
* testsuite/ver_test_10.sh: New file.
* testsuite/Makefile.am (check_SCRIPTS): Add ver_test_10.sh.
(check_DATA): Add ver_test_10.syms.
(ver_test_10.syms, ver_test_10.so): New target.
* testsuite/Makefile.in: Rebuild.

16 years ago2008-07-23 Simon Baldwin <simonb@google.com>
Chris Demetriou [Wed, 23 Jul 2008 16:19:59 +0000 (16:19 +0000)]
2008-07-23  Simon Baldwin  <simonb@google.com>

        * symtab.cc (Symbol_table::sized_write_symbol): Only set st_size
        to zero for undefined symbols from dynamic libraries.

16 years ago * symtab.cc (Symbol_table::resolve): Remove version parameter.
Ian Lance Taylor [Wed, 23 Jul 2008 14:36:09 +0000 (14:36 +0000)]
* symtab.cc (Symbol_table::resolve): Remove version parameter.
Change all callers.
* symtab.h (class Symbol_table): Update declaration.
* testsuite/ver_test_9.cc: New file.
* testsuite/Makefile.am (check_PROGRAMS): Add ver_test_9.
(ver_test_9_SOURCES, ver_test_9_DEPENDENCIES): Define.
(ver_test_9_LDFLAGS, ver_test_9_LDADD): Define.
(ver_test_9.so, ver_test_9.o): New targets.
* testsuite/Makefile.in: Rebuild.

16 years agodaily update
Alan Modra [Wed, 23 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * options.h (class General_options): Define --check-sections.
Ian Lance Taylor [Tue, 22 Jul 2008 23:55:24 +0000 (23:55 +0000)]
* options.h (class General_options): Define --check-sections.
* layout.cc (Layout::set_segment_offsets): Handle
--check-sections.

16 years ago * options.h (class General_options): Define -n/--nmagic and
Ian Lance Taylor [Tue, 22 Jul 2008 23:01:20 +0000 (23:01 +0000)]
* options.h (class General_options): Define -n/--nmagic and
-N/--omagic.
* options.cc (General_options::finalize): For -n/--nmagic or
-N/--omagic, set -static.
* layout.cc (Layout::attach_allocated_section_to_segment): If
-N/--omagic, don't put read-only and read-write sections in
different segments.
(Layout::find_first_load_seg): If -N/--omagic, don't insist on
finding a read-only segment.
(Layout::set_segment_offsets): If -N/--omagic or -n/--nmagic,
don't set the minimum segment alignment to the common page size,
and don't set the file offset to the address modulo the page size.
* script-sections.cc (Script_sections::create_segments): If
-n/--omagic, don't put read-only and read-write sections in
different segments.

16 years ago * cref.cc: New file.
Ian Lance Taylor [Tue, 22 Jul 2008 22:08:43 +0000 (22:08 +0000)]
* cref.cc: New file.
* cref.h: New file.
* options.h (class General_options): Add --print-symbol-counts.
* main.cc (main): Issue defined symbol report if requested.
* archive.cc (Archive::interpret_header): Make into a const member
function.
(Archive::add_symbols): Call Input_objects::archive_start and
archive_stop.
(Archive::const_iterator): Define new class.
(Archive::begin, Archive::end): New functions.
(Archive::include_all_members): Rewrite to use iterator.
(Archive::count_members): New function.
* archive.h (class Archive): Update declarations.
(Archive::filename): New function.
* object.cc: Include "cref.h".
(Sized_relobj::Sized_relobj): Initialize defined_count_.
(Sized_relobj::do_get_global_symbol_counts): New function.
(Input_objects::add_object): Add object to cross-referencer.
(Input_objects::archive_start): New function.
(Input_objects::archive_stop): New function.
(Input_objects::print_symbol_counts): New function.
* object.h: Declare Cref and Archive.
(Object::get_global_symbol_counts): New function.
(Object::do_get_global_symbol_counts): New pure virtual function.
(class Sized_relobj): Add defined_count_ field.  Update
declarations.
(class Input_objects): Add cref_ field.  Update constructor.
Update declarations.
* dynobj.cc (Sized_dynobj::Sized_dynobj): Initialize symbols_ and
defined_count_.
(Sized_dynobj::do_add_symbols): Allocate symbols_ if printing
symbol counts.
(Sized_dynobj::do_get_global_symbol_counts): New function.
* dynobj.h (class Sized_dynobj): Add fields symbols_ and
defined_count_.  Update declarations.  Define Symbols typedef.
* symtab.cc (Symbol_table::add_from_relobj): Add defined
parameter.  Change all callers.
(Symbol_table::add_from_dynobj): Add sympointers and defined
parameters.  Change all callers.
* symtab.h (class Symbol_table): Update declarations.
* Makefile.am (CCFILES): Add cref.cc.
(HFILES): Add cref.h.
* Makefile.in: Rebuild.

16 years ago2008-07-22 Simon Baldwin <simonb@google.com>
Chris Demetriou [Tue, 22 Jul 2008 21:02:44 +0000 (21:02 +0000)]
2008-07-22  Simon Baldwin  <simonb@google.com>

        * symtab.cc (Symbol_table::sized_write_symbol): Set symbol size
        to zero when writing undefined symbols.

16 years agoUpdate for elf_link_output_extsym change
Alan Modra [Tue, 22 Jul 2008 14:15:32 +0000 (14:15 +0000)]
Update for elf_link_output_extsym change

16 years ago * elf.c (_bfd_elf_map_sections_to_segments): Allow sections in
Nick Clifton [Tue, 22 Jul 2008 11:19:01 +0000 (11:19 +0000)]
    * elf.c (_bfd_elf_map_sections_to_segments): Allow sections in
        adjoining pages to be included in the same segment.

16 years ago * config/tc-mips.c (mips_ip): Reset s to argsStart.
Nick Clifton [Tue, 22 Jul 2008 10:44:51 +0000 (10:44 +0000)]
    * config/tc-mips.c (mips_ip): Reset s to argsStart.
        * gas/mips/tls-ill.l: Update error message.
        * gas/mips/octeon-ill.l: Likewise.

16 years ago * config/tc-bfin.c (bfin_gen_loop): Remove loop symbol.
Jie Zhang [Tue, 22 Jul 2008 08:34:16 +0000 (08:34 +0000)]
* config/tc-bfin.c (bfin_gen_loop): Remove loop symbol.

16 years ago * output.cc (Output_section::add_input_section): Don't try to
Ian Lance Taylor [Tue, 22 Jul 2008 08:09:48 +0000 (08:09 +0000)]
* output.cc (Output_section::add_input_section): Don't try to
merge empty merge sections.

16 years ago2008-07-22 Simon Baldwin <simonb@google.com>
Chris Demetriou [Tue, 22 Jul 2008 04:58:33 +0000 (04:58 +0000)]
2008-07-22  Simon Baldwin  <simonb@google.com>

        * elflink.c (elf_link_output_extsym): Set st_size to zero for
        symbols from dynamic libraries.

16 years agodaily update
Alan Modra [Tue, 22 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago2008-07-21 Craig Silverstein <csilvers@google.com>
Craig Silverstein [Mon, 21 Jul 2008 23:36:29 +0000 (23:36 +0000)]
2008-07-21  Craig Silverstein  <csilvers@google.com>

* symtab.cc (Symbol_table::warn_about_undefined_dynobj_symbol):
Include symbol version in error message.

16 years ago* config/tc-h8300.c (fix_operand_size): Use the default size
DJ Delorie [Mon, 21 Jul 2008 17:50:54 +0000 (17:50 +0000)]
* config/tc-h8300.c (fix_operand_size): Use the default size
specified by the .lbranch/.sbranch pseudos.

16 years ago2008-07-21 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 21 Jul 2008 16:13:27 +0000 (16:13 +0000)]
2008-07-21  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/4424
* elflink.c (_bfd_elf_merge_symbol): Call bed->relocs_compatible
to check if 2 inputs are compatible.

16 years ago * elf.c (assign_file_positions_for_load_sections): Print vma in
Nick Clifton [Mon, 21 Jul 2008 16:01:01 +0000 (16:01 +0000)]
    * elf.c (assign_file_positions_for_load_sections): Print vma in
        error message about overlapping section vmas.

16 years ago2008-07-21 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 21 Jul 2008 14:36:07 +0000 (14:36 +0000)]
2008-07-21  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/6747
* elf32-frv.c (elf32_frv_relocate_section): Revert the change
for PR ld/6446 checked in by accident on May 21, 2008.

16 years ago * coff-sh.c (bfd_pe_print_pdata): Define to NULL for non
Nick Clifton [Mon, 21 Jul 2008 14:09:57 +0000 (14:09 +0000)]
    * coff-sh.c (bfd_pe_print_pdata): Define to NULL for non
        COFF_WITH_PE based SH ports.
        * libpei.h (_bfd_XX_print_ce_compressed_pdata): Prototype.
        * arm-wince-pe.c (bfd_pe_print_pdata): Use
        _bfd_pe_print_ce_compressed_pdata.
        (slurp_symcache, cleanup_syms, pe_print_ce_compressed_pdata): Move
        to...
        * peXXigen.c: ... here and rename pe_print_ce_compressed_pdata to
        _bfd_XX_print_ce_compressed_pdata.

16 years ago * ld-scripts/include-sections.t: Discard all sections not
Nick Clifton [Mon, 21 Jul 2008 08:38:35 +0000 (08:38 +0000)]
    * ld-scripts/include-sections.t: Discard all sections not
        explicitly requested by the rest of the linker script.
        * ld-scripts/include-1.d: Expect test to fail for AIX ports.
        Do not assume that the .text section will be marked readonly.
        * ld-scripts/include.s: Replace .section directives with just
        .text or .data.

16 years ago * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Drop
Alan Modra [Mon, 21 Jul 2008 07:49:58 +0000 (07:49 +0000)]
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Drop
unwanted zero terminators.

16 years ago * elf32-spu.c (spu_elf_relocate_section): Expand
Alan Modra [Mon, 21 Jul 2008 07:36:25 +0000 (07:36 +0000)]
* elf32-spu.c (spu_elf_relocate_section): Expand
RELOC_FOR_GLOBAL_SYMBOL.  Don't warn about undefined symbols for
R_SPU_PPU32 and R_SPU_PPU64 relocations.

16 years ago2008-07-20 Chris Demetriou <cgd@google.com>
Chris Demetriou [Mon, 21 Jul 2008 05:55:27 +0000 (05:55 +0000)]
2008-07-20  Chris Demetriou  <cgd@google.com>

        * configure.ac (gold_cv_c_random_seed): New configured variable.
        (RANDOM_SEED_CFLAGS): New substituted variable.
        * Makefile.am (AM_CFLAGS, AM_CXXFLAGS): Add $(RANDOM_SEED_CFLAGS).
        * configure: Rebuild.
        * Makefile.in: Likewise.
        * testsuite/Makefile.in: Likewise.

16 years ago * bfd/elf-bfd.h: Declare elfcore_write_ppc_vsx.
Luis Machado [Mon, 21 Jul 2008 05:33:37 +0000 (05:33 +0000)]
* bfd/elf-bfd.h: Declare elfcore_write_ppc_vsx.
* bfd/elf.c (elfcore_grok_ppc_vsx): New function.
(elfcore_write_ppc_vsx): New function
(elfcore_grok_note): Handle VSX notes.
(elfcore_write_register_note): Handle VSX notes.
* include/elf/common.h: Define NT_PPC_VSX.
* binutils/readelf.c (get_note_type): Handle VSX notes.

16 years agodaily update
Alan Modra [Mon, 21 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Sun, 20 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Sat, 19 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago* config/tc-m32c.h (H_TICK_HEX): Define.
DJ Delorie [Fri, 18 Jul 2008 22:25:07 +0000 (22:25 +0000)]
* config/tc-m32c.h (H_TICK_HEX): Define.
* config/tc-m32c.c (OPTION_H_TICK_HEX): Define.
(md_longopts): Add support for it.
(md_parse_option): Likewise.
* doc/as.texinfo (Overview): Add new m32c options.
* doc/c-m32c.texi (M32C-Modifiers): Likewise

* as.h: (enable_h_tick_hex): New.
* app.c (enable_h_tick_hex): New.
(LEX_IS_H): New.
(do_scrub_begin): Mark 'H' and 'h' as special if enable_h_tick_hex.
(do_scrub_chars): If enable_h_tick_hex and 'h', check for H'00
style hex constants and convert the input stream to 0x00 style.
(do_scrub_chars): If a 'X style character constant is found after
a symbol character (like you're or X'00), warn the user.

16 years agobfd:
Joseph Myers [Fri, 18 Jul 2008 20:49:12 +0000 (20:49 +0000)]
bfd:
* bfd-in.h (bfd_elf32_arm_set_target_relocs): Add new parameter.
* bfd-in2.h: Regenerate.
* elf32-arm.c (struct elf_arm_obj_tdata): Add field
no_wchar_size_warning.
(bfd_elf32_arm_set_target_relocs): Add new parameter
no_wchar_warn.
(elf32_arm_merge_eabi_attributes): Give a warning, not an error,
for conflicting wchar_t attributes.  Do not warn if
--no-wchar-size-warning.  Make diagnostic text more specific.

ld:
* ld.texinfo (--no-wchar-size-warning): Document new ARM option.
* emultempl/armelf.em (no_wchar_size_warning): New.
(arm_elf_create_output_section_statements): Pass
no_wchar_size_warning to arm_elf_create_output_section_statements.
(OPTION_NO_WCHAR_SIZE_WARNING): New.
(PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
(PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
(PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.

ld/testsuite:
* ld-arm/attr-merge-wchar-0.s,ld-arm/attr-merge-wchar-2.s,
ld-arm/attr-merge-wchar-4.s, ld-arm/attr-merge-wchar-00-nowarn.d,
ld-arm/attr-merge-wchar-00.d, ld-arm/attr-merge-wchar-02-nowarn.d,
ld-arm/attr-merge-wchar-02.d, ld-arm/attr-merge-wchar-04-nowarn.d,
ld-arm/attr-merge-wchar-04.d, ld-arm/attr-merge-wchar-20-nowarn.d,
ld-arm/attr-merge-wchar-20.d, ld-arm/attr-merge-wchar-22-nowarn.d,
ld-arm/attr-merge-wchar-22.d, ld-arm/attr-merge-wchar-24-nowarn.d,
ld-arm/attr-merge-wchar-24.d, ld-arm/attr-merge-wchar-40-nowarn.d,
ld-arm/attr-merge-wchar-40.d, ld-arm/attr-merge-wchar-42-nowarn.d,
ld-arm/attr-merge-wchar-42.d, ld-arm/attr-merge-wchar-44-nowarn.d,
ld-arm/attr-merge-wchar-44.d: New.
* ld-arm/arm-elf.exp: Run new tests.

16 years ago2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 18 Jul 2008 12:45:33 +0000 (12:45 +0000)]
2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/6748
* elf32-arm.c (elf32_arm_link_hash_table_create): Initialize
new fields added for ARM long call support.

16 years ago * pe-arm-wince.c (pe_print_compressed_pdata): Define new function to
Nick Clifton [Fri, 18 Jul 2008 11:30:22 +0000 (11:30 +0000)]
    * pe-arm-wince.c (pe_print_compressed_pdata): Define new function to
        print compressed pdata structure as described on MSDN. This only
        applies to a limited set of architectures (ARM, SH4).
        (slurp_symtab, my_symbol_for_address): Define static helper
        functions for pe_print_compressed_pdata.
        * coffcode.h (bfd_coff_backend_data): Add _bfd_coff_print_pdata field.
        (bfd_coff_have_print_pdata, bfd_coff_print_pdata): Define.
        * bfd/peXXigen.c (_bfd_XX_print_private_bfd_data_common): Add check on
        bfd_coff_backend_data, call the function if non-null.
        * pei-mcore.c: Add target dependent initialisation for
        bfd_coff_backend_data.
        * coff-sh.c: Likewise.
        * coff64-rs6000.c: Likewise.
        * coff-rs6000.c: Likewise.
        * libcoff-in.h: Likewise.
        * cf-i386lynx.c: Likewise.
        * coff-alpha.c: Likewise.
        * coff-apollo.c: Likewise.
        * coff-arm.c: Likewise.
        * coff-aux.c: Likewise.
        * coff-h8300.c: Likewise.
        * coff-h8500.c: Likewise.
        * coff-i386.c: Likewise.
        * coff-i860.c: Likewise.
        * coff-i960.c: Likewise.
        * coff-ia64.c: Likewise.
        * coff-m68k.c: Likewise.
        * coff-m88k.c: Likewise.
        * coff-maxq.c: Likewise.
        * coff-mips.c: Likewise.
        * coff-or32.c: Likewise.
        * coff-sparc.c: Likewise.
        * coff-tic30.c: Likewise.
        * coff-tic4x.c: Likewise.
        * coff-tic54x.c: Likewise.
        * coff-tic80.c: Likewise.
        * coff-w65.c: Likewise.
        * coff-we32k.c: Likewise.
        * coff-x86_64.c: Likewise.
        * coff-z80.c: Likewise.
        * coff-z8k.c: Likewise.
        * pe-mcore.c: Likewise.
        * pe-mips.c: Likewise.
        * pe-ppc.c: Likewise.
        * peXXigen.c: Likewise.
        * pei-ppc.c: Likewise.
        * libcoff.h: Regenerate.

16 years ago * symtab.cc (Symbol_table::add_from_object): Rewrite the case
Ian Lance Taylor [Fri, 18 Jul 2008 07:03:27 +0000 (07:03 +0000)]
* symtab.cc (Symbol_table::add_from_object): Rewrite the case
where we see NAME/NULL and NAME/VERSION  as separate symbols.
* testsuite/ver_test_main.cc (main): Call t4.
(t4, t4_2a): Define.
* testsuite/ver_test_2.cc (t4_2): Define.
* testsuite/ver_test_2.script: Put t4_2a in VER2.
* testsuite/ver_test_4.cc (t4_2a): Define.
* testsuite/ver_test_4.script: Put t4_2a in VER2.
* testsuite/ver_test.h (t4, t4_2, t4_2a): Declare.

16 years ago * dynobj.cc (Versions::add_def): If we give an error about a
Ian Lance Taylor [Fri, 18 Jul 2008 06:58:04 +0000 (06:58 +0000)]
* dynobj.cc (Versions::add_def): If we give an error about a
missing version, go ahead and create the version anyhow.

16 years agodaily update
Alan Modra [Fri, 18 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Thu, 17 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * elf32-bfin.c (bfin_check_relocs, bfin_relocate_section,
Bernd Schmidt [Wed, 16 Jul 2008 15:27:05 +0000 (15:27 +0000)]
* elf32-bfin.c (bfin_check_relocs, bfin_relocate_section,
bfin_final_link_relocate, bfin_gc_mark_hook, bfin_gc_sweep_hook,
ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE,
struct _bfinfdpic_dynamic_got_info): Moved around to keep FD-PIC code
separate from non-FD-PIC.

16 years agodaily update
Alan Modra [Wed, 16 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago2008-07-15 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 15 Jul 2008 18:48:34 +0000 (18:48 +0000)]
2008-07-15  H.J. Lu  <hongjiu.lu@intel.com>

* objdump.c (load_debug_section): Initialize section_is_compressed
for gcc 3.4/ia64.
* readelf.c (load_debug_section): Likewise.

16 years ago* elf-m10300.c (mn10300_elf_final_link_relocate): Correct overflow
DJ Delorie [Tue, 15 Jul 2008 18:48:07 +0000 (18:48 +0000)]
* elf-m10300.c (mn10300_elf_final_link_relocate): Correct overflow
checks for PCREL8, PCREL16, GOTPC16, GOTOFF16, PLT16, and GOT16
relocs.
(mn10300_elf_relax_section): Correct jump offset check when target
is in a different section.

16 years agoAdd missing ChangeLog entries for
H.J. Lu [Tue, 15 Jul 2008 18:44:18 +0000 (18:44 +0000)]
Add missing ChangeLog entries for

http://sourceware.org/ml/binutils-cvs/2008-05/msg00092.html

16 years ago bfd/
Jie Zhang [Tue, 15 Jul 2008 13:09:47 +0000 (13:09 +0000)]
bfd/
* elf32-bfin.c (elf32_bfin_special_sections[]): New.
(elf_backend_special_sections): Define.

ld/
* emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.

16 years agodaily update
Alan Modra [Tue, 15 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update