OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
17 years ago2007-05-22 Paul Brook <paul@codesourcery.com>
Paul Brook [Tue, 22 May 2007 15:05:12 +0000 (15:05 +0000)]
2007-05-22  Paul Brook  <paul@codesourcery.com>

bunutils/
* objdump.c (find_symbol_for_address): Merge section and target
specific filtering code.

ld/testsuite/
* ld-arm-mixed-lib.d: Update expected output.
* ld-arm/arm-app.d: Ditto.
* ld-arm/mixed-app.d: Ditto.
* ld-arm/arm-lib-plt32.d: Ditto.
* ld-arm/arm-app-abs32.d: Ditto.
* ld-arm/mixed-app-v5.d: Ditto.
* ld-arm/armthumb-lib.d: Ditto.
* ld-arm/arm-lib.d: Ditto.

gas/testsuite/
* gas/arm/backslash-at.d: Update expected output.

17 years agoUse @copying around copyright notices
Nick Clifton [Tue, 22 May 2007 09:16:39 +0000 (09:16 +0000)]
Use @copying around copyright notices

17 years agodaily update
Alan Modra [Tue, 22 May 2007 00:00:06 +0000 (00:00 +0000)]
daily update

17 years ago* bfdint.texi: Add GNU Free Documentation License notice.
Nick Clifton [Mon, 21 May 2007 16:39:51 +0000 (16:39 +0000)]
* bfdint.texi: Add GNU Free Documentation License notice.

