OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
15 years ago * config/tc-arm.c (it_fsm_post_encode): New forward declaration.
Nick Clifton [Thu, 9 Jul 2009 07:52:37 +0000 (07:52 +0000)]
    * config/tc-arm.c (it_fsm_post_encode): New forward declaration.
        (set_it_insn_type_nonvoid): New macro.
        (emit_thumb32_expr): New function.
        (thumb_insn_size): New function.
        (emit_insn): New function.
        (s_arm_elf_inst): New function.
        (md_pseudo_table): New pseudo-opcode entries added.
        * doc/c-arm.texi: New directive added.

        * gas/arm/inst-po.d: New testcase.
        * gas/arm/inst-po.s: New file.
        * gas/arm/inst-po-2.d: New testcase.
        * gas/arm/inst-po-2.s: New file.
        * gas/arm/inst-po-2.l: New file.
        * gas/arm/inst-po-3.d: New testcase.
        * gas/arm/inst-po-3.s: New file.
        * gas/arm/inst-po-be.d: New testcase.

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

15 years ago * ld-selective/selective.exp: Remove check that $CC contains the
Alan Modra [Wed, 8 Jul 2009 03:09:13 +0000 (03:09 +0000)]
* ld-selective/selective.exp: Remove check that $CC contains the
string "gcc".  Do -dumpversion for $CXX.

15 years agodaily update
Alan Modra [Wed, 8 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago* config/tc-mep.c (md_begin): Don't reset the coprocessor options
DJ Delorie [Tue, 7 Jul 2009 21:12:52 +0000 (21:12 +0000)]
* config/tc-mep.c (md_begin): Don't reset the coprocessor options
when enabling other options without a specific configuration.

15 years agogas/
Nick Clifton [Tue, 7 Jul 2009 16:15:32 +0000 (16:15 +0000)]
gas/
    * config/tc-arm.c (insns): Fix encoding for torvsc.

gas/testsuite/
    * gas/arm/iwmmxt2.d: Fix insn pattern for torvsc,
    add patterns for waddsubhx.
    * gas/arm/iwmmxt2.s: Add tests for waddsubhx.

opcodes/
    * arm-dis.c (coprocessor_opcodes): Fix mask for waddbhus.

15 years ago PR 10288
Nick Clifton [Tue, 7 Jul 2009 14:46:14 +0000 (14:46 +0000)]
    PR 10288
        * arm-dis.c (arm_opcodes): Be more strict about decoding scaled
        addressing modes.

15 years ago2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 7 Jul 2009 13:57:46 +0000 (13:57 +0000)]
2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/fma4.d: Append "#pass".
* gas/i386/x86-64-fma4.d: Likewise.

15 years ago2009-07-07 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 7 Jul 2009 08:29:58 +0000 (08:29 +0000)]
2009-07-07  Tristan Gingold  <gingold@adacore.com>

* gas/i386/jump.d: Adjust to be relocated offset for jump to external
symbol.

15 years ago * elf32-spu.c (spu_elf_auto_overlay): Take into account section
Alan Modra [Tue, 7 Jul 2009 03:26:47 +0000 (03:26 +0000)]
* elf32-spu.c (spu_elf_auto_overlay): Take into account section
alignment when packing sections into overlays.

15 years ago[cgen]
DJ Delorie [Tue, 7 Jul 2009 01:56:05 +0000 (01:56 +0000)]
[cgen]

* cpu/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
* cpu/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
unspecified accesses to control registers.

[sid/component/cgen-cpu/mep]

* mep-cop1-16-decode.cxx: Regenerate.
* mep-cop1-16-decode.h: Regenerate.
* mep-cop1-16-defs.h: Regenerate.
* mep-cop1-16-model.cxx: Regenerate.
* mep-cop1-16-model.h: Regenerate.
* mep-cop1-16-sem.cxx: Regenerate.
* mep-cop1-32-decode.cxx: Regenerate.
* mep-cop1-32-decode.h: Regenerate.
* mep-cop1-32-defs.h: Regenerate.
* mep-cop1-32-model.cxx: Regenerate.
* mep-cop1-32-model.h: Regenerate.
* mep-cop1-32-sem.cxx: Regenerate.
* mep-cop1-48-decode.cxx: Regenerate.
* mep-cop1-48-decode.h: Regenerate.
* mep-cop1-48-defs.h: Regenerate.
* mep-cop1-48-model.cxx: Regenerate.
* mep-cop1-48-model.h: Regenerate.
* mep-cop1-48-sem.cxx: Regenerate.
* mep-cop1-64-decode.cxx: Regenerate.
* mep-cop1-64-decode.h: Regenerate.
* mep-cop1-64-defs.h: Regenerate.
* mep-cop1-64-model.cxx: Regenerate.
* mep-cop1-64-model.h: Regenerate.
* mep-cop1-64-sem.cxx: Regenerate.
* mep-core1-decode.cxx: Regenerate.
* mep-core1-decode.h: Regenerate.
* mep-core1-defs.h: Regenerate.
* mep-core1-model.cxx: Regenerate.
* mep-core1-model.h: Regenerate.
* mep-core1-sem.cxx: Regenerate.
* mep-cpu.h: Regenerate.
* mep-decode.cxx: Regenerate.
* mep-decode.h: Regenerate.
* mep-defs.h: Regenerate.
* mep-desc.h: Regenerate.
* mep-model.cxx: Regenerate.
* mep-model.h: Regenerate.
* mep-sem.cxx: Regenerate.

[opcodes]

* mep-desc.c: Regenerate.
* mep-desc.h: Regenerate.
* mep-opc.c: Regenerate.
* mep-opc.h: Regenerate.

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

15 years ago * fileread.cc (File_read::get_mtime): New method.
Ian Lance Taylor [Mon, 6 Jul 2009 23:11:21 +0000 (23:11 +0000)]
* fileread.cc (File_read::get_mtime): New method.
* fileread.h (Timespec): New structure.
(File_read::get_mtime): New method.
* incremental.cc (Incremental_inputs_entry_data::timestamp_usec):
Renamed from timestamp_nsec.
(Incremental_inputs_entry_write::timestamp_sec): Fix argument to
Elf_Xword.
(Incremental_inputs_entry_write::timestamp_usec): Renamed from
timestamp_nsec.
(Incremental_inputs::report_archive): Save mtime; style fix.
(Incremental_inputs::report_obejct): Save mtime; style fix.
(Incremental_inputs::report_script): Save mtime; style fix.
(Incremental_inputs::finalize_inputs): Style fix.
(Incremental_inputs::finalize): Style fix.
(Incremental_inputs::create_input_section_data): Store inputs
mtime.
* incremental.h (Incremental_inputs::report_script): Add mtime
argument.
(Incremental_inputs::Input_info::Input_info): Intialize only one
union member.
(Incremental_inputs::Input_info::archive): Move to nameless
union.
(Incremental_inputs::Input_info::obejct): Move to nameless union.
(Incremental_inputs::Input_info::script): Move to nameless union.
(Incremental_inputs::mtime): New field.
* script.cc (read_input_script): Pass file mtime to
Incremental_input.
* script.h (Script_info::inputs): Style fix.

