OSDN Git Service
Alan Modra [Thu, 7 Jun 2007 00:00:05 +0000 (00:00 +0000)]
daily update
Ben Elliston [Wed, 6 Jun 2007 23:23:36 +0000 (23:23 +0000)]
* config.sub, config.guess: Update from upstream sources.
Ben Elliston [Wed, 6 Jun 2007 23:12:21 +0000 (23:12 +0000)]
* Makefile.tpl: Fix spelling error.
* Makefile.in: Regenerate.
Paul Brook [Wed, 6 Jun 2007 17:36:54 +0000 (17:36 +0000)]
2007-06-06 Paul Brook <paul@codesourcery.com>
gas/
* config/tc-arm.c (s_align): Pad code sections appropriately.
gas/testsuite/
* gas/arm/thumb.d: Update expected output.
* gas/arm/thumb2_relax.d: Ditto.
Nick Clifton [Wed, 6 Jun 2007 08:02:47 +0000 (08:02 +0000)]
PR binutils/4356 binutils/591
* resrc.c (filename_need_quotes): New function.
(look_for_default): If filename_need_quotes is true then quote the filename in the command line being created.
(read_rc_file): Likewise.
Ben Elliston [Wed, 6 Jun 2007 04:46:41 +0000 (04:46 +0000)]
* doc/binutils.texi (objdump): Fix capitalisation of "PowerPC".
Alan Modra [Wed, 6 Jun 2007 00:00:08 +0000 (00:00 +0000)]
daily update
Paul Brook [Tue, 5 Jun 2007 22:02:47 +0000 (22:02 +0000)]
2007-06-05 Paul Brook <paul@codesourcery.com>
gas/
* config/tc-arm.c (insns): Correct Thumb-2 ldrd/strd opcodes.
gas/testsuite/
* gas/arm/thumb32.d: Add writeback addressing mode tests.
* gas/arm/thumb32.s: Update expected output.
opcodes/
* arm-dis.c (thumb32_opcodes): Display writeback ldrd/strd addresses.
Nick Clifton [Tue, 5 Jun 2007 17:00:33 +0000 (17:00 +0000)]
Patch for PR4587 + move proc run_list_test into gas-defs.exp
Nick Clifton [Tue, 5 Jun 2007 13:10:30 +0000 (13:10 +0000)]
* Makefile.am: Add LIBICONV to windres.
* acinclude.m4: Added missing "lib-*.m4" and "lt*.m4" files.
* configure.in: Add AC_CHECK_HEADER for iconv.h and use AM_ICONV.
* config.in: Add ICONV defines.
* aclocal: Regenerate.
* confugure: Regenerate.
* winduni.c: (local_iconv_map codepages, wind_language_t, languages, unicode_is$
(ascii_from_unicode): Use codepage_from_unicode.
(ascii_from_unicode): Use unicode_from_codepage.
Use for cygwin windows API for unicode transformation.
* winduni.h: (CP_ACP, CP_UTF7, CP_UTF8, CP_OEM, CP_UTF16): New macros.
(wind_language_t, local_iconv_map): New types.
(wind_find_language_by_id, wind_find_language_by_codepage,
(unicode_is_valid_codepage, wind_find_codepage_info, unicode_from_codepage, c$
Alan Modra [Tue, 5 Jun 2007 00:28:04 +0000 (00:28 +0000)]
* config/tc-spu.c (spu_cons): Use deferred_expression. Handle
number@ppu.
(tc_gen_reloc): Abort if neither addsy or subsy is set.
(md_apply_fix): Don't attempt to resolve SPU_PPU relocs.
* config/tc-spu.h (md_operand): Handle @ppu without sym.
Alan Modra [Tue, 5 Jun 2007 00:27:39 +0000 (00:27 +0000)]
* embedspu.sh: Handle R_SPU_PPU* relocs with no symbol.
Alan Modra [Tue, 5 Jun 2007 00:00:05 +0000 (00:00 +0000)]
daily update
Paolo Bonzini [Mon, 4 Jun 2007 09:33:35 +0000 (09:33 +0000)]
2007-06-04 Olivier Hainque <hainque@adacore.com>
* mh-ppc-aix: Add default ADAFLAGS to BOOT_ADAFLAGS.
Paolo Bonzini [Mon, 4 Jun 2007 08:32:52 +0000 (08:32 +0000)]
2007-06-04 Paolo Bonzini <bonzini@gnu.org>
Sync with gcc:
2007-05-30 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/29382
* configure.ac: Don't use -fkeep-inline-functions for GCC < 3.3.1.
* configure: Rebuilt.
Alan Modra [Mon, 4 Jun 2007 00:00:05 +0000 (00:00 +0000)]
daily update
Alan Modra [Sun, 3 Jun 2007 00:00:05 +0000 (00:00 +0000)]
daily update
Alan Modra [Sat, 2 Jun 2007 00:00:06 +0000 (00:00 +0000)]
daily update
H.J. Lu [Fri, 1 Jun 2007 13:44:18 +0000 (13:44 +0000)]
Correct ChangeLog entry.
Paolo Bonzini [Fri, 1 Jun 2007 11:33:01 +0000 (11:33 +0000)]
2007-06-01 Steve Ellcey <sje@cup.hp.com>
* libltdl/m4/libtool.m4 (LT_CMD_MAX_LEN): Try using getconf
to set lt_cv_sys_max_cmd_len.
Alan Modra [Fri, 1 Jun 2007 00:00:06 +0000 (00:00 +0000)]
daily update
Richard Sandiford [Thu, 31 May 2007 20:22:56 +0000 (20:22 +0000)]
bfd/
* elfxx-mips.c (mips_elf_initialize_tls_index): When processing a
type (3) single-GOT entry, read tls_type from the hash table entry
rather than the GOT entry.
Alan Modra [Thu, 31 May 2007 15:04:52 +0000 (15:04 +0000)]
include/
* bfdlink.h (struct bfd_link_info): Add input_bfds_tail.
bfd/
* simple.c (bfd_simple_get_relocated_section_content): Init
input_bfds_tail.
ld/
* ldlang.c (ldlang_add_file): Use input_bfds_tail.
* ldmain.c (main): Init input_bfds_tail. Sort link_info
initialization.
Paul Brook [Thu, 31 May 2007 14:50:16 +0000 (14:50 +0000)]
2007-05-31 Paul Brook <paul@codesourcery.com>
gas/
* config/tc-arm.c (insns): Allow strex on M profile cores.
Paolo Bonzini [Thu, 31 May 2007 06:40:36 +0000 (06:40 +0000)]
2007-05-31 Paolo Bonzini <bonzini@gnu.org>
* ltgcc.m4: Update from GCC.
Alan Modra [Thu, 31 May 2007 00:00:05 +0000 (00:00 +0000)]
daily update
Alan Modra [Wed, 30 May 2007 14:29:27 +0000 (14:29 +0000)]
bfd/
* elf.c (elf_fake_sections): Adjust test for SHT_NOBITS sections
created by objcopy --only-keep-debug.
(_bfd_elf_init_private_section_data): Only change elf_section_type
if it is SHT_NULL.
binutils/
* objcopy.c (copy_object): Revert 2007-05-11 change. Don't
avoid calling bfd_copy_private_bfd_data for ELF STRIP_NONDEBUG.
(setup_section): Don't modify flags, and don't avoid calling
bfd_copy_private_section_data for ELF STRIP_NONDEBUG.
* readelf.c (process_program_headers): Ignore .dynamic of type
SHT_NOBITS.
Alan Modra [Wed, 30 May 2007 13:38:50 +0000 (13:38 +0000)]
* elf.c (assign_file_positions_for_load_sections): Correct sh_type
to SHT_NOBITS earlier. Base actions in rest of function on sh_type
and sh_flags instead of bfd section flags. Delete voff and code
keeping nobits segments aligned.
Alan Modra [Wed, 30 May 2007 00:00:06 +0000 (00:00 +0000)]
daily update
Jakub Jelinek [Tue, 29 May 2007 13:18:59 +0000 (13:18 +0000)]
gas/
2007-05-29 David S. Miller <davem@davemloft.net>
Jakub Jelinek <jakub@redhat.com>
PR gas/4558
* config/tc-sparc.c (md_apply_fix): Fix relocation overflow checks
for BFD_RELOC_SPARC_WDISP16 and BFD_RELOC_SPARC_WDISP19.
gas/testsuite/
2007-05-29 Jakub Jelinek <jakub@redhat.com>
PR gas/4558
* gas/sparc/sparc.exp: Add v9branch{1,2,3,4,5} tests.
* gas/sparc/v9branch1.d: New test.
* gas/sparc/v9branch1.s: New.
* gas/sparc/v9branch2.d: New test.
* gas/sparc/v9branch2.s: New.
* gas/sparc/v9branch3.d: New test.
* gas/sparc/v9branch3.s: New.
* gas/sparc/v9branch4.d: New test.
* gas/sparc/v9branch4.s: New.
* gas/sparc/v9branch5.d: New test.
* gas/sparc/v9branch5.s: New.
Alan Modra [Tue, 29 May 2007 13:10:10 +0000 (13:10 +0000)]
binutils/
* embedspu.sh: Emit SPU ELF image to .data.rel.ro.speelf if
pic or pie and image needs relocs.
ld/
* emultempl/spuelf.em (base_name): New function, split out from..
(embedded_spu_file) ..here. Pass -fPIC or -fpie to embedspu
invocation if we deduce a shared lib or position independent
executable build by looking at ctrbegin* linker input files.
Alan Modra [Tue, 29 May 2007 12:54:29 +0000 (12:54 +0000)]
* emultempl/spu_ovl.S (__rv_pattern, __cg_pattern): Set symbol
types and sizes.
* emultempl/spu_ovl.o: Regenerate.
Alan Modra [Tue, 29 May 2007 02:10:09 +0000 (02:10 +0000)]
* config/tc-spu.h: Wrap in #ifndef/#endif. Delete coff macros.
Alan Modra [Tue, 29 May 2007 01:57:08 +0000 (01:57 +0000)]
* config/tc-ppc.c: Convert to ISO C.
* config/tc-ppc.c: Likewise.
Alan Modra [Tue, 29 May 2007 01:10:02 +0000 (01:10 +0000)]
* write.h (EXEC_MACHINE_TYPE): Delete.
(string_byte_count, section_alignment): Delete.
Alan Modra [Tue, 29 May 2007 00:00:06 +0000 (00:00 +0000)]
daily update
Nathan Sidwell [Mon, 28 May 2007 19:32:58 +0000 (19:32 +0000)]
* app.c (do_scrub_chars): Cope with \ at end of buffer.x
Paolo Bonzini [Mon, 28 May 2007 06:35:11 +0000 (06:35 +0000)]
2007-05-27 Paolo Bonzini <bonzini@gnu.org>
* confsubdir.m4: Move here from newlib.
Alan Modra [Mon, 28 May 2007 00:00:05 +0000 (00:00 +0000)]
daily update
Alan Modra [Sun, 27 May 2007 00:00:05 +0000 (00:00 +0000)]
daily update
Alan Modra [Sat, 26 May 2007 14:49:39 +0000 (14:49 +0000)]
* config/tc-ppc.c (ppc_insert_operand): Truncate sign bits in
top 32 bits of 64 bit value if so doing results in passing
range check. Rewrite sign extension fudges similarly. Enable
fudges for powerpc64 too. Report user value if range check
fails rather than fudged value. Negate PPC_OPERAND_NEGATIVE
range rather than value, also to report user value on failure.
Alan Modra [Sat, 26 May 2007 00:00:07 +0000 (00:00 +0000)]
daily update
Paul Brook [Fri, 25 May 2007 23:13:24 +0000 (23:13 +0000)]
2007-03-25 Paul Brook <paul@codesourcery.com>
gas/
* config/tc-arm.c (T2_SUBS_PC_LR): Define.
(do_t_add_sub): Correctly encode subs pc, lr, #const.
(do_t_mov_cmp): Correctly encode movs pc, lr.
gas/testsulte/
* gas/arm/thumb32.s: Add tests for subs pc, lr.
* gas/arm/thumb32.d: Change error-output: to stderr:.
Update expected output.
Eric Christopher [Fri, 25 May 2007 23:06:11 +0000 (23:06 +0000)]
2007-05-25 Eric Christopher <echristo@apple.com>
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame):
Check that sym_sec isn't NULL before accessing.
Eric Christopher [Fri, 25 May 2007 19:56:24 +0000 (19:56 +0000)]
2007-05-25 Andreas Tobler <a.tobler@schweiz.org>
* ltmain.sh: Fix Darwin verstring, remove ${wl}.
Alan Modra [Fri, 25 May 2007 00:00:05 +0000 (00:00 +0000)]
daily update
Steve Ellcey [Thu, 24 May 2007 18:12:51 +0000 (18:12 +0000)]
* regenerated files from updating libtool.
Steve Ellcey [Thu, 24 May 2007 17:33:42 +0000 (17:33 +0000)]
* ltmain.sh: Update from GCC.
* libtool.m4: Update from GCC.
* ltsugar.m4: New. Update from GCC.
* ltversion.m4: New. Update from GCC.
* ltoptions.m4: New. Update from GCC.
* ltconfig: Remove.
* ltcf-c.sh: Remove.
* ltcf-cxx.sh: Remove.
* ltcf-gcj.sh: Remove.
* src-release: Update with new libtool file list.
* newlib/*/configure.in: invoke _LD_DECL_SED.
* newlib/*/Makefile.am: Ensure toplevel is included in ACLOCAL_AMFLAGS.
* Regenerate subdirectories
H.J. Lu [Thu, 24 May 2007 16:31:57 +0000 (16:31 +0000)]
2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
* gprof.texi: Remove orphaned "@end ignore".
Nick Clifton [Thu, 24 May 2007 11:01:07 +0000 (11:01 +0000)]
* rcparse.y: Join strings for elements having no side-effects in "rc"-grammar.
* testsuite/binutils-all/windres/version_cat.rc: New.
* testsuite/binutils-all/windres/version_cat.rsd: New.
Nathan Sidwell [Thu, 24 May 2007 09:24:09 +0000 (09:24 +0000)]
* ldlex.l: ASSERT is recognized in SCRIPT env. NAMES cannot
contain commas in EXP env.
* ldgram.y (extern_name_list): Push to EXP env, move body to ...
(extern_name_list_body): ... here.
(script_file, ifile_list): Reformat.
(statement): Add ASSERT.
testsuite:
* ld-scripts/assert.t: Add additional cases.
* ld-scripts/extern.t, ld-scripts/extern.s,
ld-scripts/extern.exp: New.
Alan Modra [Thu, 24 May 2007 00:00:07 +0000 (00:00 +0000)]
daily update
Paolo Bonzini [Wed, 23 May 2007 14:27:05 +0000 (14:27 +0000)]
2007-05-23 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/32009
* mh-ppc-darwin: Temporarily disable.
Nick Clifton [Wed, 23 May 2007 08:48:29 +0000 (08:48 +0000)]
Updated windres tool
Alan Modra [Wed, 23 May 2007 00:00:10 +0000 (00:00 +0000)]
daily update
Bob Wilson [Tue, 22 May 2007 17:59:17 +0000 (17:59 +0000)]
* doc/c-xtensa.texi (Xtensa Automatic Alignment): Remove statements
and index entries about automatic alignment of ENTRY instructions.
Paul Brook [Tue, 22 May 2007 17:17:53 +0000 (17:17 +0000)]
2007-05-22 Paul Brook <paul@codesourcery.com>
ld/testsuite/
* ld-arm/arm-pic-veneer.d: Update expected output.
* ld-arm/arm-call.d: Ditto.
bfd/
* elf32-arm.c (output_arch_syminfo): Replace plt_shndx and plt_offset
with sec and sec_shndx.
(elf32_arm_ouput_plt_map_sym): Use them.
(elf32_arm_output_arch_local_syms): Output mapping symbols for
interworking glue.
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.
Nick Clifton [Tue, 22 May 2007 09:16:39 +0000 (09:16 +0000)]
Use @copying around copyright notices
Alan Modra [Tue, 22 May 2007 00:00:06 +0000 (00:00 +0000)]
daily update
Nick Clifton [Mon, 21 May 2007 16:39:51 +0000 (16:39 +0000)]
* bfdint.texi: Add GNU Free Documentation License notice.
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.
Paolo Bonzini [Mon, 21 May 2007 16:07:45 +0000 (16:07 +0000)]
moved to the attic to please handling of src-support module
Paolo Bonzini [Mon, 21 May 2007 16:05:57 +0000 (16:05 +0000)]
add this momentarily, will move them to the attic soon
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.
Alan Modra [Mon, 21 May 2007 00:00:06 +0000 (00:00 +0000)]
daily update
Alan Modra [Sun, 20 May 2007 00:00:05 +0000 (00:00 +0000)]
daily update
Alan Modra [Sat, 19 May 2007 00:00:13 +0000 (00:00 +0000)]
daily update
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.
Joseph Myers [Fri, 18 May 2007 19:04:51 +0000 (19:04 +0000)]
* ld-elf/group.ld: Discard .reginfo.
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.
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.
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.
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.
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.
Alan Modra [Fri, 18 May 2007 00:00:05 +0000 (00:00 +0000)]
daily update
H.J. Lu [Thu, 17 May 2007 17:31:22 +0000 (17:31 +0000)]
Move testsuite entries to testsuite/ChangeLog.
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.
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.
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.
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.
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.
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.
Joseph Myers [Thu, 17 May 2007 00:06:22 +0000 (00:06 +0000)]
* binutils-all/strip-3.d: Strip .pdr section.
Alan Modra [Thu, 17 May 2007 00:00:07 +0000 (00:00 +0000)]
daily update
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.
Ian Lance Taylor [Wed, 16 May 2007 17:42:48 +0000 (17:42 +0000)]
Add support for SHF_MERGE sections.
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.
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.
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.
Alan Modra [Wed, 16 May 2007 00:00:05 +0000 (00:00 +0000)]
daily update
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".
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.
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.
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.
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.
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.
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.
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.
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.