17 years agoMove entry for modification to dwarf2.h (for adding ability to report
Caroline Tice [Mon, 21 May 2007 16:35:11 +0000 (16:35 +0000)]
Move entry for modification to dwarf2.h (for adding ability to report
when a variable's value is uninitialized) to the correct ChangeLog file.

17 years agomoved to the attic to please handling of src-support module
Paolo Bonzini [Mon, 21 May 2007 16:07:45 +0000 (16:07 +0000)]
moved to the attic to please handling of src-support module

17 years agoadd this momentarily, will move them to the attic soon
Paolo Bonzini [Mon, 21 May 2007 16:05:57 +0000 (16:05 +0000)]
add this momentarily, will move them to the attic soon

17 years agobinutils/
Richard Sandiford [Mon, 21 May 2007 06:36:01 +0000 (06:36 +0000)]
binutils/
* objdump.c (disassemble_bytes): Ignore disassembler_needs_relocs
for executables and shared libraries.

ld/testsuite/
* ld-arm/emit-relocs1.d, ld-arm/emit-relocs1.s,
* ld-arm/emit-relocs1-vxworks.d: New tests.
* ld-arm/arm-elf.exp: Run them.
* ld-arm/vxworks1.dd: Expect proper branch targets.

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

17 years agodaily update
Alan Modra [Sun, 20 May 2007 00:00:05 +0000 (00:00 +0000)]
daily update

17 years agodaily update
Alan Modra [Sat, 19 May 2007 00:00:13 +0000 (00:00 +0000)]
daily update

17 years agoAdd ability to report when a variable's value is uninitialized,
Caroline Tice [Fri, 18 May 2007 19:42:42 +0000 (19:42 +0000)]
Add ability to report when a variable's value is uninitialized,
based on information provided by the compiler.  Also add new
DWARF OP, DW_OP_GNU_uninit, for this purpose.

17 years ago * ld-elf/group.ld: Discard .reginfo.
Joseph Myers [Fri, 18 May 2007 19:04:51 +0000 (19:04 +0000)]
* ld-elf/group.ld: Discard .reginfo.

17 years ago * config/tc-mips.c (s_mipsset): Use generic s_set for directives
Joseph Myers [Fri, 18 May 2007 19:03:53 +0000 (19:03 +0000)]
* config/tc-mips.c (s_mipsset): Use generic s_set for directives
containing a comma.

17 years agold/
Richard Sandiford [Fri, 18 May 2007 09:18:18 +0000 (09:18 +0000)]
ld/
* emulparams/elf32ebmipvxworks.sh (OTHER_READONLY_SECTIONS)
(OTHER_READWRITE_SECTIONS): Define.  Add .rdata sections.

17 years ago * objcopy.c (strip_main): Detect identical input and output file
Nathan Sidwell [Fri, 18 May 2007 06:36:14 +0000 (06:36 +0000)]
* objcopy.c (strip_main): Detect identical input and output file
names.
(copy_main): Refactor tempname detection and use.

17 years ago * ppc-dis.c (print_insn_powerpc): Don't skip all operands
Alan Modra [Fri, 18 May 2007 01:32:58 +0000 (01:32 +0000)]
* ppc-dis.c (print_insn_powerpc): Don't skip all operands
after setting skip_optional.

17 years ago2007-05-18 Paul Brook <paul@codesourcery.com>
Paul Brook [Fri, 18 May 2007 00:25:04 +0000 (00:25 +0000)]
2007-05-18  Paul Brook  <paul@codesourcery.com>

bfd/
* elf32-arm.c (ARM2THUMB_V5_STATIC_GLUE_SIZE): Define.
(a2t1v5_ldr_insn, a2t1v5_ldr_insn): New.
(record_arm_to_thumb_glue): Add v5t non-pic glue.
(elf32_arm_create_thumb_stub): Ditto.

ld/testsuite/
* ld-arm/arm-call.d: Update expected output.

17 years agodaily update
Alan Modra [Fri, 18 May 2007 00:00:05 +0000 (00:00 +0000)]
daily update

17 years agoMove testsuite entries to testsuite/ChangeLog.
H.J. Lu [Thu, 17 May 2007 17:31:22 +0000 (17:31 +0000)]
Move testsuite entries to testsuite/ChangeLog.

17 years ago2007-05-17 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 17 May 2007 17:27:26 +0000 (17:27 +0000)]
2007-05-17  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/4517
2003-06-05  Michal Ludvig  <mludvig@suse.cz>
* as.texinfo: Document new directives: .cfi_restore,
.cfi_undefined, .cfi_same_value, .cfi_return_column,
.cfi_remember_state and .cfi_restore_state.

2007-05-17  H.J. Lu  <hongjiu.lu@intel.com>

2003-06-05  Michal Ludvig  <mludvig@suse.cz>
* testsuite/gas/cfi/cfi-x86_64.s: Test new directives
and different writings of registers and numbers.
* testsuite/gas/cfi/cfi-x86_64.d: Updated pattern to
match the above change.

17 years ago2007-05-17 Paul Brook <paul@codesourcery.com>
Paul Brook [Thu, 17 May 2007 16:54:38 +0000 (16:54 +0000)]
2007-05-17  Paul Brook  <paul@codesourcery.com>

ld/testsuite/
* ld-elf/multibss1.s: Use %nobits instead of @nobits.

17 years ago * ld-m68k/merge-error-1a.d: Mismatch is an error.
Nathan Sidwell [Thu, 17 May 2007 13:11:42 +0000 (13:11 +0000)]
* ld-m68k/merge-error-1a.d: Mismatch is an error.
* ld-m68k/merge-error-1b.d: Likewise.
* ld-m68k/merge-error-1c.d: Likewise.
* ld-m68k/merge-error-1d.d: Likewise.
* ld-m68k/merge-error-1e.d: Likewise.

17 years ago * config/tc-m68k.c (md_apply_fix): Show value of out of range
Nathan Sidwell [Thu, 17 May 2007 13:10:42 +0000 (13:10 +0000)]
* config/tc-m68k.c (md_apply_fix): Show value of out of range
fixups in error message.
(md_conver_frag_1): Propagate the fix source location and use
as_bad_where rather than fatal, for better error messages.

17 years ago* objdump.c (load_debug_section): Select bias for DWARF debug addresses based on...
Nick Clifton [Thu, 17 May 2007 08:39:22 +0000 (08:39 +0000)]
* objdump.c (load_debug_section): Select bias for DWARF debug addresses based on the flavour of the bfd.

17 years ago * ppc-dis.c (operand_value_powerpc, skip_optional_operands): New.
Peter Bergner [Thu, 17 May 2007 00:52:14 +0000 (00:52 +0000)]
* ppc-dis.c (operand_value_powerpc, skip_optional_operands): New.
(print_insn_powerpc): Use the new operand_value_powerpc and
skip_optional_operands functions to omit or print all optional
operands as a group.
* ppc-opc.c (BFF, W, XFL_L, XWRA_MASK): New.
(XFL_MASK): Delete L and W bits from the mask.
(mtfsfi, mtfsfi.): Replace use of BF with BFF.  Relpace use of XRA_MASK
with XWRA_MASK.  Use W.
(mtfsf, mtfsf.): Use XFL_L and W.

17 years ago * binutils-all/strip-3.d: Strip .pdr section.
Joseph Myers [Thu, 17 May 2007 00:06:22 +0000 (00:06 +0000)]
* binutils-all/strip-3.d: Strip .pdr section.

17 years agodaily update
Alan Modra [Thu, 17 May 2007 00:00:07 +0000 (00:00 +0000)]
daily update

17 years ago2007-05-16 Paul Brook <paul@codesourcery.com>
Paul Brook [Wed, 16 May 2007 21:06:54 +0000 (21:06 +0000)]
2007-05-16  Paul Brook  <paul@codesourcery.com>

* config/tc-arm.c (v7m_psrs): Add uppercase PSR names and xpsr.

17 years agoAdd support for SHF_MERGE sections.
Ian Lance Taylor [Wed, 16 May 2007 17:42:48 +0000 (17:42 +0000)]
Add support for SHF_MERGE sections.

17 years ago2007-05-16 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 16 May 2007 12:52:03 +0000 (12:52 +0000)]
2007-05-16  H.J. Lu  <hongjiu.lu@intel.com>
    Alan Modra  <amodra@bigpond.net.au>