15 years ago<gas changes>
Dwarakanath Rajagopal [Mon, 6 Jul 2009 19:34:30 +0000 (19:34 +0000)]
<gas changes>
2009-07-06  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>

* config/tc-i386.c (cpu_arch): Add .fma4 and CPU_FMA4_FLAGS.
(build_modrm_byte): Add support to handle FMA4 instructions.
(md_show_usage): Add fma4.

<gas/testsuite changes>
2009-07-06  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>

* gas/i386/i386.exp: Add FMA4 tests.
* gas/i386/x86-64-fma4.d: Ditto.
* gas/i386/fma4.d: Ditto.
* gas/i386/x86-64-fma4.s: Ditto.
* gas/i386/fma4.s: Ditto.

<opcodes changes>
2009-07-06  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>

* i386-opc.h (CpuFMA4): Add CpuFMA4.
(i386_cpu_flags): New.
* i386-gen.c: Add CPU_FMA4_FLAGS.
* i386-opc.tbl: Add FMA4 instructions.
* i386-tbl.h: Regenerate.
* i386-init.h: Regenerate.
* i386-dis.c (OP_VEX_FMA): New. Handle FMA4.
(OP_XMM_VexW): Ditto.
(OP_EX_VexW): Ditto.
(VEXI4_Fixup): Ditto.
(VexI4, VexFMA, Vex128FMA, EXVexW, EXdVexW, XMVexW): New Macros.
(PREFIX_VEX_3A5C, PREFIX_VEX_3A5D, PREFIX_VEX_3A5E): New.
(PREFIX_VEX_3A5F, PREFIX_VEX_3A60): New.
(PREFIX_VEX_3A68, PREFIX_VEX_3A69, PREFIX_VEX_3A6A): New.
(PREFIX_VEX_3A6B, PREFIX_VEX_3A6C, PREFIX_VEX_3A6D): New.
(PREFIX_VEX_3A6E, PREFIX_VEX_3A6F, PREFIX_VEX_3A7A): New.
(PREFIX_VEX_3A7B, PREFIX_VEX_3A7C, PREFIX_VEX_3A7D): New.
(PREFIX_VEX_3A7E, PREFIX_VEX_3A7F): New.
(VEX_LEN_3A6A_P_2,VEX_LEN_3A6B_P_2, VEX_LEN_3A6E_P_2): New.
(VEX_LEN_3A6F_P_2,VEX_LEN_3A7A_P_2, VEX_LEN_3A7B_P_2): New.
(VEX_LEN_3A7E_P_2,VEX_LEN_3A7F_P_2): New.
(get_vex_imm8): New. handle FMA4.
(OP_EX_VexReg): Ditto.

15 years ago2009-07-06 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 6 Jul 2009 14:45:56 +0000 (14:45 +0000)]
2009-07-06  Tristan Gingold  <gingold@adacore.com>

* objdump.c (dump_dwarf_section): Handle .eh_frame like other dwarf
sections.
* dwarf.h (struct dwarf_section_display): Remove eh_frame field.
* dwarf.c (debug_displays): Adjust for removed field.

15 years ago * ld.texinfo: Fix typo.
Nick Clifton [Mon, 6 Jul 2009 13:48:51 +0000 (13:48 +0000)]
    * ld.texinfo: Fix typo.

