OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
15 years ago2009-05-05 Paul Brook <paul@codesourcery.com>
Paul Brook [Tue, 5 May 2009 14:18:30 +0000 (14:18 +0000)]
2009-05-05  Paul Brook  <paul@codesourcery.com>

bfd/
* bfd-in.h (elf32_arm_fix_exidx_coverage): Add prototype.
* bfd-in2.h: Regenerate.
* elf32-arm.c (arm_unwind_edit_type, arm_unwind_table_edit): Define.
(_arm_elf_section_data): Add text and exidx fields.
(add_unwind_table_edit, get_arm_elf_section_data, adjust_exidx_size,
insert_cantunwind_after, elf32_arm_fix_exidx_coverage, offset_prel31,
copy_exidx_entry): New functions.
(elf32_arm_write_section): Fixup .ARM.exidx contents.

ld/
* emultempl/armelf.em (compare_output_sec_vma): New function.
(gld${EMULATION_NAME}_finish): Add exidx munging code.

ld/testsuite/
* ld-arm/arm.ld: Add .ARM.exidx and .ARM.extab.
* ld-arm/arm-elf.exp: Add unwind-[1-4].
* ld-arm/unwind-1.d: New test.
* ld-arm/unwind-1.s: New test.
* ld-arm/unwind-2.d: New test.
* ld-arm/unwind-2.s: New test.
* ld-arm/unwind-3.d: New test.
* ld-arm/unwind-3.s: New test.
* ld-arm/unwind-4.d: New test.
* ld-arm/unwind-4.s: New test.

15 years ago2009-05-05 Christophe lyon <christophe.lyon@st.com>
Christophe Lyon [Tue, 5 May 2009 13:16:56 +0000 (13:16 +0000)]
2009-05-05  Christophe lyon  <christophe.lyon@st.com>
bfd/
* elf32-arm.c (DEF_STUBS): New helper define.
(DEF_STUB): Likewise.
(stub_def): New type.
(stub_definitions): New array, containing stub template pointers
and sizes.
(arm_size_one_stub): Make use of stub_definitions.

15 years agoFix local branches for bl and blx.
Ramana Radhakrishnan [Tue, 5 May 2009 11:41:32 +0000 (11:41 +0000)]
Fix local branches for bl and blx.

15 years ago * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
Nick Clifton [Tue, 5 May 2009 11:28:36 +0000 (11:28 +0000)]
    * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
        * emulparams/avr1.sh (DATA_ORIGIN): Add.
        * emulparams/avr2.sh (DATA_ORIGIN): Add.
        * emulparams/avr25.sh (DATA_ORIGIN): Add.
        * emulparams/avr3.sh (DATA_ORIGIN): Add.
        * emulparams/avr31.sh (DATA_ORIGIN): Add.
        * emulparams/avr35.sh (DATA_ORIGIN): Add.
        * emulparams/avr4.sh (DATA_ORIGIN): Add.
        * emulparams/avr5.sh (DATA_ORIGIN): Add.
        * emulparams/avr51.sh (DATA_ORIGIN): Add.
        (DATA_LENGTH): Update.
        * emulparams/avr6.sh (DATA_ORIGIN): Add.
        (DATA_LENGTH): Update.

15 years ago PR 10109
Nick Clifton [Tue, 5 May 2009 09:36:08 +0000 (09:36 +0000)]
    PR 10109
        * winduni.c: Replace test of HAVE_ICONV_H with a test of
        HAVE_ICONV.
        (iconv_onechar): Use ICONV_CONST instead of "const".
        (wind_MultiByteToWideChar): Initialise local strings.

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

15 years ago2009-05-04 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 4 May 2009 13:31:43 +0000 (13:31 +0000)]
2009-05-04  Tristan Gingold  <gingold@adacore.com>

* config/tc-alpha.c: Also declare alpha_prologue_label for OBJ_EVAX.

15 years agobfd/ChangeLog
Dave Korn [Mon, 4 May 2009 12:09:30 +0000 (12:09 +0000)]
bfd/ChangeLog

* elflink.c (find_version_for_sym):  Remove from here, ...
* linker.c (bfd_find_version_for_sym):  ... rename, replace
here, make public and update all callers.
* bfd-in2.h:  Regenerate.

ld/ChangeLog

* NEWS:  Mention new feature.
* ld.texinfo (--version-script):  Document extent of PE support.
(WIN32):  Mention --version-script.  Extend auto-export description.
* pe-dll.c (process_def_file):  Use version script info to filter
symbols from auto-export.
* testsuite/ld-pe/vers-script-1.d:  New file.
* testsuite/ld-pe/vers-script-2.d:  New file.
* testsuite/ld-pe/vers-script-3.d:  New file.
* testsuite/ld-pe/vers-script-4.d:  New file.
* testsuite/ld-pe/vers-script-1.ver:  New file.
* testsuite/ld-pe/vers-script-2.ver:  New file.
* testsuite/ld-pe/vers-script-3.ver:  New file.
* testsuite/ld-pe/vers-script-4.ver:  New file.
* testsuite/ld-pe/vers-script-dll.c:  New file.
* testsuite/ld-pe/vers-script.exp:  New test script.

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

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

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

15 years ago * emulparams/vxworks.sh (TEXT_START_ADDR): Override.
Nathan Sidwell [Fri, 1 May 2009 15:23:42 +0000 (15:23 +0000)]
* emulparams/vxworks.sh (TEXT_START_ADDR): Override.

15 years ago * config/tc-armlinux-eabi.h (FPU_DEFAULT): Default to plain VFP.
Nathan Sidwell [Fri, 1 May 2009 14:44:17 +0000 (14:44 +0000)]
* config/tc-armlinux-eabi.h (FPU_DEFAULT): Default to plain VFP.
* config/tc-armeabi.h (FPU_DEFAULT): Likewise.
* config/tc-arm.c (md_begin): If FPU_DEFAULT is set, don't infer
the default FPU from the processor.
testsuite/
* gas/arm/attr-mcpu.d: Add -mfpu=neon.
* gas/arm/mapmisc.d: Correct expected output for .double and
.dcb.d.

15 years ago gas/
Julian Brown [Fri, 1 May 2009 13:50:10 +0000 (13:50 +0000)]
gas/
* config/tc-arm.c (do_t_blx): Always use BFD_RELOC_THUMB_PCREL_BLX.
(md_pcrel_from_section): Align address for BLX.
(tc_gen_reloc): Change BFD_RELOC_THUMB_PCREL_BLX relocations to
BFD_RELOC_THUMB_PCREL_BRANCH23 for EABI v4+.