* elflink.c (_bfd_elf_adjust_dynamic_copy): Align dynamic bss
section to the minimum alignment.

17 years ago2007-05-16 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Wed, 16 May 2007 09:03:22 +0000 (09:03 +0000)]
2007-05-16  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.def (bootstrap_stage): Replace stage_make_flags with
stage_cflags.
* Makefile.tpl (POSTSTAGE1_HOST_EXPORTS, POSTSTAGE1_FLAGS_TO_PASS):
Remove CFLAGS/LIBCFLAGS.
(configure-stage[+id+]-[+prefix+][+module+],
all-stage[+id+]-[+prefix+][+module+]): Pass it from [+stage_cflags+].
* Makefile.in: Regenerate.

17 years agold/
Richard Sandiford [Wed, 16 May 2007 07:19:46 +0000 (07:19 +0000)]
ld/
* configure.in: Allow sysroots to be relocated under $prefix as
well as $exec_prefix.
* configure: Regenerate.

17 years agodaily update
Alan Modra [Wed, 16 May 2007 00:00:05 +0000 (00:00 +0000)]
daily update

17 years ago2007-05-15 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 15 May 2007 13:57:03 +0000 (13:57 +0000)]
2007-05-15  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/4504
* ld-elf/data1.c: New file.
* ld-elf/data1.h: Likewise.
* ld-elf/dynbss1.c: Likewise.
* ld-elf/pass.out: Likewise.

* ld-elf/shared.exp (build_tests): Add "Build libdata1.so".
(run_tests): Add "Run with libdata1.so".

17 years ago2007-05-15 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 15 May 2007 13:55:54 +0000 (13:55 +0000)]
2007-05-15  H.J. Lu  <hongjiu.lu@intel.com>
    Alan Modra  <amodra@bigpond.net.au>

PR ld/4504
* elf-bfd.h (_bfd_elf_adjust_dynamic_copy): New.
* elflink.c (_bfd_elf_adjust_dynamic_copy): New.

* elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Call
_bfd_elf_adjust_dynamic_copy to adjust for the copy in dynamic
bss section.
* elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
* elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
* elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
* elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
* elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
* elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
* elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
* elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
* elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
* elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
* elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
* elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
* elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
* elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.

17 years agold/testsuite/
Richard Sandiford [Tue, 15 May 2007 12:22:34 +0000 (12:22 +0000)]
ld/testsuite/
* ld-arm/vxworks1.ld: Swap .bss and .data.
* ld-arm/vxworks1-lib.rd: Update accordingly.
* ld-arm/vxworks1-lib.td: New test.
* ld-arm/arm-elf.exp: Run it.

* ld-i386/vxworks1.ld: Swap .bss and .data.
* ld-i386/vxworks1-lib.rd: Update accordingly.
* ld-i386/vxworks1-lib.td: New test.
* ld-i386/i386.exp: Run it.

* ld-mips-elf/vxworks1.ld: Swap .bss and .data.
* ld-mips-elf/vxworks1-lib.rd: Update accordingly.
* ld-mips-elf/vxworks1.rd: Likewise.

* ld-powerpc/vxworks1.ld: Swap .bss and .data.
* ld-powerpc/vxworks1-lib.rd: Update accordingly.
* ld-powerpc/vxworks1-lib.td: New test.
* ld-powerpc/powerpc.exp: Run it.

* ld-sh/vxworks1.ld: Swap .bss and .data.
* ld-sh/vxworks1-lib.rd: Update accordingly.
* ld-sh/vxworks1-lib.td: New test.
* ld-sh/sh-vxworks.exp: Run it.

* ld-sparc/vxworks1.ld: Swap .bss and .data.
* ld-sparc/vxworks1-lib.rd: Update accordingly.
* ld-sparc/vxworks1-lib.td: New test.
* ld-sparc/sparc.exp: Run it.

17 years agobfd/
Richard Sandiford [Tue, 15 May 2007 12:18:53 +0000 (12:18 +0000)]
bfd/
* elfxx-mips.c (mips_elf_create_local_got_entry): Remove
input_section argument.  Create .rela.dyn relocations against
symbol 0 rather than the section symbol.
(mips_elf_local_got_index): Remove input_section argument.
Update call to mips_elf_create_local_got_entry.
(mips_elf_got_page, mips_elf_got16_entry): Likewise.
(mips_elf_calculate_relocation): Update calls to
mips_elf_local_got_index, mips_elf_got16_entry and mips_elf_got_page.

ld/testsuite/
* ld-mips-elf/vxworks1-lib.rd: Expect the GOT relocation to be
against symbol 0.