15 years agodaily update
Alan Modra [Mon, 6 Jul 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years agodaily update
Alan Modra [Sun, 5 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * config/tc-cr16.h (TC_LINKRELAX_FIXUP): Set only for code sections.
Alan Modra [Sat, 4 Jul 2009 01:50:44 +0000 (01:50 +0000)]
* config/tc-cr16.h (TC_LINKRELAX_FIXUP): Set only for code sections.

15 years agodaily update
Alan Modra [Sat, 4 Jul 2009 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago2009-07-03 Cary Coutant <ccoutant@google.com>
Dave Korn [Fri, 3 Jul 2009 17:02:43 +0000 (17:02 +0000)]
2009-07-03  Cary Coutant  <ccoutant@google.com>

* dwarf2.c (decode_line_info): Ignore DW_LNE_set_discriminator.

15 years ago2009-07-03 Dave Korn <dave.korn.cygwin@gmail.com>
Dave Korn [Fri, 3 Jul 2009 16:07:38 +0000 (16:07 +0000)]
2009-07-03  Dave Korn  <dave.korn.cygwin@gmail.com>

* coffcode.h (sec_to_styp_flags):  Partially revert (functional
changes only) earlier patch:-

  2009-06-25  Kai Tietz  <kai.tietz@onevision.com>

  * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and
  give .debug and .reloc data characteristics.
  (DOT_RELOC): New define for .reloc section string.
  (coff_write_object_contents): Use DOT_RELOC instead of string.

15 years ago2009-07-03 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 3 Jul 2009 10:44:57 +0000 (10:44 +0000)]
2009-07-03  Tristan Gingold  <gingold@adacore.com>

* scripttempl/pep.sc: Put .eh_frame in its own section.
* scripttempl/pe.sc: Ditto.

15 years ago * dwarf2.h (enum dwarf_location_atom): Add DW_OP_implicit_value
Jakub Jelinek [Fri, 3 Jul 2009 08:53:50 +0000 (08:53 +0000)]
* dwarf2.h (enum dwarf_location_atom): Add DW_OP_implicit_value
and DW_OP_stack_value.

* dwarf.c (decode_location_expression): Handle DW_OP_stack_value
and DW_OP_implicit_value.

15 years agodaily update
Alan Modra [Fri, 3 Jul 2009 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago * aoutx.h (aout_get_external_symbols): Declare 'amt' locally.
Tom Tromey [Thu, 2 Jul 2009 17:08:51 +0000 (17:08 +0000)]
* aoutx.h (aout_get_external_symbols): Declare 'amt' locally.
* bfdwin.c (bfd_free_window): Cast to unsigned long.

15 years ago2009-07-02 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 2 Jul 2009 08:24:01 +0000 (08:24 +0000)]
2009-07-02  Tristan Gingold  <gingold@adacore.com>

* configure.ac: Do not exclude gas for i386-*-darwin.
Add a case for x86_64-*-darwin.
* configure: Regenerate.

15 years ago2009-07-02 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 2 Jul 2009 08:09:35 +0000 (08:09 +0000)]
2009-07-02  Tristan Gingold  <gingold@adacore.com>

* Makefile.am (OBJ_FORMATS): Add macho.
(CPU_OBJ_VALID): Ditto.
(OBJ_FORMAT_CFILES): Add config/obj-macho.c
(OBJ_FORMAT_HFILES): Add config/obj-macho.h
(obj-macho.o): New rule.
* Makefile.in: Regenerated.
* configure.tgt (generic_target): Add i386-*-darwin*.
* config/tc-i386.h: Use i386_target_format for Mach-O.
* config/tc-i386.c (i386_target_format): Define it for Mach-O.
(i386_target_format): Add a case for bfd_target_mach_o_flavour.
* config/obj-macho.h: New file.
* config/obj-macho.c: New file.

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

15 years agoUpdate ChangeLog entries.
H.J. Lu [Wed, 1 Jul 2009 21:29:23 +0000 (21:29 +0000)]
Update ChangeLog entries.

15 years ago PR 10168
Nick Clifton [Wed, 1 Jul 2009 16:36:28 +0000 (16:36 +0000)]
    PR 10168
        * config/tc-arm.c (do_t_pkhtb): Swap Rm and Rn when encoding as
        PKHBT.
        * gas/arm/thumb32.d: Fix expected disassembly of PKHTB insn.

15 years ago * freebsd.h (Target_freebsd::do_adjust_elf_header): Use size
Ian Lance Taylor [Wed, 1 Jul 2009 16:21:36 +0000 (16:21 +0000)]
* freebsd.h (Target_freebsd::do_adjust_elf_header): Use size
instead of 32.

15 years ago PR 6714
Nick Clifton [Wed, 1 Jul 2009 15:52:27 +0000 (15:52 +0000)]
    PR 6714
        * rclex.c (handle_quotes): Do not complain about whitespace
        separating quoted strings.
        (rclex_string): Ignore whitespace when looking for a new opening
        quote following a closing quote.

15 years ago * bfd/bfd.m4 (BFD_HAVE_TIME_TYPE_MEMBER,
Nick Clifton [Wed, 1 Jul 2009 15:02:28 +0000 (15:02 +0000)]
    * bfd/bfd.m4 (BFD_HAVE_TIME_TYPE_MEMBER,
        BFD_HAVE_SYS_STAT_TYPE_MEMBER): New config functions.
        * bfd/configure.in: Use them.
        * bfd/configure: Regenerate.
        * bfd/config.in: Regnerate.
        * bfd/vmsutil.c: Include sysdep.h, remove ansidecl.h.
        #define _BSD_SOURCE. Add comments.
        (vms_file_stats_name): Calculate creation date based on available
        runtime data. Return 1 for version instead of 0.

15 years ago PR 10072
Nick Clifton [Wed, 1 Jul 2009 14:48:26 +0000 (14:48 +0000)]
    PR 10072
        * elf32-arm.c (elf32_arm_final_link_relocate): Add code to handle
        to R_ARM_THM_PC8 relocation.

15 years ago2009-07-01 Paul Brook <paul@codesourcery.com>
Paul Brook [Wed, 1 Jul 2009 11:44:54 +0000 (11:44 +0000)]
2009-07-01  Paul Brook <paul@codesourcery.com>

gas/
* config/tc-arm.c (MISSING_FNSTART): Define.
(s_arm_unwind_fnstart): Diagnose duplicate directive.
(s_arm_unwind_handlerdata, s_arm_unwind_fnend, s_arm_unwind_fnend,
s_arm_unwind_cantunwind, s_arm_unwind_personalityindex,
s_arm_unwind_personality, s_arm_unwind_save, s_arm_unwind_movsp,
s_arm_unwind_pad, s_arm_unwind_setfp, s_arm_unwind_raw): Error if
not inside function unwinding region.

gas/testsuite/
* gas/arm/fp-save.s: Add .fnstart and .fnend directives.

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

15 years ago PR 10288
Nick Clifton [Tue, 30 Jun 2009 11:57:05 +0000 (11:57 +0000)]
    PR 10288
        * arm-dis.c (coprocessor): Print the LDC and STC versions of the
        LFM and SFM instructions as comments,.
        Improve consistency of formatting for instructions displayed as
        comments and decimal values displayed with their hexadecimal
        equivalents.
        Formatting tidy ups.

        Updated expected disassembler regexps.

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

15 years ago2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 29 Jun 2009 17:44:37 +0000 (17:44 +0000)]
2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c: Reformat.

15 years ago * elf-m10300.c (mn10300_elf_relax_section): Allow for the
Nick Clifton [Mon, 29 Jun 2009 11:55:13 +0000 (11:55 +0000)]
    * elf-m10300.c (mn10300_elf_relax_section): Allow for the
        different uses of the relocations addend when a symbol is in a
        merged section.

15 years ago PR 10288
Nick Clifton [Mon, 29 Jun 2009 08:08:15 +0000 (08:08 +0000)]
    PR 10288
        * arm-dis.c (enum opcode_sentinels): New:  Used to mark the
        boundary between variaant and generic coprocessor instuctions.
        (coprocessor): Use it.
        Fix architecture version of MCRR and MRRC instructions.
        (arm_opcdes): Fix patterns for STRB and STRH instructions.
        (print_insn_coprocessor): Check architecture and extension masks.
        Print a hexadecimal version of any decimal constant that is
        outside of the range of -16 to +32.
        (print_arm_address): Add a return value of the offset used in the
        adress, if it is worth printing a hexadecimal version of it.
        (print_insn_neon): Print a hexadecimal version of any decimal
        constant that is outside of the range of -16 to +32.
        (print_insn_arm): Likewise.
        (print_insn_thumb16): Likewise.
        (print_insn_thumb32): Likewise.

        PR 10297
        * arm-dis.c (UNDEFINED_INSTRUCTION): New macro for a description
        of an undefined instruction.
        (arm_opcodes): Use it.
        (thumb_opcod): Use it.
        (thumb32_opc): Use it.

        Update expected disassembly regrexps in GAS and LD testsuites.

15 years agodaily update
Alan Modra [Mon, 29 Jun 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years agodaily update dje-cgen-play1-branchpoint
Alan Modra [Sun, 28 Jun 2009 00:00:08 +0000 (00:00 +0000)]
daily update

15 years ago2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sat, 27 Jun 2009 17:19:02 +0000 (17:19 +0000)]
2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/10321
* bucomm.c (get_file_size): Return -1 on error.

* objcopy.c (copy_file): Report empty file.

15 years agobfd/
H.J. Lu [Sat, 27 Jun 2009 16:07:10 +0000 (16:07 +0000)]
bfd/

2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10337
* elf.c (bfd_section_from_shdr): Don't change sh_link for
SHT_REL/SHT_RELA sections on executable nor shared library.
Treat SHT_REL/SHT_RELA sections with sh_link set to SHN_UNDEF
as a normal section.

ld/testsuite/

2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10337
* ld-ifunc/binutils.exp: New.

15 years ago2009-06-27 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Sat, 27 Jun 2009 08:57:08 +0000 (08:57 +0000)]
2009-06-27  Kai Tietz  <kai.tietz@onevision.com>