15 years ago ld/testsuite/
Julian Brown [Fri, 1 May 2009 13:49:19 +0000 (13:49 +0000)]
ld/testsuite/
* ld-arm/arm-elf.exp (armeabitests): Add thumb2-bl-blx-interwork test.
* ld-arm/thumb2-bl-blx-interwork.s: New.
* ld-arm/thumb2-bl-blx-interwork.d: New.

15 years agoFix typo
Nick Clifton [Fri, 1 May 2009 09:24:02 +0000 (09:24 +0000)]
Fix typo

15 years agodaily update sid-snapshot-20090501
Alan Modra [Fri, 1 May 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agoIndex: opcodes
DJ Delorie [Thu, 30 Apr 2009 21:23:30 +0000 (21:23 +0000)]
Index: opcodes

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

Index: gas

* config/tc-mep.c (md_begin): Check coprocessor type.
(md_check_parallel64_scheduling): Use memset to initialize the buffer.
(md_check_parallel32_scheduling): Likewise.
(slot_ok): New.
(mep_check_ivc2_scheduling): New.
(mep_check_parallel_scheduling): Call it.
(mep_process_saved_insns): Add IVC2 slot support.
(md_assemble): Likewise.

15 years ago* mep.h (EF_MEP_COP_*): New.
DJ Delorie [Thu, 30 Apr 2009 18:49:37 +0000 (18:49 +0000)]
* mep.h (EF_MEP_COP_*): New.
(EF_MEP_ALL_FLAGS): Add them.

15 years agoinclude/elf
Nick Clifton [Thu, 30 Apr 2009 15:47:13 +0000 (15:47 +0000)]
include/elf
2009-04-30  Nick Clifton  <nickc@redhat.com>

        * common.h (STT_GNU_IFUNC): Define.

elfcpp
2009-04-30  Nick Clifton  <nickc@redhat.com>

        * (enum STT): Add STT_GNU_IFUNC.

gas
2009-04-30  Nick Clifton  <nickc@redhat.com>

        * config/obj-elf.c (obj_elf_type): Add support for a
        gnu_indirect_function type.
        * config/tc-i386.c (tc_i386_fix_adjustable): Do not adjust fixups
        against indirect function symbols.
        * doc/as.texinfo (.type): Document the support for the
        gnu_indirect_function symbol type.
        * NEWS: Mention the new feature.

gas/testsuite
2009-04-30  Nick Clifton  <nickc@redhat.com>

        * gas/elf/elf.exp: Extend type test to include an ifunc symbol.
        Provide an alternative test for targets which do not support ifunc
        symbols.
        (type.s): Add entry for an ifunc symbol.
        (type.e): Add ifunc entry to expected symbol dump.
        (section2.e-armelf): Add  entry for ifunc symbol.
        (type-noifunc.s): New file.
        (type-noifunc.e): New file.

bfd/
2009-04-30  Nick Clifton  <nickc@redhat.com>

        * elf-bfd.h (struct bfd_elf_section_data): Add indirect_relocs
        section pointer.
        (struct elf_obj_data): Add has_ifunc_symbols boolean.
        * elf.c (swap_out_syms): Convert BSF_GNU_INDIRECT_FUNCTION flags
        into a STT_GNU_IFUNC symbol type.
        (_bfd_elf_is_function_type): Accept STT_GNU_IFUNC as a function
        type.
        (_bfd_elf_set_osabi): Set the osasbi field to ELFOSABI_LINUX if
        the binary contains ifunc symbols.
        * elfcode.h (elf_slurp_symbol_table): Translate the STT_GNU_IFUNC
        symbol type into a BSF_GNU_INDIRECT_FUNCTION flag.
        * elf32-i386.c (is_indirect_function): New function.
        (elf_i386_check_relocs): Create an ifunc output section.
        (allocate_dynrelocs): Create dynamic relocs in the ifunc output
        section if necessary.
        (elf_i386_relocate_section): Emit a reloc against an ifunc symbol
        if necessary.
        (elf_i386_add_symbol_hook): New function. Set the
        has_ifunc_symbols field of the elf_obj_data structure if an ifunc
        symbol is encountered.
        (elf_backend_post_process_headers): Define.
        (elf_backend_add_symbol_hook): Define.
        (elf_i386_post_process_headers): Rename to
        elf_i388_fbsd_post_process_headers.
        * elf64-x86_64.c (IS_X86_64_PCREL_TYPE): New macro.
        (is_indirect_function): New function.
        (elf64_x86_64_check_relocs): Create an ifunc output section.
        (allocate_dynrelocs): Create dynamic relocs in the ifunc output
        section if necessary.
        (elf64_x86_64_relocate_section): Emit a reloc against an ifunc
        symbol if necessary.
        (elf_i386_add_symbol_hook): Set the has_ifunc_symbols field of the
        elf_obj_data structure if an ifunc symbol is encountered.
        (elf_backend_post_process_headers): Define.
        * elflink.c (_bfd_elf_adjust_dynamic_symbol): Always create a PLT
        if we have ifunc symbols to handle.
        (get_ifunc_reloc_section_name): New function.  Computes the name
        for an ifunc section.
        (_bfd_elf_make_ifunc_reloc_section): New function.  Creates a
        section to hold ifunc relocs.
        * syms.c (BSF_GNU_INDIRECT_FUNCTION): Define.
        (bfd_print_symbol_vandf): Handle ifunc symbols.
        (bfd_decode_symclass): Likewise.
        * bfd-in2.h: Regenerate.

binutils
2009-04-30  Nick Clifton  <nickc@redhat.com>

        * readelf.c (dump_relocations): Display a relocation against an
        ifunc symbol as if it were a function invocation.
        (get_symbol_type): Handle STT_GNU_IFUNC.

ld
2009-04-30  Nick Clifton  <nickc@redhat.com>

        * NEWS: Mention support for IFUNC symbols.

ld/testsuite
2009-04-30  Nick Clifton  <nickc@redhat.com>

        * ld-ifunc: New directory.
        * ld-ifunc/ifunc.exp: New file: Run the IFUNC tests.
        * ld-ifunc/prog.c: New file.
        * ld-ifunc/lib.c: New file.

15 years agoFix date in revision 1.220. (Was 2008-04-23, should have been 2009-04-23).
Chris Demetriou [Thu, 30 Apr 2009 06:02:09 +0000 (06:02 +0000)]
Fix date in revision 1.220.  (Was 2008-04-23, should have been 2009-04-23).

15 years agoAdd missing disassembler patch for moxie.
Anthony Green [Thu, 30 Apr 2009 04:54:08 +0000 (04:54 +0000)]
Add missing disassembler patch for moxie.

15 years agoTweak description of verilog support in NEWS file.
Anthony Green [Thu, 30 Apr 2009 04:36:49 +0000 (04:36 +0000)]
Tweak description of verilog support in NEWS file.

15 years agoMove moxie stack out in memory.
Anthony Green [Thu, 30 Apr 2009 04:29:23 +0000 (04:29 +0000)]
Move moxie stack out in memory.

15 years agobfd:
Joseph Myers [Thu, 30 Apr 2009 00:01:11 +0000 (00:01 +0000)]
bfd:
* elf32-arm.c (elf32_arm_check_relocs): Give errors for absolute
MOVW and MOVT relocations in a shared library link.

ld/testsuite:
* ld-arm/movw-shared-1.d, ld-arm/movw-shared-1.s,
ld-arm/movw-shared-2.d, ld-arm/movw-shared-2.s,
ld-arm/movw-shared-3.d, ld-arm/movw-shared-3.s,
ld-arm/movw-shared-4.d, ld-arm/movw-shared-4.s: New tests.
* ld-arm/arm-elf.exp: Run these new tests.

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

15 years ago[ld/ChangeLog]
Chris Demetriou [Wed, 29 Apr 2009 17:24:27 +0000 (17:24 +0000)]
[ld/ChangeLog]
2009-04-29  Chris Demetriou  <cgd@google.com>

        * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
        (ld_options): Likewise.
        (parse_args): Likewise.
        * ld.texinfo: Document --no-export-dynamic.
        * NEWS: Mention --no-export-dynamic.

[ld/testsuite/ChangeLog]
2009-04-29  Chris Demetriou  <cgd@google.com>

        * ld-elfvers/vers.exp (vers4b): New test to verify that
        --no-export-dynamic undoes --export-dynamic.

15 years agomerge from gcc
DJ Delorie [Wed, 29 Apr 2009 16:15:54 +0000 (16:15 +0000)]
merge from gcc

15 years ago * readelf.c (slurp_ia64_unwind_table): Correct 64-bit unwind table
Alan Modra [Wed, 29 Apr 2009 14:21:50 +0000 (14:21 +0000)]
* readelf.c (slurp_ia64_unwind_table): Correct 64-bit unwind table
read, and merge with 32-bit case.

15 years ago libiberty/
Julian Brown [Wed, 29 Apr 2009 11:52:41 +0000 (11:52 +0000)]
libiberty/
* pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.
(pex_win32_exec_child): Ensure each process has only one handle open
on pipe endpoints. Close standard input after creating child
for symmetry with standard output/standard error.

15 years ago * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.
Alan Modra [Wed, 29 Apr 2009 01:17:54 +0000 (01:17 +0000)]
* deffilep.y (STACKSIZE_K): Rename from STACKSIZE.

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

15 years ago * ld-i386/vxworks1-lib.dd: Adjust expected disassembly.
Nathan Sidwell [Tue, 28 Apr 2009 12:46:10 +0000 (12:46 +0000)]
* ld-i386/vxworks1-lib.dd: Adjust expected disassembly.
* ld-i386/vxworks1.dd: Adjust expected disassembly.
* ld-i386/vxworks1-lib.rd: Sections are swapped.

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

15 years ago * x86_64.cc (do_adjust_output_section): Set entsize to
Ian Lance Taylor [Mon, 27 Apr 2009 16:23:57 +0000 (16:23 +0000)]
* x86_64.cc (do_adjust_output_section): Set entsize to
plt_entry_size.

15 years ago * verilog.c: New file.
Nick Clifton [Mon, 27 Apr 2009 14:27:36 +0000 (14:27 +0000)]
    * verilog.c: New file.
        * Makefile.am (BFD32_LIBS): Add verilog.c.
        (BFD32_LIBS_CFILES): Add verilog.c.
        (verilog.lo): New build rule.
        * Makefile.in: Rebuilt.
        * targets.c: Add verilog support.
        * bfd.c (tdata union): Add Verilog private data field.
        * bfd-in2.h: Regenerate.

        * bfdint.texi (BFD target vector miscellaneous): Mention verilog
        flavour.

        * NEWS: Mention verilog support added to bfd.

15 years agobfd/
H.J. Lu [Mon, 27 Apr 2009 13:59:43 +0000 (13:59 +0000)]
bfd/

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

* peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Don't
copy pe_opthdr.

binutils/

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

* objcopy.c (copy_object): Copy pe_opthdr before changing PE
parameters.

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

15 years agomerge from gcc
DJ Delorie [Sun, 26 Apr 2009 02:25:10 +0000 (02:25 +0000)]
merge from gcc

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

15 years ago * Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Add GNATBIND. cgen-snapshot-20090501
Eric Botcazou [Sat, 25 Apr 2009 12:25:01 +0000 (12:25 +0000)]
* Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Add GNATBIND.
(POSTSTAGE1_FLAGS_TO_PASS): Pick up exported value for GNATBIND.
* Makefile.in: Regenerate.

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

15 years agoRemove bfd/.
H.J. Lu [Fri, 24 Apr 2009 20:28:22 +0000 (20:28 +0000)]
Remove bfd/.

15 years ago2008-04-23 Elliott Hughes <enh@google.com>
Chris Demetriou [Fri, 24 Apr 2009 19:48:21 +0000 (19:48 +0000)]
2008-04-23  Elliott Hughes  <enh@google.com>

        * output.cc (Output_file::close): After short writes, continue
        writing from the correct offset in the buffer being written.

15 years ago2009-04-23 Chris Demetriou <cgd@google.com>
Chris Demetriou [Fri, 24 Apr 2009 19:33:42 +0000 (19:33 +0000)]
2009-04-23  Chris Demetriou  <cgd@google.com>

        * configure.ac (HAVE_TR1_UNORDERED_MAP_REHASH): New define.
        * configure: Regenerate.
        * config.in: Regenerate.
        * gold.h: Avoid std::tr1::unordered_map and std::tr1::unordered_set
        if HAVE_TR1_UNORDERED_MAP_REHASH is not defined.

15 years ago * NEWS: Add item about discriminator support.
Cary Coutant [Fri, 24 Apr 2009 18:31:29 +0000 (18:31 +0000)]
* NEWS: Add item about discriminator support.
* dwarf2dbg.h (struct dwarf2_line_info): Add discriminator field.
* dwarf2dbg.c (current): Add discriminator field.
(dwarf2_where): Copy discriminator value.
(dwarf2_consume_line_info): Set discriminator to 0.
(dwarf2_directive_loc): Process discriminator sub-op.
(out_leb128): New function.
(process_entries): Output DW_LNE_set_discriminator.
* doc/as.texinfo: Add discriminator operand to .loc directive.
* testsuite/gas/lns/lns-common-1.d: Add test for discriminator.
* testsuite/gas/lns/lns-common-1.s: Likewise.

15 years agoinclude/elf/
Cary Coutant [Fri, 24 Apr 2009 18:28:59 +0000 (18:28 +0000)]
include/elf/

 * dwarf2.h (DW_LNE_set_discriminator): New enum value.

binutils/

* dwarf.c (process_extended_line_op): Add DW_LNE_set_discriminator.
Add missing newlines to HP extensions.

15 years agoUpdate ChangeLog entries.
H.J. Lu [Fri, 24 Apr 2009 16:57:08 +0000 (16:57 +0000)]
Update ChangeLog entries.

15 years ago * incremental.cc (Incremental_inputs_header_data): Renamed from
Ian Lance Taylor [Fri, 24 Apr 2009 15:44:02 +0000 (15:44 +0000)]
* incremental.cc (Incremental_inputs_header_data): Renamed from
Incremental_input_header_data.
(Incremental_inputs_header_data::data_size): New field.
(Incremental_inputs_header_data::put_input_file_count): Renamed
from input_file_count.
(Incremental_inputs_header_data::put_command_line_offset): Renamed
from command_line_offset.
(Incremental_inputs_header_data::put_reserved): Renamed from
put_reserved.
(Incremental_inputs_entry_data): Renamed from
Incremental_input_entry_data.
(Incremental_inputs_entry_data::data_size): New field.
(Incremental_inputs::report_command_line): New method.
(Incremental_inputs::finalize): New method.
(Incremental_inputs::create_incremental_inputs_data): New method.
(Incremental_inputs::sized_create_incremental_inputs_data): New method.
* incremental.h: New file.
* layout.cc (Layout::Layout): Handle new incremental_inputs_.
       (Layout::finalize): Create incremental inputs section in
incremental builds.
       (Layout::create_incremental_info_sections): New method.
* layout.h (Layout::incremental_inputs): New method.
       (Layout::create_incremental_info_sections): New method.
       (Layout::incremental_inputs_): New field.
* main.cc (main): Notify Incremental_input of the command line.

15 years ago PR 10061
Alan Modra [Fri, 24 Apr 2009 15:06:15 +0000 (15:06 +0000)]
  PR 10061
* genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT
param.

15 years ago*** empty log message ***
Eli Zaretskii [Fri, 24 Apr 2009 14:28:17 +0000 (14:28 +0000)]
*** empty log message ***

15 years ago * config.guess (pc:*:*:*): Return i586-pc-msdosdjgpp, for
Eli Zaretskii [Fri, 24 Apr 2009 14:27:20 +0000 (14:27 +0000)]
* config.guess (pc:*:*:*): Return i586-pc-msdosdjgpp, for
consistency with config.sub.  (Update from upstream sources.)

15 years agoObvious typo fixes re: moxie.
Anthony Green [Fri, 24 Apr 2009 11:41:40 +0000 (11:41 +0000)]
Obvious typo fixes re: moxie.

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

15 years ago2009-04-23 Matthias Klose <doko@ubuntu.com>
Dave Korn [Thu, 23 Apr 2009 13:36:43 +0000 (13:36 +0000)]
2009-04-23  Matthias Klose  <doko@ubuntu.com>

* bfd/peXXigen.c (_bfd_XXi_swap_sym_in): Initialize `name'.

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

15 years agomerge from gcc
DJ Delorie [Wed, 22 Apr 2009 19:09:13 +0000 (19:09 +0000)]
merge from gcc

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

PR9743
bfd/
* elf32-arm.c (arm_type_of_stub): Handle R_ARM_THM_JUMP24,
R_ARM_JUMP24 and R_ARM_PLT32 relocations.
(elf32_arm_size_stubs): Likewise.
(record_thumb_to_arm_glue): Deleted unused function.
(bfd_elf32_arm_process_before_allocation): No longer handle
R_ARM_THM_JUMP24, R_ARM_JUMP24 and R_ARM_PLT32 relocations here.
(elf32_arm_final_link_relocate): Handle R_ARM_THM_JUMP24,
R_ARM_JUMP24 and R_ARM_PLT32 relocations.

testsuite/
* ld-arm/arm-call.d: Update expected result.
* ld-arm/arm-pic-veneer.d: Likewise.
* ld-arm/thumb2-b-interwork.d: Likewise.

15 years ago * ld-scripts/rgn-at1.d: Cope with larger padding on sections.
Nathan Sidwell [Wed, 22 Apr 2009 11:57:35 +0000 (11:57 +0000)]
* ld-scripts/rgn-at1.d: Cope with larger padding on sections.
* ld-scripts/rgn-at2.d: Likewise.
* ld-scripts/rgn-at3.d: Likewise.

15 years ago * config/tc-mips.c (macro_end, md_convert_frag): Use '%s' for
Nathan Sidwell [Wed, 22 Apr 2009 11:40:25 +0000 (11:40 +0000)]
* config/tc-mips.c (macro_end, md_convert_frag): Use '%s' for
as_bad calls to silence compiler warning.

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

15 years ago bfd/
Daniel Jacobowitz [Tue, 21 Apr 2009 22:05:04 +0000 (22:05 +0000)]
bfd/
* elf32-arm.c (INTERWORK_FLAG): Check BFD_LINKER_CREATED.
(elf32_arm_write_section): Declare early.
(elf32_arm_size_stubs): Skip non-stub sections in the stub BFD.
(arm_allocate_glue_section_space): Exclude empty sections.
(ARM_GLUE_SECTION_FLAGS): Add SEC_LINKER_CREATED.
(bfd_elf32_arm_add_glue_sections_to_bfd): Do not skip the stub
BFD.
(elf32_arm_output_glue_section, elf32_arm_final_link): New.
(elf32_arm_merge_eabi_attributes): Skip the stub BFD.
(elf32_arm_size_dynamic_sections): Allocate interworking
sections here.
(bfd_elf32_bfd_final_link): Define.

ld/
* emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open)
(arm_elf_set_bfd_for_interworking): Delete.
(arm_elf_before_allocation): Do not set the interworking BFD.
Move allocation inside not-dynamic block.
(arm_elf_create_output_section_statements): Create glue sections
and set the interworking BFD here.
(LDEMUL_AFTER_OPEN): Delete.

ld/testsuite/
* ld-arm/farcall-mix.d, ld-arm/farcall-mix2.d,
ld-arm/farcall-group-size2.d, ld-arm/farcall-group.d,
ld-arm/farcall-mixed-lib.d: Update for linker changes.

15 years ago2009-04-21 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 21 Apr 2009 17:08:20 +0000 (17:08 +0000)]
2009-04-21  H.J. Lu  <hongjiu.lu@intel.com>

* coff-ia64.c (COFF_PAGE_SIZE): Changed to 8K.

* coffcode.h (coff_compute_section_file_positions): Clear
D_PAGED if PE section alignment is smaller than COFF_PAGE_SIZE.

* libcoff-in.h (pe_tdata): Remove force_minimum_alignment and
force_minimum_alignment.

* libcoff.h: Regenerated.

* pei-ia64.c (PEI_TARGET_SUBSYSTEM): Removed.
(PEI_FORCE_MINIMUM_ALIGNMENT): Likewise.

* peicode.h (pe_mkobject): Don't set force_minimum_alignment
nor target_subsystem.

* peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't check
force_minimum_alignment nor target_subsystem.

15 years ago2009-04-21 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 21 Apr 2009 16:23:12 +0000 (16:23 +0000)]
2009-04-21  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386-intel.c (O_XXX): Reorder.

15 years ago * texinfo/texinfo.tex: Update to version 2009-03-28.05.
Joseph Myers [Tue, 21 Apr 2009 12:36:46 +0000 (12:36 +0000)]
* texinfo/texinfo.tex: Update to version 2009-03-28.05.

15 years agobfd/ChangeLog
Dave Korn [Tue, 21 Apr 2009 02:13:48 +0000 (02:13 +0000)]
bfd/ChangeLog

2009-04-21  Kai Tietz  <kai.tietz@onevision.com>

* coff-x86_64.c (PEI_HEADERS): Protect includes.
(bfd_pe_print_pdata): Remove #ifdef PE variation.
* pei-x86_64.c (PEI_HEADERS): Define to prevent double
include in coff-x86_64.c of headers.
(PDATA_ROW_SIZE): New define.
(pex_regs[]): New static array.
(pex64_get_runtime_function): New static function.
(pex64_get_unwind_info): Likewise.
(pex64_get_scope_entry): Likewise.
(pex64_xdata_print_uwd_codes): Likewise.
(pep_get_section_by_rva): Likewise.
(pex64_dump_xdata): Likewise.
(pex64_bfd_print_pdata): Likewise.
(bfd_pe_print_pdata): Define as pex64_bfd_print_pdata.
* peXXigen.c (_bfd_pex64_print_pdata): Removed implementation.
* libpei.h (_bfd_pex64_print_pdata): Removed declaration.

include/ChangeLog

2009-04-21  Kai Tietz  <kai.tietz@onevision.com>

* coff/pe.h (pex64_runtime_function): New structure.
(external_pex64_runtime_function): Likewise.
(pex64_unwind_code): Likewise.
(external_pex64_unwind_code): Likewise.
(pex64_unwind_info): Likewise.
(external_pex64_unwind_info): Likewise.
(external_pex64_scope): Likewise.
(pex64_scope): Likewise.
(pex64_scope_entry):  Likewise.
(external_pex64_scope_entry): Likewise.
(PEX64_IS_RUNTIME_FUNCTION_CHAINED): New macro.
(PEX64_GET_UNWINDDATA_UNIFIED_RVA): Likewise.
(PEX64_UNWCODE_CODE): Likewise.
(PEX64_UNWCODE_INFO): Likewise.
(UWOP_...): Add defines for unwind code.
(UNW_FLAG_...): Add defined for unwind info flags.
(PEX64_SCOPE_ENTRY_SIZE): New macro.
(PEX64_UWI_VERSION): Likewise.
(PEX64_UWI_FLAGS): Likewise.
(PEX64_UWI_FRAMEREG): Likewise.
(PEX64_UWI_FRAMEOFF): Likewise.
(PEX64_UWI_SIZEOF_UWCODE_ARRAY): Likewise.
(PEX64_OFFSET_TO_UNWIND_CODE): Likewise.
(PEX64_OFFSET_TO_HANDLER_RVA): Likewise.
(PEX64_OFFSET_TO_SCOPE_COUNT): Likewise.
(PEX64_SCOPE_ENTRY): Likewise.

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

15 years agoAdd files left out with previous commit.
Jan Beulich [Mon, 20 Apr 2009 06:34:52 +0000 (06:34 +0000)]
Add files left out with previous commit.

15 years agogas/
Jan Beulich [Mon, 20 Apr 2009 06:31:50 +0000 (06:31 +0000)]
gas/
2009-04-20  Jan Beulich  <jbeulich@novell.com>

* Makefile.am: Add explicit dependency of tc-i386.o on
tc-i386-intel.c.
* Makefile.in: Likewise.
* config/tc-i386.c (i386_finalize_immediate): Declare, broken
out from i386_immediate.
(i386_immediate): Slightly re-arrange, call
i386_finalize_immediate.
(i386_finalize_displacement): Declare, broken out from
i386_displacement.
(i386_displacement): Slightly re-arrange, call
i386_finalize_displacement.
(i386_intel_simplify, i386_intel_parse_name): Declare.
(this_operand): Initialize to -1.
(set_intel_syntax): Set expression rank for O_full_ptr.
(md_assemble): Set this_operand back to -1 after parsing
operands.
(x86_cons): Negate intel_syntax to indicate state. Call
i386_intel_simplify.
(md_operand): Convert if to switch. Handle '[' for Intel
syntax.
(i386_intel_operand): Delete, including all helper functions
and data.
* config/tc-i386-intel.c: New file, all new code.
* config/tc-i386.h (i386_operator): Declare.
(md_operator): Define to i386_operator.
(i386_need_index_operator): Declare.
(md_need_index_operator): Define to i386_need_index_operator.
(O_full_ptr): Define.

gas/testsuite/
2009-04-20  Jan Beulich  <jbeulich@novell.com>

* gas/i386/equ.s: Adjust.
* gas/i386/equ.d: Remove reference to equ.e.
* gas/i386/equ.e: Delete.
* gas/i386/intel-expr.s: New.
* gas/i386/intel-expr.d: New.
* gas/i386/i386.exp: Run new test.
* gas/i386/intel.s: Adjust.
* gas/i386/intel.e: Remove no longer valid warning messages.
* gas/i386/intel16.s: Adjust.
* gas/i386/intel16.d: Remove reference to intel16.e.
* gas/i386/intel16.e: Delete.
* gas/i386/intelbad.s: Add more tests.
* gas/i386/intelbad.l: Adjust.
* gas/i386/intelok.s: Remove now unneeded equates. Add more
tests.
* gas/i386/intelok.d: Remove reference to intelok.e. Adjust.
* gas/i386/intelok.e: Delete.
* gas/i386/x86_64.s: Adjust.
* gas/i386/x86_64.d: Remove reference to x86_64.e.
* gas/i386/x86_64.e: Delete.

15 years agogas/
Jan Beulich [Mon, 20 Apr 2009 06:26:23 +0000 (06:26 +0000)]
gas/
2009-04-20  Jan Beulich  <jbeulich@novell.com>

* expr.c (operand): Call md_need_index_operator() and
md_operator() if defined. Add unary label.
(operator): Call md_operator() if defined.
(expr): Adjust assertions on range and rank of op_left and
op_right. Don't abort on unhandled operators when reducing
expressions with both operands being constant.
(expr_set_rank): New.
* expr.h (expr_set_rank): Declare.

15 years ago2009-04-19 Peter O'Gorman <binutils@mlists.thewrittenword.com>
Alan Modra [Mon, 20 Apr 2009 01:09:43 +0000 (01:09 +0000)]
2009-04-19  Peter O'Gorman  <binutils@mlists.thewrittenword.com>
            Alan Modra  <amodra@bigpond.net.au>
            Dave Korn  <dave.korn.cygwin@gmail.com>

* peXXigen.c (_bfd_XXi_swap_sym_in): Fix name handling w.r.t
long names and non-NUL-terminated strings.

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

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

15 years ago[cgen]
DJ Delorie [Sat, 18 Apr 2009 02:56:43 +0000 (02:56 +0000)]
[cgen]
* cpu/mep-c5.cpu (f-12s20): Change to signed.
(lhucpm1): Limit to C5 mach.
(dsp0,dsp1): Rewrite as aliases so that intrinsics are generated.
* cpu/mep-core.cpu (extend-cdisp10): New.
(f-cdisp10): Change to signed, use extend-cdisp10 to sign extend.

[opcodes]
* mep-desc.c: Regenerate.
* mep-ibld.c: Regenerate.
* mep-opc.c: Regenerate.
* mep-opc.h: Regenerate.

[sid/component/cgen-cpu/mep]
* mep-core1-decode.cxx: Regenerate.
* mep-core1-decode.h: Regenerate.
* mep-decode.cxx: Regenerate.
* mep-decode.h: Regenerate.

15 years agoAdd missing ChangeLog entry:
DJ Delorie [Sat, 18 Apr 2009 01:50:02 +0000 (01:50 +0000)]
Add missing ChangeLog entry:
* mep-asm.c: Regenerate.
* mep-desc.c: Regenerate.
* mep-desc.h: Regenerate.
* mep-dis.c: Regenerate.
* mep-ibld.c: Regenerate.
* mep-opc.c: Regenerate.
* mep-opc.h: Regenerate.

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

15 years ago2009-04-17 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 17 Apr 2009 22:50:18 +0000 (22:50 +0000)]
2009-04-17  H.J. Lu  <hongjiu.lu@intel.com>

* bfd-in2.h: Regenerated.

15 years agobfd/
H.J. Lu [Fri, 17 Apr 2009 15:03:48 +0000 (15:03 +0000)]
bfd/

2009-04-17  H.J. Lu  <hongjiu.lu@intel.com>

* peXXigen.c (_bfd_XX_print_private_bfd_data_common): Replace
IMAGE_SUBSYSTEM_EFI_ROM with IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER.

binutils/

2009-04-17  H.J. Lu  <hongjiu.lu@intel.com>

* objcopy.c (set_pe_subsystem): Replace efi-rom with sal-rtd.
* doc/binutils.texi: Likewise.

include/coff/

2009-04-17  H.J. Lu  <hongjiu.lu@intel.com>

* pe.h (IMAGE_SUBSYSTEM_EFI_ROM): Renamed to ...
(IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER): This.

15 years agobfd/
H.J. Lu [Fri, 17 Apr 2009 13:46:18 +0000 (13:46 +0000)]
bfd/

2009-04-17  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/10074
* coffcode.h (bfd_pei_p): New.

* config.bfd: Remove bfd_efi_bsdrv_ia32_vec,
bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
bfd_efi_rtdrv_x86_64_vec, bfd_efi_bsdrv_ia64_vec and
bfd_efi_rtdrv_ia64_vec.  Replace bfd_efi_app_ia32_vec,
bfd_efi_app_x86_64_vec and bfd_efi_app_ia64_vec with
i386pei_vec, x86_64pei_vec and bfd_pei_ia64_vec, respectively.

* configure.in: Remove bfd_efi_bsdrv_ia32_vec,
bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
bfd_efi_rtdrv_x86_64_vec,
bfd_efi_bsdrv_ia64_vec and bfd_efi_rtdrv_ia64_vec.  Replace
bfd_efi_ia64_vec with bfd_pei_ia64_vec.
* targets.c: Likewise.

* configure: Regenerated.
* libcoff.h: Likewise.
* Makefile.in: Likewise.

* efi-app-ia32.c: Removed.
* efi-app-x86_64.c: Likewise.
* efi-bsdrv-ia32.c: Likewise.
* efi-bsdrv-ia64.c: Likewise.
* efi-bsdrv-x86_64.c: Likewise.
* efi-rtdrv-ia32.c: Likewise.
* efi-rtdrv-ia64.c: Likewise.
* efi-rtdrv-x86_64.c: Likewise.
* efi-rtdrv-ia32.c: Likewise.

* efi-app-ia64.c: Moved to ...
* pei-ia64.c: This.
(TARGET_SYM): Set to bfd_pei_ia64_vec.
(TARGET_NAME): Set to pei-ia64.

* libpei.h (bfd_target_pei_p): Removed.
(bfd_target_pei_arch): Likewise.
(bfd_target_efi_app_p): Likewise.
(bfd_target_efi_app_arch): Likewise.
(bfd_target_efi_bsdrv_p): Likewise.
(bfd_target_efi_bsdrv_arch): Likewise.
(bfd_target_efi_rtdrv_p): Likewise.
(bfd_target_efi_rtdrv_arch): Likewise.
(bfd_pe_executable_p): Likewise.

* Makefile.am (BFD32_BACKENDS): Remove efi-app-ia32.lo,
efi-bsdrv-ia32.lo and efi-rtdrv-ia32.lo.
(BFD32_BACKENDS_CFILES): Remove efi-app-ia32.c, efi-bsdrv-ia32.c
and efi-rtdrv-ia32.c.
(BFD64_BACKENDS): Remove efi-app-ia64.lo, efi-bsdrv-ia64.lo,
efi-rtdrv-ia64.lo, efi-app-x86_64.lo, efi-bsdrv-x86_64.lo and
efi-rtdrv-x86_64.lo. Add pei-ia64.lo.
(BFD64_BACKENDS_CFILES): Remove efi-app-ia64.c, efi-bsdrv-ia64.c,
efi-rtdrv-ia64.c, efi-app-x86_64.c, efi-bsdrv-x86_64.c and
efi-rtdrv-x86_64.c. Add pei-ia64.c.
(efi-app-ia64.lo): Removed.
(efi-bsdrv-ia32.lo): Likewise.
(efi-rtdrv-ia32.lo): Likewise.
(efi-app-ia64.lo): Likewise.
(efi-bsdrv-ia64.lo): Likewise.
(efi-rtdrv-ia64.lo): Likewise.
(efi-app-x86_64.lo): Likewise.
(efi-bsdrv-x86_64.lo): Likewise.
(efi-rtdrv-x86_64.lo): Likewise.
(pei-ia64.lo): New.

* peicode.h (coff_swap_scnhdr_in): Replace bfd_pe_executable_p
with bfd_pei_p.
(arch_type): Removed.
(pe_arch): Likewise.
(pe_bfd_object_p): Just return coff_object_p.

* peXXigen.c (_bfd_XXi_swap_scnhdr_out): Replace
bfd_pe_executable_p with bfd_pei_p.

binutils/

2009-04-17  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/10074
* objcopy.c: Include coff/i386.h and coff/pe.h.
(pe_file_alignment): New.
(pe_heap_commit): Likewise.
(pe_heap_reserve): Likewise.
(pe_image_base): Likewise.
(pe_section_alignment): Likewise.
(pe_stack_commit): Likewise.
(pe_stack_reserve): Likewise.
(pe_subsystem): Likewise.
(pe_major_subsystem_version): Likewise.
(pe_minor_subsystem_version): Likewise.
(set_pe_subsystem): Likewise.
(convert_efi_target): Likewise.
(command_line_switch): Add OPTION_FILE_ALIGNMENT,
OPTION_HEAP, OPTION_IMAGE_BASE, OPTION_SECTION_ALIGNMENT,
OPTION_STACK and OPTION_SUBSYSTEM.
(copy_options): Likewise.
(copy_usage): Add --file-alignment, --heap, --image-base,
--section-alignment, --stack and --subsystem.
(copy_object): Set up PE parameters.
(copy_main): Process Add OPTION_FILE_ALIGNMENT,
OPTION_HEAP, OPTION_IMAGE_BASE, OPTION_SECTION_ALIGNMENT,
OPTION_STACK and OPTION_SUBSYSTEM.   Convert EFI target to
PEI target.

* NEWS: Mention --file-alignment, --heap, --image-base,
--section-alignment, --stack and --subsystem command line
options for objcopy.

* doc/binutils.texi: Document --file-alignment, --heap,
--image-base, --section-alignment, --stack and --subsystem
command line options for objcopy.

15 years ago2009-04-17 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Fri, 17 Apr 2009 13:04:41 +0000 (13:04 +0000)]
2009-04-17  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (elf32_arm_size_stubs): Handle long branches through
PLT entries to an undefined symbol when generating a shared
library.

testsuite/
* ld-arm/arm-elf.exp: Add new test farcall-mixed-lib.
* ld-arm/farcall-mixed-lib.d: Update expected output.
* ld-arm/farcall-mixed-lib1.s: New file.
* ld-arm/farcall-mixed-lib2.s: New file.

15 years ago PR 9909
Nick Clifton [Fri, 17 Apr 2009 12:08:10 +0000 (12:08 +0000)]
    PR 9909
        * coffcode.h (handle_COMDAT): Allow for external COMDAT symbols.
        [delta to coffcode.h accidentally committed with a previous patch]

15 years ago * config.sub, config.guess: Update from upstream sources.
Ben Elliston [Fri, 17 Apr 2009 11:40:14 +0000 (11:40 +0000)]
* config.sub, config.guess: Update from upstream sources.

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

15 years agobfd/
Richard Sandiford [Thu, 16 Apr 2009 23:07:00 +0000 (23:07 +0000)]
bfd/
* aout-adobe.c (aout_32_bfd_define_common_symbol): Define.
* aout-target.h (MY_bfd_define_common_symbol): Likewise.
* aout-tic30.c (MY_bfd_define_common_symbol): Likewise.
* binary.c (binary_bfd_define_common_symbol): Likewise.
* bout.c (b_out_bfd_define_common_symbol): Likewise.
* coff-alpha.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
* coff-mips.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
* coffcode.h (coff_bfd_define_common_symbol): Likewise.
* elfxx-target.h (bfd_elfNN_bfd_define_common_symbol): Likewise.
* i386msdos.c (msdos_bfd_define_common_symbol): Likewise.
* i386os9k.c (os9k_bfd_define_common_symbol): Likewise.
* ieee.c (ieee_bfd_define_common_symbol): Likewise.
* ihex.c (ihex_bfd_define_common_symbol): Likewise.
* libbfd-in.h (_bfd_nolink_bfd_define_common_symbol): Likewise.
* mach-o.c (bfd_mach_o_bfd_define_common_symbol): Likewise.
* mmo.c (mmo_bfd_define_common_symbol): Likewise.
* nlm-target.h (nlm_bfd_define_common_symbol): Likewise.
* oasys.c (oasys_bfd_define_common_symbol): Likewise.
* pef.c (bfd_pef_bfd_define_common_symbol): Likewise.
* ppcboot.c (ppcboot_bfd_define_common_symbol): Likewise.
* som.c (som_bfd_define_common_symbol): Likewise.
* srec.c (srec_bfd_define_common_symbol): Likewise.
* tekhex.c (tekhex_bfd_define_common_symbol): Likewise.
* versados.c (versados_bfd_define_common_symbol): Likewise.
* vms.c (vms_bfd_define_common_symbol): Likewise.
* xcoff-target.h (_bfd_xcoff_bfd_define_common_symbol): Likewise.
* xsym.c (bfd_sym_bfd_define_common_symbol): Likewise.
* coff-rs6000.c (rs6000coff_vec): Add _bfd_xcoff_define_common_symbol.
(pmac_xcoff_vec): Likewise.
* coff64-rs6000.c (rs6000coff64_vec): Likewise.
(aix5coff64_vec): Likewise.
* linker.c (bfd_generic_define_common_symbol): New function.
* targets.c (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_define_common_symbol.
(_bfd_define_common_symbol): New field.
* libcoff-in.h (_bfd_xcoff_define_common_symbol): Declare.
* xcofflink.c (_bfd_xcoff_define_common_symbol): New function.
(xcoff_build_ldsyms): Don't set XCOFF_DEF_REGULAR for common
symbols here.
* bfd-in2.h: Regenerate.
* libbfd.h: Likewise.
* libcoff.h: Likewise.

ld/
* ldlang.c (lang_one_common): Use bfd_define_common_symbol.

ld/testsuite/
* ld-powerpc/aix-export-2.s, ld-powerpc/aix-export-2.nd: New test.
* ld-powerpc/aix52.exp: Run it.

15 years agoFix typo in previous commit.
Nick Clifton [Thu, 16 Apr 2009 17:11:21 +0000 (17:11 +0000)]
Fix typo in previous commit.

15 years agoAdd new binutils target: moxie
Nick Clifton [Thu, 16 Apr 2009 15:39:48 +0000 (15:39 +0000)]
Add new binutils target: moxie

15 years agogas/
Jan Beulich [Thu, 16 Apr 2009 08:52:27 +0000 (08:52 +0000)]
gas/
2009-04-16  Jan Beulich  <jbeulich@novell.com>

* expr.c: Include limits.h if available, and #define CHAR_BITS
otherwise.
(expr): Check range of shift count when evaluating a constant
expression.

15 years agobinutils/testsuite/
Alan Modra [Thu, 16 Apr 2009 04:24:07 +0000 (04:24 +0000)]
binutils/testsuite/
* binutils-all/localize-hidden-1.s: Use "==" instead of ".set".
* binutils-all/localize-hidden-2.s: Likewise.
gas/testsuite/
* gas/all/gas.exp: Disable assign and assign-ok tests on blackfin.
* gas/all/p2425.s: Use "==" instead of "=".
* gas/all/weakref1.s: Likewise.
* gas/macros/and.s: Likewise.
* gas/macros/test1.s: Likewise.
* gas/hppa/parse/parse.exp: Remove xfail on block1.
ld/testsuite/
* ld-libs/lib-1.s: Use "==" instead of ".set".
* ld-libs/lib-2.s: Likewise.
* ld-scripts/defined.s: Likewise.

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

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

bfd/
* elf32-arm.c (elf32_arm_final_link_relocate): Don't convert ARM
branch to an undef weak symbol into a jump to next instruction if
a PLT entry will be created.

testsuite/
* ld-arm/arm-elf.exp: Add 1 more test to check undef weak
reference with PLT in ARM mode.
* ld-arm/thumb2-bl-undefweak1.d, ld-arm/thumb2-bl-undefweak1.s:
New files.

15 years agogas/
Jan Beulich [Wed, 15 Apr 2009 13:33:03 +0000 (13:33 +0000)]
gas/
2009-04-15  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (process_operands): Print operands in
correct order depending on intel_syntax.

gas/testsuite/
2009-04-15  Jan Beulich  <jbeulich@novell.com>

* gas/i386/intel.e: Adjust expectations.

15 years agogas/testsuite/
Jan Beulich [Wed, 15 Apr 2009 13:31:28 +0000 (13:31 +0000)]
gas/testsuite/
2009-04-15  Jan Beulich  <jbeulich@novell.com>

* gas/i386/x86-64-sse5.s: Add test of protd.
* gas/i386/x86-64-sse5.d: Adjust expectations to match input.

opcodes/
2009-04-15  Jan Beulich  <jbeulich@novell.com>

* i386-opc.tbl (protb, protw, protd, protq): Set opcode
extension to None.
(pshab, pshaw, pshad, pshaq): Likewise.
* i386-tbl.h: Re-generate.

15 years agogprof/
Kazu Hirata [Wed, 15 Apr 2009 03:22:42 +0000 (03:22 +0000)]
gprof/
* gprof.h: Include gconfig.h.  #undef PACKAGE.

ld/
* ldlang.c: Do not include limits.h.

15 years agodaily update
Alan Modra [Wed, 15 Apr 2009 01:00:04 +0000 (01:00 +0000)]
daily update

15 years agomerge from gcc
DJ Delorie [Tue, 14 Apr 2009 18:05:58 +0000 (18:05 +0000)]
merge from gcc

15 years agobfd/ChangeLog
Dave Korn [Tue, 14 Apr 2009 09:47:44 +0000 (09:47 +0000)]
bfd/ChangeLog

* coffgen.c (make_a_section_from_file):  Set the backend long
section names enable if long section names found on input.
* coffcode.h:  Extend long section names documentation to match.

binutils/ChangeLog

* objcopy.c (enum long_section_name_handling):  New enum type.
(enum command_line_switch):  Add OPTION_LONG_SECTION_NAMES.
(copy_options[]):  Add entry for --long-section-names option.
(copy_usage):  Document it.
(set_long_section_mode):  New subroutine.
(copy_file):  Call it.
(copy_main):  Accept OPTION_LONG_SECTION_NAMES and parse arg.
* doc/binutils.texi:  Update objcopy documentation with details
of new option.

15 years ago PR ld/10047
Alan Modra [Tue, 14 Apr 2009 03:17:21 +0000 (03:17 +0000)]
PR ld/10047
* ldfile.c (find_scripts_dir): Use make_relative_prefix to find
ldscripts in build tree.  Don't repeat search for ../lib/ldscripts.

15 years ago2009-04-13 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 14 Apr 2009 02:47:22 +0000 (02:47 +0000)]
2009-04-13  H.J. Lu  <hongjiu.lu@intel.com>

* ldfile.c (ldfile_find_command_file): Revert the last change.

15 years agodaily update
Alan Modra [Tue, 14 Apr 2009 01:00:05 +0000 (01:00 +0000)]
daily update

15 years agoMerged from gcc head revision 146001.
Kai Tietz [Mon, 13 Apr 2009 10:48:27 +0000 (10:48 +0000)]
Merged from gcc head revision 146001.
2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>

        PR target/39397
        * pex-common.h (struct pex_obj): Store pid values as pid_t,
        not as long (members *children and (*wait))
        * pex-common.c (pex_run_in_environment): Likewise.
        * pex-win32.c (pex_win32_wait): Return pid_t and properly check
        returned pid value.
        * pex-djgpp.c (pex_djgpp_wait): Return pid_t.
        * pex-msdos.c (pex_msdos_wait): Likewise.