17 years ago gas/
Mark Shinwell [Tue, 15 May 2007 10:06:03 +0000 (10:06 +0000)]
gas/
* app.c (do_scrub_chars): Don't damage \@ pseudo-variables.

gas/testsuite/
* gas/arm/backslash-at.d: New.
* gas/arm/backslash-at.s: New.

17 years ago bfd/
Mark Shinwell [Tue, 15 May 2007 09:54:09 +0000 (09:54 +0000)]
bfd/
* elf32-arm.c (elf32_arm_final_link_relocate): Correctly
handle the Thumb-2 JUMP19 relocation.

ld/testsuite/
* ld-arm/arm-elf.exp: Add jump19 testcase.
* ld-arm/jump19.d: New.
* ld-arm/jump19.s: New.

17 years ago PR gas/3041
Nick Clifton [Tue, 15 May 2007 09:21:24 +0000 (09:21 +0000)]
PR gas/3041
* config/tc-m68k.c (relaxable_symbol): Make sure that the correct addend is stored for relocs against weak symbols.
    (md_apply_fix): So not loose track of addend for relocs against weak symbols.
* testsuite/gas/m68k/p3041.s: New test case.
* testsuite/gas/m68k/p3041.d: New expected disassembly.
* testsuite/gas/m68k/all.exp: Run new test for m68k-*-netbsd toolchains.
    Only run arch-cpu-1 test for ELF based toolchains.

    Tidy ups for m68k-netbsd gas toolchain:
* testsuite/gas/m68k/cpu32.d: Allow for extra text after expected disassembly.
* testsuite/gas/m68k/mcf-trap.d: Allow for alternative trap mnemonics.
* testsuite/gas/m68k/br-isab.d: Fix name of test.
* testsuite/gas/m68k/br-isac.d: Fix name of test.

17 years ago PR 4479
Alan Modra [Tue, 15 May 2007 08:39:58 +0000 (08:39 +0000)]
PR 4479
* elf.c (elf_fake_sections): Don't allow backend to change
SHT_NOBITS if called for strip/objcopy --only-keep-debug.
* elfxx-mips.c (_bfd_mips_elf_fake_sections): Remove similar
fix from here.

17 years ago * binutils-all/objcopy.exp: Only run needed-by-reloc test for ELF.
Alan Modra [Tue, 15 May 2007 04:23:50 +0000 (04:23 +0000)]
* binutils-all/objcopy.exp: Only run needed-by-reloc test for ELF.

17 years agogas/testsuite/
H.J. Lu [Tue, 15 May 2007 01:05:59 +0000 (01:05 +0000)]
gas/testsuite/

2007-05-14  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/4502
* gas/i386/amd.d: Replace "pfmulhrw" with "pmulhrw".

opcodes/

2007-05-14  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/4502
* i386-dis.c (Suffix3DNow): Replace "pfmulhrw" with "pmulhrw".

17 years agodaily update
Alan Modra [Tue, 15 May 2007 00:00:05 +0000 (00:00 +0000)]
daily update

17 years ago2007-05-14 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 14 May 2007 23:16:45 +0000 (23:16 +0000)]
2007-05-14  H.J. Lu  <hongjiu.lu@intel.com>

* hist.c (scale_and_align_entries): Avoid C99 feature.

17 years ago * config/tc-mips.c (md_parse_option): Fix parsing of -O option.
Thiemo Seufer [Mon, 14 May 2007 12:28:46 +0000 (12:28 +0000)]
* config/tc-mips.c (md_parse_option): Fix parsing of -O option.

17 years agold/testsuite/
Richard Sandiford [Mon, 14 May 2007 12:07:11 +0000 (12:07 +0000)]
ld/testsuite/
* ld-sh/vxworks1.dd: Remove hexadecimal prefixes from constant pool
contents.  Consistently use "!" as the comment character.
Consistently use _PROCEDURE_LINKAGE_TABLE_ in the first PLT entry.
* ld-sh/vxworks1-le.dd: Likewise.
* ld-sh/vxworks1-lib.dd: Likewise.
* ld-sh/vxworks1-lib-le.dd: Likewise.
* ld-sh/vxworks3.dd: Likewise.
* ld-sh/vxworks3-le.dd: Likewise.

17 years ago2007-05-14 Mei Ligang <ligang@sunnorth.com.cn>
Mei Ligang [Mon, 14 May 2007 10:06:32 +0000 (10:06 +0000)]
2007-05-14  Mei Ligang  <ligang@sunnorth.com.cn>

* config/tc-score.c (data_op2, validate_immediate): Fix bug for addri, addri.c, subi, and
subi.c when immediate number is hex.
(score_insns): Remove subis and subis.c.
(do_sub_rdi16): Delete.