* scripttempl/pe.sc (.debug_pubtypes): Fixed syntax error.
* scripttempl/pep.sc (.debug_pubtypes): Likewise.

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

15 years ago2009-06-26 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Fri, 26 Jun 2009 17:23:10 +0000 (17:23 +0000)]
2009-06-26  Kai Tietz  <kai.tietz@onevision.com>

        * scripttempl/pe.sc (.debug_pubtypes): Added section rule.
        * scripttempl/pep.sc: Likewise.

15 years ago * Makefile.def (host_modules): Add cgen. cgen-snapshot-20090701
Doug Evans [Fri, 26 Jun 2009 17:19:07 +0000 (17:19 +0000)]
* Makefile.def (host_modules): Add cgen.
* Makefile.in: Regenerate.
* configure.ac (host_tools): Add cgen.
* configure: Regenerate.

15 years ago* binutils-all/objcopy.exp: Move XFAIL from objcopy_test to copy_executable.
Christopher Faylor [Fri, 26 Jun 2009 01:26:28 +0000 (01:26 +0000)]
* binutils-all/objcopy.exp: Move XFAIL from objcopy_test to copy_executable.

15 years agodaily update
Alan Modra [Fri, 26 Jun 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago* binutils-all/objcopy.exp: Always treat objcopy_test as XFAIL on cygwin.
Christopher Faylor [Thu, 25 Jun 2009 15:55:44 +0000 (15:55 +0000)]
* binutils-all/objcopy.exp: Always treat objcopy_test as XFAIL on cygwin.

15 years ago * elf-m10300.c (mn10300_elf_relax_section): Handle non-section
Nick Clifton [Thu, 25 Jun 2009 15:36:45 +0000 (15:36 +0000)]
    * elf-m10300.c (mn10300_elf_relax_section): Handle non-section
        symbols with SEC_MERGE flag.

15 years ago2009-06-25 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Thu, 25 Jun 2009 14:41:18 +0000 (14:41 +0000)]
2009-06-25  Kai Tietz  <kai.tietz@onevision.com>

* ld-pe/aligncomm-1.c (size_t): Add typedef.
(main): Use it for casting pointer to scalar.
* ld-pe/aligncomm-2.c: Likewise.
* ld-pe/aligncomm-3.c: Likewise.
* ld-pe/aligncomm-4.c: Likewise.
* ld-scripts/empty-address.exp: Make sure that for x86_64-*-mingw*
target imagebase is set to zero.
* ld-scripts/weak.exp: Don't fail for x86_64-*-mingw* target.

15 years ago2009-06-25 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Thu, 25 Jun 2009 13:39:27 +0000 (13:39 +0000)]
2009-06-25  Kai Tietz  <kai.tietz@onevision.com>

        * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and
        give .debug and .reloc data characteristics.
        (DOT_RELOC): New define for .reloc section string.
        (coff_write_object_contents): Use DOT_RELOC instead of string.

15 years ago2009-06-25 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 25 Jun 2009 13:18:46 +0000 (13:18 +0000)]
2009-06-25  Tristan Gingold  <gingold@adacore.com>

* ldlang.c (print_input_section): Add is_discarded parameter.  Adjust
prototype.
(lang_map): Print the size of discarded sections.
(print_statement): Adjust call to print_input_section.

15 years ago2009-06-25 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 25 Jun 2009 12:39:06 +0000 (12:39 +0000)]
2009-06-25  Tristan Gingold  <gingold@adacore.com>

* mach-o-target.c (bfd_mach_o_get_dynamic_symtab_upper_bound)
(bfd_mach_o_canonicalize_dynamic_symtab)
(bfd_mach_o_get_synthetic_symtab): Defines.
(TARGET_NAME_BACKEND): Add bfd_mach_o_print_thread entry.
(TARGET_NAME): Use Mach-O specific functions for dynamic.

* mach-o-i386.c (bfd_mach_o_i386_swap_reloc_in): Fix howto indexes
for scattered relocations.
(bfd_mach_o_i386_print_thread): New function.
(bfd_mach_o_print_thread): Define.

* mach-o.c (text_section_names_xlat): Add an entry for __const.
(bfd_mach_o_canonicalize_one_reloc, bfd_mach_o_canonicalize_relocs):
New functions extracted from ...
(bfd_mach_o_canonicalize_reloc): ... This.  Simplified.
(bfd_mach_o_get_dynamic_reloc_upper_bound): New function.
(bfd_mach_o_canonicalize_dynamic_reloc): New function.
(bfd_mach_o_i386_flavour_string): Adjusted after enum renaming.
(bfd_mach_o_ppc_flavour_string): Reindentation.  Add 64 bits cases.
(bfd_mach_o_scan_read_dylinker): Do not create a section anymore.
Set name_str field.
(bfd_mach_o_scan_read_dylib): Ditto.
(bfd_mach_o_scan_read_thread): Set mdata at declaration.  Add comments,
reindent.
(bfd_mach_o_scan_read_dysymtab): Set mdata at declaration.  Correctly
decode isym and flags on little endian targets.  Set dysymtab field.
(bfd_mach_o_scan_start_address): Adjust for enum names.
(bfd_mach_o_lookup_section): Do not look for segments anymore.
(bfd_mach_o_print_section): Display bfd section name.
(bfd_mach_o_print_segment): Display none if no name.
(bfd_mach_o_print_dysymtab): Display next index for local, external
and undefined symbols.
(bfd_mach_o_bfd_print_private_bfd_data): Adjust code by using name_str.
Display dylinker name. Display thread and unixthread commands content.
(bfd_mach_o_print_thread): New macro.