17 years ago * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern):
Andreas Schwab [Mon, 14 May 2007 08:53:23 +0000 (08:53 +0000)]
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern):
Handle null pattern.

testsuite/:
* ld-elf/dl2a.list: New file.
* ld-elf/shared.exp: Add test using --dynamic-list=dl2a.list.

17 years ago * elf.c (bfd_elf_string_from_elf_section): Return NULL on
Alan Modra [Mon, 14 May 2007 04:15:53 +0000 (04:15 +0000)]
* elf.c (bfd_elf_string_from_elf_section): Return NULL on
invalid shstrndx.
(bfd_elf_get_str_section): Likewise.

17 years agodaily update
Alan Modra [Mon, 14 May 2007 00:00:05 +0000 (00:00 +0000)]
daily update

17 years agodaily update
Alan Modra [Sun, 13 May 2007 00:00:06 +0000 (00:00 +0000)]
daily update

17 years ago PR 4497
Alan Modra [Sat, 12 May 2007 14:27:34 +0000 (14:27 +0000)]
PR 4497
* elf-eh-frame.c (struct cie): Add "local_personality".  Make
"personality" a union.
(cie_eq): Compare local_personality too.  Adjust personality
comparison.
(_bfd_elf_discard_section_eh_frame): Check binding on personality
reloc sym to allow for bad symtab.  Use stashed local syms rather
than reading personality local sym.  Handle discarded sections.

17 years agoinclude/elf/
Alan Modra [Sat, 12 May 2007 06:45:33 +0000 (06:45 +0000)]
include/elf/
* spu.h (R_SPU_ADDR16X): Define.
(R_SPU_PPU32, R_SPU_PPU64): Renumber.
bfd/
* elf32-spu.c (elf_howto_table): Add howto for R_SPU_ADDR16X.

17 years agodaily update
Alan Modra [Sat, 12 May 2007 00:00:05 +0000 (00:00 +0000)]
daily update

17 years ago PR 4479
Alan Modra [Fri, 11 May 2007 14:09:50 +0000 (14:09 +0000)]
PR 4479
* objcopy.c (copy_object): Don't copy ELF program headers for
--only-keep-debug.

17 years ago * binutils-all/needed-by-reloc.s: Use .long rather than .4byte.
Alan Modra [Fri, 11 May 2007 07:16:28 +0000 (07:16 +0000)]
* binutils-all/needed-by-reloc.s: Use .long rather than .4byte.

17 years agobfd/
Alan Modra [Fri, 11 May 2007 06:39:05 +0000 (06:39 +0000)]
bfd/
* elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype.
(enum ppc_elf_plt_type): Move from..
* elf32-ppc.c: ..here.
(struct ppc_elf_obj_tdata): Add makes_plt_call and has_rel16.
(struct ppc_elf_link_hash_table): Reorder.  Add old_bfd.  Delete
can_use_new_plt.  Make is_vxworks a bitfield.
(ppc_elf_link_hash_table_create): Don't clear is_vxworks (again).
(ppc_elf_check_relocs): Update setting of reloc flags.  Set old_bfd.
(ppc_elf_select_plt_layout): Modify parameters.  Use bfd reloc
flags to better detect object files needing old bss-style plt.
Allow secure plt to be used without rel16 relocs being detected.
Warn if secure plt request cannot be allowed.
ld/
* emultempl/ppc32elf.em (plt_style): New variable.
(old_plt): Delete.
(ppc_after_open): Adjust ppc_elf_select_plt_layout call.
(PARSE_AND_LIST_PROLOGUE): Define OPTION_NEW_PLT, renumber
OPTION_OLD_PLT, OPTION_OLD_GOT and OPTION_STUBSYMS.
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add secure-plt.
(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NEW_PLT.
* ld.texinfo (--secure-plt): Document.

17 years agoinclude/elf/
Alan Modra [Fri, 11 May 2007 03:10:11 +0000 (03:10 +0000)]
include/elf/
* spu.h (R_SPU_PPU32, R_SPU_PPU64): Define.
bfd/
* reloc.c (BFD_RELOC_SPU_PPU32, BFD_RELOC_SPU_PPU64): Define.
* elf-bfd.h (struct elf_backend_data): Change return type of
elf_backend_relocate_section to int.
* elf32-spu.c (elf_howto_table): Add howtos for R_SPU_PPU32 and
R_SPU_PPU64.
(spu_elf_bfd_to_reloc_type): Convert new relocs.
(spu_elf_count_relocs): New function.
(elf_backend_count_relocs): Define.
(spu_elf_relocate_section): Arrange to emit R_SPU_PPU32 and
R_SPU_PPU64 relocs.
* elflink.c (elf_link_input_bfd): Emit relocs if relocate_section
returns 2.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
gas/
* config/tc-spu.c (md_pseudo_table): Add int, long, quad.  Call
spu_cons for word.
(md_assemble): Tidy use of insn.flag.
(get_imm): Likewise.  Handle uppercase input too.
(spu_cons): New function.
* config/tc-spu.h (tc_fix_adjustable): Don't adjust SPU_PPU relocs.
(TC_FORCE_RELOCATION): Don't resolve them either.
binutils/
* embedspu.sh (find_prog): Prefer prog in same dir as embedspu
over one found on the users path.
(main): Generate .reloc for each R_SPU_PPU* reloc.

17 years agodaily update
Alan Modra [Fri, 11 May 2007 00:00:06 +0000 (00:00 +0000)]
daily update

17 years ago2007-05-10 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 10 May 2007 18:21:13 +0000 (18:21 +0000)]
2007-05-10  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.h (ShortForm): Redefined.
(Jump): Likewise.
(JumpDword): Likewise.
(JumpByte): Likewise.
(JumpInterSegment): Likewise.
(FloatMF): Likewise.
(FloatR): Likewise.
(FloatD): Likewise.
(Size16): Likewise.
(Size32): Likewise.
(Size64): Likewise.
(IgnoreSize): Likewise.
(DefaultSize): Likewise.
(No_bSuf): Likewise.
(No_wSuf): Likewise.
(No_lSuf): Likewise.
(No_sSuf): Likewise.
(No_qSuf): Likewise.
(No_xSuf): Likewise.
(FWait): Likewise.
(IsString): Likewise.
(regKludge): Likewise.
(IsPrefix): Likewise.
(ImmExt): Likewise.
(NoRex64): Likewise.
(Rex64): Likewise.
(Ugh): Likewise.

17 years agobfd/
Richard Sandiford [Thu, 10 May 2007 17:00:03 +0000 (17:00 +0000)]
bfd/
* elf32-arm.c (elf32_arm_check_relocs): Don't create PLT entries
for R_ARM_ABS12 relocs.
(elf32_arm_finish_dynamic_symbol): Fix the loop that creates
non-shared VxWorks PLT entries.

ld/testsuite/
* ld-arm/vxworks1-lib.dd: Expect "push" instead of stmdb and
"pop" instead of ldmia.  Don't require specific symbolic addresses
for in-text addresses.  Expect data to be rendered as .words rather
than disassembled.
* ld-arm/vxworks1.dd: Likewise.

17 years ago PR 4454
Alan Modra [Thu, 10 May 2007 15:08:02 +0000 (15:08 +0000)]
PR 4454
* elf-eh-frame.c (struct cie): Make "personality" a bfd_vma.
(_bfd_elf_discard_section_eh_frame): Handle local syms on
personality relocation.

17 years agobfd/
Richard Sandiford [Thu, 10 May 2007 14:46:48 +0000 (14:46 +0000)]
bfd/
* elf.c (assign_file_positions_for_load_sections): Use p_memsz
rather than p_filesz to calculate the LMA of the end of a segment.

ld/testsuite/
* ld-elf/multibss1.d, ld-elf/multibss1.s: New test.

17 years ago * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't do copyreloc
Jakub Jelinek [Thu, 10 May 2007 11:45:07 +0000 (11:45 +0000)]
* elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't do copyreloc
processing if symbol is defined in the executable.

17 years ago* elf32-frv.c (_frvfdpic_check_discarded_relocs): New.
Alexandre Oliva [Thu, 10 May 2007 05:18:42 +0000 (05:18 +0000)]
* elf32-frv.c (_frvfdpic_check_discarded_relocs): New.
(frvfdpic_elf_discard_info): New.
(elf_backend_discard_info): Define for FDPIC.

17 years agodaily update
Alan Modra [Thu, 10 May 2007 00:00:06 +0000 (00:00 +0000)]
daily update

17 years ago bfd/
Mark Shinwell [Wed, 9 May 2007 13:02:10 +0000 (13:02 +0000)]
    bfd/
        * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Don't
        attempt to scan if the bfd doesn't correspond to an ELF image.
        (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.

17 years agodaily update
Alan Modra [Wed, 9 May 2007 00:00:06 +0000 (00:00 +0000)]
daily update

17 years ago binutils/testsuite/
Mark Shinwell [Tue, 8 May 2007 06:48:06 +0000 (06:48 +0000)]
binutils/testsuite/
* binutils-all/strip-3.d: Strip .ARM.attributes and .reginfo
sections.

17 years ago* elf32-frv.c (elf32_frv_relocate_section): Discard dynamic relocs
Alexandre Oliva [Tue, 8 May 2007 06:09:30 +0000 (06:09 +0000)]
* elf32-frv.c (elf32_frv_relocate_section): Discard dynamic relocs
for which _bfd_elf_section_offset returns -1.

17 years ago * elf32-spu.c (spu_elf_size_stubs): Use "void *" for psyms.
Alan Modra [Tue, 8 May 2007 02:29:27 +0000 (02:29 +0000)]
* elf32-spu.c (spu_elf_size_stubs): Use "void *" for psyms.
(mark_functions_via_relocs): Likewise.

17 years agomerge from gcc
DJ Delorie [Tue, 8 May 2007 01:29:33 +0000 (01:29 +0000)]
merge from gcc

17 years agodaily update
Alan Modra [Tue, 8 May 2007 00:00:06 +0000 (00:00 +0000)]
daily update

17 years ago2007-05-07 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 7 May 2007 19:01:00 +0000 (19:01 +0000)]
2007-05-07  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (threebyte_0x38_uses_DATA_prefix): Correct entries
for some SSE4 instructions.
(threebyte_0x3a_uses_DATA_prefix): Likewise.