* mach-o.h (bfd_mach_o_mach_header_magic): Align numbers.
(bfd_mach_o_ppc_thread_flavour): Ditto.
(bfd_mach_o_i386_thread_flavour): Ditto.
(BFD_MACH_O_PPC_THREAD_STATE_NONE): New enum.
(BFD_MACH_O_x86_THREAD_STATE_NONE): Replaces
BFD_MACH_O_THREAD_STATE_NONE.
(bfd_mach_o_segment_command): Remove segment field.
(bfd_mach_o_thread_flavour): Field offset is now unsigned long.
(bfd_mach_o_dylinker_command): Remove section field, add name_str.
(bfd_mach_o_prebound_dylib_command): Ditto.
(bfd_mach_o_dylib_command): Ditto.
(bfd_mach_o_prebound_dylib_command): Remove section field.
(mach_o_data_struct): Add dysymtab field.
(bfd_mach_o_backend_data): Add _bfd_mach_o_print_thread field.
(bfd_mach_o_get_reloc_upper_bound, bfd_mach_o_canonicalize_reloc)
(bfd_mach_o_build_commands): Remove parameter names and attributes.
(bfd_mach_o_get_dynamic_reloc_upper_bound)
(bfd_mach_o_canonicalize_dynamic_reloc): New prototypes.

15 years ago2009-06-25 Rafael Avila de Espindola <espindola@google.com>
Dave Korn [Thu, 25 Jun 2009 12:32:10 +0000 (12:32 +0000)]
2009-06-25  Rafael Avila de Espindola  <espindola@google.com>

* plugin.c (load_plugin): Use stat and S_ISREG instead of the d_type
field of struct dirent.