17 years ago * ld.h (args_type, ld_config_type): Reorder fields.
Alan Modra [Mon, 7 May 2007 15:04:53 +0000 (15:04 +0000)]
* ld.h (args_type, ld_config_type): Reorder fields.
* ldmain.c (main): Don't initialise a bunch of vars we know are
zero already.

17 years ago * elflink.c (bfd_elf_final_link): Correct reloc handling for
Alan Modra [Mon, 7 May 2007 14:47:28 +0000 (14:47 +0000)]
* elflink.c (bfd_elf_final_link): Correct reloc handling for
elf_backend_count_relocs.
(bfd_elf_discard_info): Print an error if we can't read syms.

17 years ago * elf32-spu.c (spu_elf_reloc_type_lookup): Return NULL on
Alan Modra [Mon, 7 May 2007 14:37:27 +0000 (14:37 +0000)]
* elf32-spu.c (spu_elf_reloc_type_lookup): Return NULL on
invalid reloc code.
(spu_elf_gc_mark_hook, spu_elf_section_processing): Delete functions.
(elf_backend_gc_mark_hook, elf_backend_section_processing): Don't
define.

17 years ago * elf.c (assign_file_positions_for_load_sections): Don't check
Alan Modra [Mon, 7 May 2007 01:05:46 +0000 (01:05 +0000)]
* elf.c (assign_file_positions_for_load_sections): Don't check
core segment.

17 years agodaily update
Alan Modra [Mon, 7 May 2007 00:00:05 +0000 (00:00 +0000)]
daily update

17 years ago * cp-demangle.c (d_name): Detect local-source-name.
Geoffrey Keating [Sun, 6 May 2007 00:25:11 +0000 (00:25 +0000)]
* cp-demangle.c (d_name): Detect local-source-name.
(d_prefix): Likewise.
(d_unqualified_name): Implement local-source-name.

17 years agodaily update
Alan Modra [Sun, 6 May 2007 00:00:06 +0000 (00:00 +0000)]
daily update

17 years ago gas/
Mark Shinwell [Sat, 5 May 2007 16:23:57 +0000 (16:23 +0000)]
gas/
* config/tc-arm.c (md_apply_fix): Generate more accurate
diagnostic when 8-bit immediate range is exceeded for
BFD_RELOC_ARM_OFFSET_IMM8.

17 years ago * multempl/avrelf.em (PARSE_AND_LIST_ARGS_CASES): Add new value for
Denis Chertykov [Sat, 5 May 2007 06:51:24 +0000 (06:51 +0000)]
* multempl/avrelf.em (PARSE_AND_LIST_ARGS_CASES): Add new value for
"--pmem-wrap-around".
(PARSE_AND_LIST_OPTIONS): Describe new value for "--pmem-wrap-around".

17 years agodaily update
Alan Modra [Sat, 5 May 2007 00:00:06 +0000 (00:00 +0000)]
daily update

17 years ago2007-05-04 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 4 May 2007 21:53:02 +0000 (21:53 +0000)]
2007-05-04  H.J. Lu  <hongjiu.lu@intel.com>

* elflink.c (elf_link_sort_relocs): Return if both .rela.dyn
and .rel.dyn aren't present.

17 years ago * gas/m68k/all.exp: Skip fmoveml on fido.
Kazu Hirata [Fri, 4 May 2007 15:45:21 +0000 (15:45 +0000)]
* gas/m68k/all.exp: Skip fmoveml on fido.

17 years ago* elflink.c (elf_link_sort_relocs): If both .rela.dyn and .rel.dyn sections
Nick Clifton [Fri, 4 May 2007 14:17:07 +0000 (14:17 +0000)]
* elflink.c (elf_link_sort_relocs): If both .rela.dyn and .rel.dyn sections
  are present examine the indirect sections in an attempt to compute the
  correct relocation size.  If there is any ambiguity, produce an error and
  refuse to sort.

17 years ago2007-05-03 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 4 May 2007 00:44:36 +0000 (00:44 +0000)]
2007-05-03  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/4460
* gas/i386/gotpc.s: Add a new test.
* gas/i386/reloc64.s: Likewise.

* gas/i386/gotpc.d: Updated.
* gas/i386/reloc64.d: Likewise.

17 years ago PR gas/4460
Alan Modra [Fri, 4 May 2007 00:02:47 +0000 (00:02 +0000)]
PR gas/4460
* config/tc-i386.c (lex_got): Don't replace the reloc token with
a space if we already have a space.

17 years agodaily update
Alan Modra [Fri, 4 May 2007 00:00:06 +0000 (00:00 +0000)]
daily update

17 years ago * filename_cmp.c: Replace include of ctype.h by include of
Joel Brobecker [Thu, 3 May 2007 23:40:11 +0000 (23:40 +0000)]
    * filename_cmp.c: Replace include of ctype.h by include of
        safe-ctype.h.
        (filename_cmp): Use TOLOWER instead of tolower for conversions
        that are locale-independent.
        * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h.

17 years agogas/
H.J. Lu [Thu, 3 May 2007 21:07:16 +0000 (21:07 +0000)]
gas/

2007-05-03  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (match_template): Don't explicitly check
suffix for crc32 in Intel mode.
(process_suffix): Issue an error for crc32 if the operand size
is ambiguous.

gas/testsuite/

2007-05-03  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/crc32-intel.d: Updated.
* gas/i386/crc32.d: Likewise.
* gas/i386/sse4_2.d: Likewise.
* gas/i386/x86-64-crc32-intel.d: Likewise.
* gas/i386/x86-64-crc32.d: Likewise.
* gas/i386/x86-64-sse4_2.d: Likewise.

* gas/i386/crc32.s: Remove crc32 instructions with ambiguous
operand size and suffix in crc32 instructions in Intel mode.
* gas/i386/x86-64-crc32.s: Likewise.

* gas/i386/sse4_2.s: Remove crc32 instructions with ambiguous
operand size.
* gas/i386/x86-64-sse4_2.s: Likewise.

* gas/i386/i386.exp: Run inval-crc32 and x86-64-inval-crc32.

* gas/i386/inval-crc32.l: New.
* gas/i386/inval-crc32.s: Likewise.
* gas/i386/x86-64-inval-crc32.l: Likewise.
* gas/i386/x86-64-inval-crc32.s: Likewise.

opcodes/

2007-05-03  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (CRC32_Fixup): Don't print suffix in Intel mode.

* i386-opc.c (i386_optab): Remove IgnoreSize and correct operand
type for crc32.

17 years ago * scripttempl/elfxtensa.sc: Merge changes from elf.sc.
Bob Wilson [Thu, 3 May 2007 19:31:03 +0000 (19:31 +0000)]
* scripttempl/elfxtensa.sc: Merge changes from elf.sc.

17 years ago2007-05-03 Sandra Loosemore <sandra@codesourcery.com>
Sandra Loosemore [Thu, 3 May 2007 19:27:14 +0000 (19:27 +0000)]
2007-05-03  Sandra Loosemore  <sandra@codesourcery.com>

bfd/
* elf32-arm.c (allocate_dynrelocs): Fix typo in comment.

17 years agoPR gas/3041
Nick Clifton [Thu, 3 May 2007 15:55:38 +0000 (15:55 +0000)]
PR gas/3041
* gas/config/tc-m68k.c (relaxable_symbol): Do not relax weak symbols.
    (tc_gen_reloc): Adjust the addend of relocs against weak symbols.
     (md_apply_fix): Put zero values into the frags referencing weak symbols.
* bfd/aoutx.h (swap_std_reloc_out): Treat relocs against weak symbols in the same way as relocs against external symbols.

17 years ago * ld.texinfo (--no-warn-search-mismatch): Document.
Alan Modra [Thu, 3 May 2007 09:24:16 +0000 (09:24 +0000)]
* ld.texinfo (--no-warn-search-mismatch): Document.
* ldfile.c (ldfile_try_open_bfd): Don't warn about skipping
incompatible libraries if --no-warn-search-mismatch.
* ld.h (args_type): Add warn_search_mismatch.
* ldmain.c (main): Init it.
* lexsup.c (enum option_values): Add OPTION_NO_WARN_SEARCH_MISMATCH.
(ld_options): Add entry for --no-warn-search-mismatch.
(parse_args): Handle OPTION_NO_WARN_SEARCH_MISMATCH.

17 years ago * scripttempl/elf.sc: Add .debug_pubtypes and .debug_ranges.
Alan Modra [Thu, 3 May 2007 07:06:13 +0000 (07:06 +0000)]
* scripttempl/elf.sc: Add .debug_pubtypes and .debug_ranges.

17 years agodaily update
Alan Modra [Thu, 3 May 2007 00:00:06 +0000 (00:00 +0000)]
daily update