15 years agodaily update
Alan Modra [Thu, 25 Jun 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago PR 10156
Ian Lance Taylor [Wed, 24 Jun 2009 19:48:51 +0000 (19:48 +0000)]
PR 10156
* layout.cc (Layout::choose_output_section): If we find an
existing section, update the flags.
(Layout::create_notes): New function, broken out of
Layout::finalize.
(Layout::finalize): Don't create note sections.
(Layout::create_note): Don't crash if linker script discards
section.
(Layout::create_gold_note): Likewise.
(Layout::create_build_id): Likewise.  Don't set
after_input_sections on the section.
(Layout::create_executable_stack_info): Remove target parameter.
Change caller.
* layout.h (class Layout): Declare create_notes.  Update
declaration of create_executable_stack_info.
* gold.cc (queue_middle_tasks): Call create_notes.
* output.cc (Output_section::update_flags_for_input_section): Move
here from output.h.  If SHF_ALLOC flag is newly set, mark address
invalid.
* output.h (Output_data::mark_address_invalid): New function.
(class Output_section): Only declare, not define,
update_flags_for_input_section.  Remove set_flags.

15 years ago * script-sections.cc (Output_section_definition::
Ian Lance Taylor [Wed, 24 Jun 2009 19:00:15 +0000 (19:00 +0000)]
* script-sections.cc (Output_section_definition::
set_section_addresses): Rename shadowing local load_address to
laddr.

15 years ago PR 10244
Ian Lance Taylor [Wed, 24 Jun 2009 14:36:14 +0000 (14:36 +0000)]
PR 10244
* reloc.cc (relocate_sections): Skip empty relocation sections.

15 years ago * dwarf.c (display_debug_lines_raw): Include the name of the
Nick Clifton [Wed, 24 Jun 2009 10:37:35 +0000 (10:37 +0000)]
    * dwarf.c (display_debug_lines_raw): Include the name of the
        section in warning message.
        (struct debug_display): Enable reloc processing for .debug_line
        and .debug_ranges sections.

        * readelf.c: Add --relocated-dump command line option to dump the
        relocated contents of a specified section.
        (request_dump): New function.
        (parse_args): Use it.
        (dump_section_as_bytes): Add parameter to indicate whether the
        contents should be relocated.
        (target_specific_reloc_handling): Add code for a R_MN10300_16
        reloc found after a R_MN10300_SYM_DIFF reloc.
        (debug_apply_relocations): Rename to apply_relocations.
        (get_section_contents): New function.  Replaces common code found
        in dump_section_as_strings and dump_section_as_bytes.
        * doc/binutils.texi: Document new command line option.
        * NEWS: Mention the new feature.

15 years ago PR 10156
Ian Lance Taylor [Wed, 24 Jun 2009 05:09:11 +0000 (05:09 +0000)]
PR 10156
* layout.cc (Layout::create_note): Use choose_output_section
rather than make_output_section.

15 years ago PR 10237
Ian Lance Taylor [Wed, 24 Jun 2009 05:01:17 +0000 (05:01 +0000)]
PR 10237
* options.cc (General_options::parse_V): Set printed_version_.
(General_options::General_options): Initialize printed_version_.
* options.h (class General_options): Add printed_version_ field.
* gold.cc (queue_initial_tasks): If there are no input files,
don't give a fatal error if we printed the version information.
(queue_middle_tasks): If using -r with a shared object, give a
fatal error rather than an ordinary error.

15 years ago[cgen]
DJ Delorie [Wed, 24 Jun 2009 03:06:42 +0000 (03:06 +0000)]
[cgen]

* intrinsics.scm: Updates to support IVC2.
(belongs-to-group?): Check IVC2 slots.
(-slots-attribute): New.
(targets::attributes): Add SLOTS.
(target:add-well-known-intrinsics): Add CPMOV.
(md-insn): Add CPTYPE and CRET?.
(add-md-insn): Likewise.
(add-intrinsic-for-isa): Disable the duplicate tests, as IVC2 has
duplicate insns with different bit patterns.
(write-cgen-insn?): Add cret? support.
(intrinsics.h): Add vector types.
(runtime-op): Add vector support.
(intrinsic-protos.h): Let GCC define its types.  Add cret? support.

* cpu/mep-core.cpu: Add CPTYPE and CRET attributes.
* cpu/mep-ivc2.cpu: Update all insns to include type information.
(h-cr-ivc2): Default to typeless.
(h-ccr-ivc2): Fix register width.
(SLOTS): Fix values and default.
(ivc2_*): Add control register names.
(crop, crqp, crpp, croc, crqc, crpc): Default to typeless.

[opcodes]

* mep-desc.c: Regenerate.
* mep-desc.h: Regenerate.
* mep-dis.c: Regenerate.
* mep-ibld.c: Regenerate.
* mep-opc.c: Regenerate.

[sid/component/cgen-cpu/mep]

* ivc2-cop.cxx (ivc2_cphadd_w): Change to return value.
(ivc2_cpsubaca0u_b): Remove debug line.
* ivc2-cpu.h (ivc2_cpccadd_b): Change to return value.
* mep-cop1-16-decode.cxx: Regenerate.
* mep-cop1-16-sem.cxx: Regenerate.
* mep-cop1-32-decode.cxx: Regenerate.
* mep-cop1-32-sem.cxx: Regenerate.
* mep-cop1-48-decode.cxx: Regenerate.
* mep-cop1-48-sem.cxx: Regenerate.
* mep-cop1-64-decode.cxx: Regenerate.
* mep-cop1-64-sem.cxx: Regenerate.
* mep-core1-decode.cxx: Regenerate.
* mep-cpu.h: Regenerate.
* mep-decode.cxx: Regenerate.
* mep-desc.h: Regenerate.

15 years ago[cgen]
DJ Delorie [Wed, 24 Jun 2009 01:44:53 +0000 (01:44 +0000)]
[cgen]

* cpu/mep.opc (mep_cgen_insn_supported_asm): New, skip the short
version of BSR when assembling VLIW bundles.  Use it in mep-asm.c

[opcodes]

* mep-asm.c: Regenerate.
* mep-opc.c: Regenerate.
* mep-opc.h: Regenerate.

15 years ago* config/tc-mep.c (mep_check_ivc2_scheduling): For IVC2, allocate
DJ Delorie [Wed, 24 Jun 2009 00:51:09 +0000 (00:51 +0000)]
* config/tc-mep.c (mep_check_ivc2_scheduling): For IVC2, allocate
32 bits for relaxable branches so that we can relax them later.
(md_estimate_size_before_relax): Assume IVC2 branches will be relaxed.
(mep_relax_frag): New.
(md_convert_frag): Relax IVC2 branches in-place.
* config/tc-mep.h ((mep_relax_frag): New.

15 years ago PR 10219
Ian Lance Taylor [Wed, 24 Jun 2009 00:38:00 +0000 (00:38 +0000)]
PR 10219
* layout.cc (Layout::Layout): Initialize have_stabstr_section_.
(Layout::make_output_section): Set have_stabstr_section_ if we see
a .stab*str section.
(Layout::finalize): Call link_stabs_sections.
(Layout::link_stabs_sections): New file.
* layout.h (class Layout): Add have_stabstr_section_ field.
Declare link_stabs_sections.

15 years agodaily update
Alan Modra [Wed, 24 Jun 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago2009-06-23 Doug Kwan <dougkwan@google.com>
Doug Kwan [Tue, 23 Jun 2009 18:10:42 +0000 (18:10 +0000)]
2009-06-23  Doug Kwan  <dougkwan@google.com>

* Makefile.am (libgold_a_LIBADD): New.
(ld_new_DEPENDENCIES, ld_new_LDADD): Remove LIBOBJS
  * Makefile.in: Regenerate.
* config.in (HAVE_DECL_MEMMEM, HAVE_DECL_STRNDUP): New.
* configure: Regenerate.
* configure.ac (AC_CHECK_DECLS): Add strndup and memmem.
* fileread.cc: Include sys/state.h
* gold.h: Declare memmem and strndup if found missing.
* gold_reloc.h: Include byteswap.h if HAVE_BYTESWAP_H is defined.

15 years agoAnd the ChangeLog entry:
Tristan Gingold [Tue, 23 Jun 2009 15:34:17 +0000 (15:34 +0000)]
And the ChangeLog entry:
2009-06-23  Tristan Gingold  <gingold@adacore.com>

* vms.c (vms_get_synthetic_symtab): Remove duplicate definition
of this macro.  Fix indentation.

15 years ago * configure.ac: Call AC_CHECK_DECLS using C, not C++.
Ian Lance Taylor [Tue, 23 Jun 2009 14:37:24 +0000 (14:37 +0000)]
* configure.ac: Call AC_CHECK_DECLS using C, not C++.
* configure: Rebuild.

15 years agoFix a nit.
Tristan Gingold [Tue, 23 Jun 2009 13:48:38 +0000 (13:48 +0000)]
Fix a nit.

2009-06-23  Tristan Gingold  <gingold@adacore.com>

* vms.c (vms_get_synthetic_symtab): Remove duplicate definition
of this macro.  Fix indentation.

15 years agoAdd files for ARM auto-IT patch
Nick Clifton [Tue, 23 Jun 2009 07:42:35 +0000 (07:42 +0000)]
Add files for ARM auto-IT patch

15 years ago PR 10147
Ian Lance Taylor [Tue, 23 Jun 2009 07:19:35 +0000 (07:19 +0000)]
PR 10147
* object.cc (Object::section_contents): Don't try to get a view if
the section has length zero.
(Object::handle_gnu_warning_section): If the section is empty, use
the name of the section as the warning.

15 years ago PR 10133
Ian Lance Taylor [Tue, 23 Jun 2009 07:04:10 +0000 (07:04 +0000)]
PR 10133
* stringpool.h (class Stringpool_template): Add optimize_ field.
(Stringpool_template::set_optimize): New function.
* stringpool.cc (Stringpool_template::Stringpool_template):
Initialize optimize_ field.
(Stringpool_template::set_string_offsets): Test local optimize
fild rather than parameter.
* layout.cc (Layout::Layout): Call set_optimize on the section
name stringpool.

15 years ago PR 10030
Ian Lance Taylor [Tue, 23 Jun 2009 06:39:47 +0000 (06:39 +0000)]
PR 10030
* yyscript.y: Parse TARGET.
* script.cc (script_set_target): New function.
* script-c.h (script_set_target): Declare.
* options.cc (General_options::string_to_object_format): Rename
from string_to_object_format in anonymous namespace.  Change
callers.
* options.h (class General_options): Declare
string_to_object_format.

15 years ago * script-sections.cc (Script_sections::create_segments): Don't put
Ian Lance Taylor [Tue, 23 Jun 2009 06:07:50 +0000 (06:07 +0000)]
* script-sections.cc (Script_sections::create_segments): Don't put
program headers in a PT_LOAD segment if -n or -N.

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

15 years ago PR 10141
Ian Lance Taylor [Mon, 22 Jun 2009 20:23:21 +0000 (20:23 +0000)]
PR 10141
* options.h (class General_options): Add -z lazy and -z now.  Sort
-z options into alphabetical order.
* layout.cc (Layout::finish_dynamic_section): Handle -z now.

15 years ago * gas/app, gas/as.c, gas/as.h, gas/atof-generic.c, gas/cgen.c,
Nick Clifton [Mon, 22 Jun 2009 17:56:02 +0000 (17:56 +0000)]
    * gas/app, gas/as.c, gas/as.h, gas/atof-generic.c, gas/cgen.c,
        gas/config/atof-ieee.c, gas/config/obj-aout.c,
        gas/config/obj-coff.c, gas/config/obj-ecoff.c,
        gas/config/obj-elf.c, gas/config/obj-som.c, gas/config/tc-alpha.c,
        gas/config/tc-arc.c, gas/config/tc-arm.c, gas/config/tc-cr16.c,
        gas/config/tc-cris.c, gas/config/tc-crx.c, gas/config/tc-d30v.c,
        gas/config/tc-dlx.c, gas/config/tc-hppa.c, gas/config/tc-i370.c,
        gas/config/tc-i386-intel.c, gas/config/tc-i386.c,
        gas/config/tc-i860.c, gas/config/tc-i960.c, gas/config/tc-ia64.c,
        gas/config/tc-iq2000.c, gas/config/tc-m32c.c,
        gas/config/tc-m32r.c, gas/config/tc-m68hc11.c,
        gas/config/tc-m68k.c, gas/config/tc-maxq.c, gas/config/tc-mcore.c,
        gas/config/tc-mep.c, gas/config/tc-mips.c, gas/config/tc-mmix.c,
        gas/config/tc-mn10300.c, gas/config/tc-moxie.c,
        gas/config/tc-ns32k.c, gas/config/tc-pj.c, gas/config/tc-ppc.c,
        gas/config/tc-s390.c, gas/config/tc-score.c,
        gas/config/tc-score7.c, gas/config/tc-sh.c, gas/config/tc-sparc.c,
        gas/config/tc-spu.c, gas/config/tc-tic30.c, gas/config/tc-vax.c,
        gas/config/tc-xtensa.c, gas/config/xtensa-relax.c,
        gas/dw2gencfi.c, gas/dwarf2dbg.c, gas/ehopt.c, gas/expr.c,
        gas/frags.c, gas/input-file.c, gas/read.c, gas/sb.c,
        gas/subsegs.c, gas/symbols.c, gas/write.c: Change the name of the
        gas macro `assert' to `gas_assert'.

15 years ago * config/tc-arm.c (implicit_it_mode): New enum.
Nick Clifton [Mon, 22 Jun 2009 14:40:28 +0000 (14:40 +0000)]
    * config/tc-arm.c (implicit_it_mode): New enum.
        (implicit_it_mode): New global.
        (it_instruction_type): New enum.
        (arm_parse_it_mode): New function.
        (arm_long_opts): New option added.
        (arm_it): New field.
        (it_state): New enum.
        (now_it): New macro.
        (check_it_blocks_finished): New function.
        (insns[]): Use the IT Thumb opcodes for ARM too.
        (arm_cleanup): Call check_it_blocks_finished.
        (now_it_compatible): New function.
        (conditional_insn): New function.
        (set_it_insn_type): New macro.
        (set_it_insn_type_last): New macro.
        (do_it): Call automatic IT machinery functions.
        (do_t_add_sub): Likewise
        (do_t_arit3): Likewise.
        (do_t_arit3c): Likewise.
        (do_t_blx): Likewise.
        (do_t_branch): Likewise.
        (do_t_bkpt): Likewise.
        (do_t_branch23): Likewise.
        (do_t_bx): Likewise.
        (do_t_bxj): Likewise.
        (do_t_cps): Likewise.
        (do_t_cpsi): Likewise.
        (do_t_cbz): Likewise.
        (do_t_it): Likewise.
        (encode_thumb2_ldmstm): Likewise.
        (do_t_ldst): Likewise.
        (do_t_mov_cmp): Likewise.
        (do_t_mvn_tst): Likewise.
        (do_t_mul): Likewise.
        (do_t_neg): Likewise.
        (do_t_setend): Likewise.
        (do_t_shift): Likewise.
        (do_t_tb): Likewise.
        (output_it_inst): New function.
        (new_automatic_it_block): New function.
        (close_automatic_it_block): New function.
        (now_it_add_mask): New function.
        (it_fsm_pre_encode): New function.
        (handle_it_state): New function.
        (it_fsm_post_encode): New function.
        (force_automatic_it_block_close): New function.
        (in_it_block): New function.
        (md_assemble): Call automatic IT block machinery functions.
        (arm_frob_label): Likewise.
        (arm_opts): New element.
        * config/tc-arm.h (it_state): New enum.
        (current_it): New struct.
        (arm_segment_info_type): New member added.
        * doc/c-arm.texi: New option -mimplicit-it documented.

        * gas/arm/arm-it-auto.d: New test.
        * gas/arm/arm-it-auto.s: New file.
        * gas/arm/arm-it-auto-2.d: New test case.
        * gas/arm/arm-it-auto-2.s: New file.
        * gas/arm/arm-it-auto-3.d: New test case.
        * gas/arm/arm-it-auto-3.s: New file.
        * gas/arm/arm-it-bad.d: New test case.
        * gas/arm/arm-it-bad.l: New file.
        * gas/arm/arm-it-bad.s: New file.
        * gas/arm/arm-it-bad-2.d: New test case.
        * gas/arm/arm-it-bad-2.l: New file.
        * gas/arm/arm-it-bad-2.s: New file.
        * gas/arm/arm-it-bad-3.d: New test case.
        * gas/arm/arm-it-bad-3.l: New file.
        * gas/arm/arm-it-bad-3.s: New file.
        * gas/arm/thumb2_it_auto.d: New test.
        * gas/arm/thumb2_it_bad.l: Error message updated.
        * gas/arm/thumb2_it_bad_auto.d: New test.
        * gas/arm/thumb2_it.d: Comment added.
        * gas/arm/thumb2_it_bad.d: Comment added.

15 years ago * po/fi.po: Updated Finish translation.
Nick Clifton [Mon, 22 Jun 2009 11:32:21 +0000 (11:32 +0000)]
    * po/fi.po: Updated Finish translation.

15 years ago2009-06-22 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Mon, 22 Jun 2009 10:55:33 +0000 (10:55 +0000)]
2009-06-22  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (elf32_arm_size_stubs): Use PLT address as
destination for defined dynamic symbols when deciding whether to
insert a stub or not.
(allocate_dynrelocs): Make sure functions are not marked as Thumb
when actually accessed through a PLT, even when generating a
shared lib.

ld/testsuite:
* ld-arm/farcall-mixed-app.s: Add new references to check more
modes switching.
* ld-arm/farcall-mixed-lib1.s: Likewise.
* ld-arm/farcall-mixed-app-v5.d: Update expected result.
* farcall-mixed-app.d: Likewise.
* ld-arm/farcall-mixed-lib.d: Likewise.

15 years ago * ld-pe/pe-run.exp (proc test_direct_link_dll): Fix incorrect
Dave Korn [Mon, 22 Jun 2009 09:34:52 +0000 (09:34 +0000)]
* ld-pe/pe-run.exp (proc test_direct_link_dll):  Fix incorrect
line-wrapping.

15 years ago * readelf.c (target_specific_reloc_handling): New function:
Nick Clifton [Mon, 22 Jun 2009 08:46:13 +0000 (08:46 +0000)]
    * readelf.c (target_specific_reloc_handling): New function:
        Processes relocs in a target specific manner.
        (debug_apply_relocations): Use the new function.
        * dwarf.c (display_debug_loc): End the dump with a blank line.
        (struct debug_display): Enable reloc processing for .debug_aranges
        and .debug_loc sections.

15 years ago2009-06-22 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 22 Jun 2009 08:14:52 +0000 (08:14 +0000)]
2009-06-22  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_canonicalize_reloc): Append a sentinel to
the relocs array.

15 years ago * elfcpp.h (SHN_X86_64_LCOMMON): Define enum constant.
Ian Lance Taylor [Mon, 22 Jun 2009 06:56:05 +0000 (06:56 +0000)]
* elfcpp.h (SHN_X86_64_LCOMMON): Define enum constant.
(enum SHT): Add SHT_X86_64_UNWIND.
(enum SHF): Add SHT_X86_64_LARGE.

15 years agoFix ChangeLog e-mail address.
Ian Lance Taylor [Mon, 22 Jun 2009 06:52:11 +0000 (06:52 +0000)]
Fix ChangeLog e-mail address.

15 years ago * layout.cc (Layout::make_output_section): Call
Ian Lance Taylor [Mon, 22 Jun 2009 06:51:53 +0000 (06:51 +0000)]
* layout.cc (Layout::make_output_section): Call
Target::new_output_section.
(Layout::attach_allocated_section_to_segment): Put large section
sections in a separate load segment with the large segment flag
set.
(Layout::segment_precedes): Sort large data segments after other
load segments.
(align_file_offset): New static function.
(Layout::set_segment_offsets): Use align_file_offset.
* output.h (class Output_section): Add is_small_section_ and
is_large_section_ fields.
(Output_section::is_small_section): New function.
(Output_section::set_is_small_section):  New function.
(Output_section::is_large_section): New function.
(Output_section::set_is_large_section): New function.
(Output_section::is_large_data_section): New function.
(class Output_segment): Add is_large_data_segment_ field.
(Output_segment::is_large_data_segment): New function.
(Output_segment::set_is_large_data_segment): New function.
* output.cc (Output_section::Output_section): Initialize new
fields.
(Output_segment::Output_segment): Likewise.
(Output_segment::add_output_section): Add assertion that large
data sections always go in large data segments.  Force small data
sections to the end of the list of data sections.  Force small BSS
sections to the start of the list of BSS sections.  For large BSS
sections to the end of the list of BSS sections.
* symtab.h (class Symbol): Declare is_common_shndx.
(Symbol::is_defined): Check Symbol::is_common_shndx.
(Symbol::is_common): Likewise.
(class Symbol_table): Define enum Commons_section_type.  Update
declarations.  Add small_commons_ and large_commons_ fields.
* symtab.cc (Symbol::is_common_shndx): New function.
(Symbol_table::Symbol_table): Initialize new fields.
(Symbol_table::add_from_object): Put small and large common
symbols in the right list.
(Symbol_table::sized_finalized_symbol): Check
Symbol::is_common_shndx.
(Symbol_table::sized_write_globals): Likewise.
* common.cc (Symbol_table::do_allocate_commons): Allocate new
common symbol lists.  Don't call do_allocate_commons_list if the
list is empty.
(Symbol_table::do_allocate_commons_list): Remove is_tls
parameter.  Add comons_section_type parameter.  Change all
callers.  Handle small and large common symbols.
* object.cc (Sized_relobj::do_finalize_local_symbols): Check
Symbol::is_common_shndx.
* resolve.cc (symbol_to_bits): Likewise.
* target.h (Target::small_common_shndx): New function.
(Target::small_common_section_flags): New function.
(Target::large_common_shndx): New function.
(Target::large_common_section_flags): New function.
(Target::new_output_section): New function.
(Target::Target_info): Add small_common_shndx, large_common_shndx,
small_common_section_flags, and large_common_section_flags
fields.
(Target::do_new_output_section): New virtual function.
* arm.cc (Target_arm::arm_info): Initialize new fields.
* i386.cc (Target_i386::i386_info): Likewise.
* powerpc.cc (Target_powerpc::powerpc_info) [all versions]:
Likewise.
* sparc.c (Target_sparc::sparc_info) [all versions]: Likewise.
* x86_64.cc (Target_x86_64::x86_64_info): Likewise.
(Target_x86_64::do_new_output_section): New function.
* configure.ac: Define conditional MCMODEL_MEDIUM.
* testsuite/Makefile.am (check_PROGRAMS): Add large.
(large_SOURCES, large_CFLAGS, large_DEPENDENCIES): Define.
(large_LDFLAGS): Define.
* testsuite/large.c: New file.
* testsuite/testfile.cc (Target_test::test_target_info):
Initialize new fields.
* configure, testsuite/Makefile.in: Rebuild.

15 years agocpu/
Alan Modra [Mon, 22 Jun 2009 00:53:25 +0000 (00:53 +0000)]
cpu/
* m32c.opc (parse_lab_5_3): Use correct enum.
opcodes/
* m32c-asm.c: Regenerate.

15 years agoinclude/elf/
Alan Modra [Mon, 22 Jun 2009 00:52:20 +0000 (00:52 +0000)]
include/elf/
* ppc.h (R_PPC_RELAX*): Define as enum.
bfd/
* elf32-ppc.c (ppc_elf_check_relocs): Handle R_PPC_RELAX* in switch.
* elf32-v850.c (v850_elf_relocate_section): Warning fix.

15 years ago * score-dis.c (print_insn_score48, print_insn_score32): Move default
Alan Modra [Mon, 22 Jun 2009 00:01:57 +0000 (00:01 +0000)]
* score-dis.c (print_insn_score48, print_insn_score32): Move default
case label to proper lexical block.
* score7-dis.c (print_insn_score32): Likewise.

15 years ago * elf64-ppc.c (ppc64_elf_edit_opd): Avoid gcc warning.
Alan Modra [Mon, 22 Jun 2009 00:00:32 +0000 (00:00 +0000)]
* elf64-ppc.c (ppc64_elf_edit_opd): Avoid gcc warning.

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

15 years agomerge from gcc
DJ Delorie [Sun, 21 Jun 2009 17:13:08 +0000 (17:13 +0000)]
merge from gcc

15 years agodaily update
Alan Modra [Sun, 21 Jun 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sat, 20 Jun 2009 13:13:11 +0000 (13:13 +0000)]
2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>

* elflink.c (elf_link_add_object_symbols): Avoid warning
from -Wjump-misses-init in gcc 4.5.0.