OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
16 years agoSupport special always-defined symbols for targets.
Ian Lance Taylor [Wed, 14 Nov 2007 07:52:21 +0000 (07:52 +0000)]
Support special always-defined symbols for targets.

16 years agoWarn about undefined references in shared libraries if we have seen
Ian Lance Taylor [Wed, 14 Nov 2007 07:34:53 +0000 (07:34 +0000)]
Warn about undefined references in shared libraries if we have seen
all the DT_NEEDED entries for that library.

16 years agoFrom Craig Silverstein: Rework debug info code a bit, add option for
Ian Lance Taylor [Wed, 14 Nov 2007 01:03:01 +0000 (01:03 +0000)]
From Craig Silverstein: Rework debug info code a bit, add option for
ODR violations, add test case.

16 years agodaily update
Alan Modra [Tue, 13 Nov 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago2007-11-13 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 13 Nov 2007 20:17:43 +0000 (20:17 +0000)]
2007-11-13  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/5307
* peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Don't
copy input subsystem if output is different from input.

16 years agoFrom Craig Silverstein: First cut at detecting ODR violations.
Ian Lance Taylor [Tue, 13 Nov 2007 20:02:32 +0000 (20:02 +0000)]
From Craig Silverstein: First cut at detecting ODR violations.

16 years agomerge from gcc
DJ Delorie [Tue, 13 Nov 2007 15:12:42 +0000 (15:12 +0000)]
merge from gcc

16 years ago2007-11-13 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 13 Nov 2007 13:20:02 +0000 (13:20 +0000)]
2007-11-13  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/5233
* ld-elf/flags1.d: New.
* ld-elf/flags1.ld: Likewise.
* ld-elf/flags1.s: Likewise.

16 years ago* config/tc-mn10300.c (mn10300_force_relocation): Force a reloc to be generated for...
Nick Clifton [Tue, 13 Nov 2007 10:40:29 +0000 (10:40 +0000)]
* config/tc-mn10300.c (mn10300_force_relocation): Force a reloc to be generated for alignment fixups.
* config/tc-mn10300.h (TC_FORCE_RELOCATION): Call mn10300_force_relocation.
* elf-m10300.c (mn10300_elf_final_link_relocate): Prevent the accidental termination of DWARF location list entries.
  (mn10300_elf_relax_delete_bytes): Stop deletion if an align reloc is encountered that is larger than or not a mutliple of the number of bytes being deleted.
  When adjusting symbols, any symbols inside the region being deleted must be moved to the end of the region.
  Move align relocs forward if there is room for them after the deletion of the region.

16 years ago PR 5233
Alan Modra [Tue, 13 Nov 2007 05:56:10 +0000 (05:56 +0000)]
PR 5233
* elf.c (rewrite_elf_program_header): Formatting.  Add
first_matching_lma and first_suggested_lma booleans and use
instead of testing matching_lma and suggested_lma for zero.

16 years agoFrom Craig Silverstein: Support debug info for shared libraries.
Ian Lance Taylor [Tue, 13 Nov 2007 01:26:27 +0000 (01:26 +0000)]
From Craig Silverstein: Support debug info for shared libraries.

16 years agomerge from gcc
DJ Delorie [Tue, 13 Nov 2007 01:00:40 +0000 (01:00 +0000)]
merge from gcc

16 years ago * floatformat.c (floatformat_ibm_long_double_is_valid): Fix
Joseph Myers [Tue, 13 Nov 2007 00:38:30 +0000 (00:38 +0000)]
* floatformat.c (floatformat_ibm_long_double_is_valid): Fix
compiler warnings.
(floatformat_ibm_long_double): Use
floatformat_ibm_long_double_is_valid.

16 years agodaily update
Alan Modra [Mon, 12 Nov 2007 23:00:04 +0000 (23:00 +0000)]
daily update

16 years ago * gas/macros/purge.s: Delete irpc loops.
Alan Modra [Mon, 12 Nov 2007 22:21:48 +0000 (22:21 +0000)]
* gas/macros/purge.s: Delete irpc loops.

16 years ago2007-11-12 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 12 Nov 2007 21:55:50 +0000 (21:55 +0000)]
2007-11-12  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/5299
* peicode.h (pe_bfd_object_p): Save and restore previous bfd
state when calling coff_object_p.

16 years agoFrom Craig Silverstein: Dwarf_line_info can work with Object rather
Ian Lance Taylor [Mon, 12 Nov 2007 20:55:53 +0000 (20:55 +0000)]
From Craig Silverstein: Dwarf_line_info can work with Object rather
than Sized_relobj.

16 years agoFrom Craig Silverstein: Track_relocs doesn't need to hold onto the
Ian Lance Taylor [Mon, 12 Nov 2007 20:35:21 +0000 (20:35 +0000)]
From Craig Silverstein: Track_relocs doesn't need to hold onto the
object.

16 years agoFrom Craig Silverstein: rework DWARF reader code a bit.
Ian Lance Taylor [Mon, 12 Nov 2007 19:56:20 +0000 (19:56 +0000)]
From Craig Silverstein: rework DWARF reader code a bit.

16 years agoCorrect handling of GOT references in a regular object.
Ian Lance Taylor [Mon, 12 Nov 2007 17:51:55 +0000 (17:51 +0000)]
Correct handling of GOT references in a regular object.

16 years ago PR gas/5269
Nick Clifton [Mon, 12 Nov 2007 10:57:33 +0000 (10:57 +0000)]
PR gas/5269
* config/tc-frv.c (md_show_usage): Rewrite usage description to make it easier to translate.
* gas/po/gas.pot: Regenerate.

16 years ago * elf.c (_bfd_elf_get_synthetic_symtab): Only bump the symbol
Alan Modra [Mon, 12 Nov 2007 03:28:52 +0000 (03:28 +0000)]
* elf.c (_bfd_elf_get_synthetic_symtab): Only bump the symbol
        pointer when we have a valid symbol.  Init udata.p to NULL.

16 years ago * gas/ppc/regnames.d: New.
Alan Modra [Mon, 12 Nov 2007 00:29:12 +0000 (00:29 +0000)]
* gas/ppc/regnames.d: New.
* gas/ppc/regnames.s: Likewise.
* gas/ppc/ppc.exp: Run it.

16 years ago * config/tc-ppc.c (md_assemble): If -mregnames, when parsing
Alan Modra [Mon, 12 Nov 2007 00:27:53 +0000 (00:27 +0000)]
* config/tc-ppc.c (md_assemble): If -mregnames, when parsing
PPC_OPERAND_CR always parse as expression to allow register name
followed by an expression.

16 years agodaily update
Alan Modra [Sun, 11 Nov 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Sat, 10 Nov 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agoFrom Craig Silverstein: Initialize got_relocs.
Ian Lance Taylor [Fri, 9 Nov 2007 23:56:32 +0000 (23:56 +0000)]
From Craig Silverstein: Initialize got_relocs.

16 years agoFrom Craig Silverstein: Clean up make rules for debug_msg.
Ian Lance Taylor [Fri, 9 Nov 2007 23:35:19 +0000 (23:35 +0000)]
From Craig Silverstein: Clean up make rules for debug_msg.

16 years agoFrom Craig Silverstein: Add test for debug messages.
Ian Lance Taylor [Fri, 9 Nov 2007 23:19:11 +0000 (23:19 +0000)]
From Craig Silverstein: Add test for debug messages.

16 years agoFrom Craig Silverstein: Implement section_info.
Ian Lance Taylor [Fri, 9 Nov 2007 23:18:16 +0000 (23:18 +0000)]
From Craig Silverstein: Implement section_info.

16 years agoFrom Craig Silverstein: Use relocations in reporting error message
Ian Lance Taylor [Fri, 9 Nov 2007 23:16:54 +0000 (23:16 +0000)]
From Craig Silverstein: Use relocations in reporting error message
locations.

16 years agodaily update
Alan Modra [Fri, 9 Nov 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years agoFrom Cary Coutant: More shared library support, some refactorization.
Ian Lance Taylor [Fri, 9 Nov 2007 19:45:08 +0000 (19:45 +0000)]
From Cary Coutant: More shared library support, some refactorization.

16 years ago2007-11-09 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 9 Nov 2007 13:53:13 +0000 (13:53 +0000)]
2007-11-09  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (match_template): Re-order suffix check.

16 years ago * elf-vxworks.c (elf_vxworks_emit_relocs): Don't clobber
Nathan Sidwell [Fri, 9 Nov 2007 10:20:17 +0000 (10:20 +0000)]
* elf-vxworks.c (elf_vxworks_emit_relocs): Don't clobber
rel_hash.  Move loop inside if test.

16 years ago Apply delta accidentally omitted from 2007-11-05 commit.
Danny Smith [Fri, 9 Nov 2007 08:35:29 +0000 (08:35 +0000)]
Apply delta accidentally omitted from 2007-11-05 commit.
* pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Let .data, .text
 and .bss section use the default.

16 years agoFrom Cary Coutant: mark negative constant as unsigned.
Ian Lance Taylor [Fri, 9 Nov 2007 07:03:14 +0000 (07:03 +0000)]
From Cary Coutant: mark negative constant as unsigned.

16 years agoGenerate a complete exception frame header. Discard duplicate
Ian Lance Taylor [Fri, 9 Nov 2007 07:00:15 +0000 (07:00 +0000)]
Generate a complete exception frame header.  Discard duplicate
exception frame information.

16 years agodaily update
Alan Modra [Thu, 8 Nov 2007 23:00:49 +0000 (23:00 +0000)]
daily update

16 years ago * elf-vxworks.h (elf_vxworks_add_dynamic_entries): Declare.
Nathan Sidwell [Thu, 8 Nov 2007 13:57:44 +0000 (13:57 +0000)]
* elf-vxworks.h (elf_vxworks_add_dynamic_entries): Declare.
(elf_vxworks_finish_dynamic_entry): Declare.
* elf-vxworks.c: Include elf/vxworks.h.
(elf_vxworks_add_dynamic_entries): New.
(elf_vxworks_finish_dynamic_entry): New.
* Makefile.am (elf-vxworks.lo): Add dependency.
* Makefile.in (elf-vxworks.lo): Add dependency.
* elf32-i386.c (elf_i386_size_dynamic_sections,
elf_i386_finish_dynamic_sections): Call
elf_vxworks_add_dynamic_entries and
elf_vxworks_finish_dynamic_entry.
* elf32-ppc.c (ppc_elf_size_dynamic_sections,
ppc_elf_finish_dynamic_sections): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections,
sparc_finish_dyn): Likewise.
* elf32-sh.c (sh_elf_size_dynamic_sections,
sh_elf_finish_dynamic_sections): Likewise.
* elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections,
_bfd_mips_elf_finish_dynamic_sections): Likewise.
* elf32-arm.c (elf32_arm_size_dynamic_sections,
elf32_arm_finish_dynamic_sections): Likewise.

16 years ago include/elf/
Nathan Sidwell [Thu, 8 Nov 2007 13:51:07 +0000 (13:51 +0000)]
include/elf/
* vxworks.h: New.

bfd/
* elf-vxworks.h (elf_vxworks_add_dynamic_entries): Declare.
(elf_vxworks_finish_dynamic_entry): Declare.
* elf-vxworks.c: Include elf/vxworks.h.
(elf_vxworks_add_dynamic_entries): New.
(elf_vxworks_finish_dynamic_entry): New.
* Makefile.am (elf-vxworks.lo): Add dependency.
* Makefile.in (elf-vxworks.lo): Add dependency.
* elf32-i386.c (elf_i386_size_dynamic_sections,
elf_i386_finish_dynamic_sections): Call
elf_vxworks_add_dynamic_entries and
elf_vxworks_finish_dynamic_entry.
* elf32-ppc.c (ppc_elf_size_dynamic_sections,
ppc_elf_finish_dynamic_sections): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections,
sparc_finish_dyn): Likewise.
* elf32-sh.c (sh_elf_size_dynamic_sections,
sh_elf_finish_dynamic_sections): Likewise.
* elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections,
_bfd_mips_elf_finish_dynamic_sections): Likewise.
* elf32-arm.c (elf32_arm_size_dynamic_sections,
elf32_arm_finish_dynamic_sections): Likewise.

ld/
* ld-vxworks/tls-2.d: New.
* ld-vxworks/tls-2.s: New.

16 years ago * config/tc-xtensa.c (relaxable_section): Check for .eh_frame.
Bob Wilson [Thu, 8 Nov 2007 01:40:58 +0000 (01:40 +0000)]
    * config/tc-xtensa.c (relaxable_section): Check for .eh_frame.

16 years agoinclude:
Joseph Myers [Thu, 8 Nov 2007 00:08:48 +0000 (00:08 +0000)]
include:
2007-11-07  Joseph Myers  <joseph@codesourcery.com>
    Daniel Jacobowitz  <dan@codesourcery.com>

* floatformat.h (struct floatformat): Add split_half field.
(floatformat_ibm_long_double): New.

libiberty:
2007-11-07  Joseph Myers  <joseph@codesourcery.com>
    Daniel Jacobowitz  <dan@codesourcery.com>

* floatformat.c (mant_bits_set): New.
(floatformat_to_double): Use it.  Note no special handling of
split formats.
(floatformat_from_double): Note no special handing of split
formats.
(floatformat_ibm_long_double_is_valid,
floatformat_ibm_long_double): New.
(floatformat_ieee_single_big, floatformat_ieee_single_little,
floatformat_ieee_double_big, floatformat_ieee_double_little,
floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f,
floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext,
floatformat_m68881_ext, floatformat_i960_ext,
floatformat_m88110_ext, floatformat_m88110_harris_ext,
floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword,
floatformat_ia64_spill_big, floatformat_ia64_spill_little,
floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update
for addition of split_half field.

gdb:
2007-11-07  Joseph Myers  <joseph@codesourcery.com>
    Daniel Jacobowitz  <dan@codesourcery.com>

* gdbtypes.c (floatformats_ibm_long_double): New.
* gdbtypes.h (floatformats_ibm_long_double): Declare.
* ia64-tdep.c (floatformat_ia64_ext): Update for addition of
split_half field.
* mips-tdep.c (n32n64_floatformat_always_valid,
floatformat_n32n64_long_double_big, floatformats_n32n64_long):
Remove.
(mips_gdbarch_init): Use floatformats_ibm_long_double instead of
floatformats_n32n64_long.
* ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
double.
* doublest.c (convert_floatformat_to_doublest,
convert_doublest_to_floatformat): Handle split floating-point
formats.
* ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
double arguments.
(ppc64_sysv_abi_push_dummy_call): Likewise.
(do_ppc_sysv_return_value): Handle IBM long double return.

16 years agodaily update
Alan Modra [Wed, 7 Nov 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agoFrom Craig Silverstein and Cary Coutant: fix assignment of section
Ian Lance Taylor [Wed, 7 Nov 2007 22:33:30 +0000 (22:33 +0000)]
From Craig Silverstein and Cary Coutant: fix assignment of section
indexes to sections which are not associated with segments.

16 years agoCheck that we don't set the output section index twice.
Ian Lance Taylor [Wed, 7 Nov 2007 18:29:34 +0000 (18:29 +0000)]
Check that we don't set the output section index twice.

16 years ago2007-11-07 Eric B. Weddington <eweddington@cso.atmel.com>
Eric B. Weddington [Wed, 7 Nov 2007 17:59:05 +0000 (17:59 +0000)]
2007-11-07  Eric B. Weddington  <eweddington@cso.atmel.com>

* config/tc-avr.c (mcu_types): Add ATtiny88 device.
* doc/c-avr.texi: Likewise.

16 years ago2007-11-07 Anatoly Sokolov <aesok@post.ru>
Eric B. Weddington [Wed, 7 Nov 2007 17:24:59 +0000 (17:24 +0000)]
2007-11-07  Anatoly Sokolov <aesok@post.ru>

* config/tc-avr.c (mcu_types): Add new devices: ATmega48P, ATmega88P,
ATmega168P, Atmega328P
* doc/c-avr.texi: Document new devices.

16 years agoPR gas/5228
Nick Clifton [Wed, 7 Nov 2007 16:37:44 +0000 (16:37 +0000)]
PR gas/5228
* m68k-opc.c (m68k_opcodes): Fix coldfire msac.w instructions with parallel loads.

16 years ago* ia64-dis.c (print_insn_ia64): Generate symbolic names for cr
Tristan Gingold [Wed, 7 Nov 2007 15:57:14 +0000 (15:57 +0000)]
* ia64-dis.c (print_insn_ia64): Generate symbolic names for cr
 registers instead of register number.

* gas/ia64/regs.d: Expect symbolic names for cr registers due to
 improved disassembler.

16 years ago* bfd/elfxx-mips.c (_bfd_mips_elf_fake_sections): Force SHF_MIPS_NOSTRIP on
Nick Clifton [Wed, 7 Nov 2007 14:52:44 +0000 (14:52 +0000)]
* bfd/elfxx-mips.c (_bfd_mips_elf_fake_sections): Force SHF_MIPS_NOSTRIP on
   .debug_frame for Irix.

16 years ago* arm-dis.c (arm_opcodes): Remove superflous escapes of percent operators.
Nick Clifton [Wed, 7 Nov 2007 14:40:40 +0000 (14:40 +0000)]
* arm-dis.c (arm_opcodes): Remove superflous escapes of percent operators.

16 years ago* gas/elf/elf.exp (run_elf_list_test): Fix typo.
Nick Clifton [Wed, 7 Nov 2007 14:32:54 +0000 (14:32 +0000)]
* gas/elf/elf.exp (run_elf_list_test): Fix typo.

16 years ago* config/tc-ppc.c (md_apply_fix): For PPC_TOC16 on XCOFF, uses offset
Tristan Gingold [Wed, 7 Nov 2007 14:10:49 +0000 (14:10 +0000)]
* config/tc-ppc.c (md_apply_fix): For PPC_TOC16 on XCOFF, uses offset
  within the TOC instead of the VMA.

* gas/ppc/test1xcoff32.d: Updated to match RTOC bug fix.

16 years ago ld/
Nathan Sidwell [Wed, 7 Nov 2007 12:10:33 +0000 (12:10 +0000)]
ld/
* emulparams/vxworks.sh (OTHER_READONLY_SECTIONS,
OTHER_READWRITE_SECTIONS): Add TLS sections.

ld/testsuite/
* ld-vxworks/tls-1.d: New.
* ld-vxworks/tls-1.s: New.

16 years ago* doc/binutils.texi: Update to FDL 1.2.
Nick Clifton [Wed, 7 Nov 2007 11:36:42 +0000 (11:36 +0000)]
* doc/binutils.texi: Update to FDL 1.2.
  (Top): consistent punctuation in menu entries.
  (Index): Rename from Binutils Index.
* doc/fdl.texi: Update from http://www.gnu.org/licenses/fdl.texi.

16 years agoFrom Craig Silverstein: Templatize the Dwarf reader.
Ian Lance Taylor [Wed, 7 Nov 2007 00:49:56 +0000 (00:49 +0000)]
From Craig Silverstein: Templatize the Dwarf reader.

16 years agoFrom Craig Silverstein: Handle a .so file in a .a file.
Ian Lance Taylor [Wed, 7 Nov 2007 00:45:05 +0000 (00:45 +0000)]
From Craig Silverstein: Handle a .so file in a .a file.

16 years agoFrom Craig Silverstein: Don't crash if we see a file we don't recognize.
Ian Lance Taylor [Wed, 7 Nov 2007 00:31:32 +0000 (00:31 +0000)]
From Craig Silverstein: Don't crash if we see a file we don't recognize.

16 years ago * ppc-opc.c (powerpc_opcodes): Remove the dcffix and dcffix. opcodes
Peter Bergner [Tue, 6 Nov 2007 23:14:07 +0000 (23:14 +0000)]
* ppc-opc.c (powerpc_opcodes): Remove the dcffix and dcffix. opcodes
which are not included in the "Preliminary Decimal Floating-Point
Architecture" document.

16 years agodaily update
Alan Modra [Tue, 6 Nov 2007 23:00:15 +0000 (23:00 +0000)]
daily update

16 years ago2007-11-06 Paul Brook <paul@codesourcery.com>
Paul Brook [Tue, 6 Nov 2007 22:17:00 +0000 (22:17 +0000)]
2007-11-06  Paul Brook  <paul@codesourcery.com>

gas/
* config/tc-arm.c (do_mull): Allow overlapping Rm for armv6.

gas/testsuite/
* gas/arm/mul-overlap.s: Add umull and smlal.
* gas/arm/mul-overlap.l: Update expected results.

16 years ago* ehopt.c (check_eh_frame): If md_allow_eh_opt is defined, invoke it to see if the...
Nick Clifton [Tue, 6 Nov 2007 17:15:10 +0000 (17:15 +0000)]
* ehopt.c (check_eh_frame): If md_allow_eh_opt is defined, invoke it to see if the optimizations should be applied.
* config/tc-mn10300.h (md_allow_eh_opt): Define.  Only allow call frame optimization if linker relaxation is not enabled.
* gas/elf/elf.exp: Disable ehopt test for mn10300.

16 years agobfd/
Alan Modra [Tue, 6 Nov 2007 13:49:19 +0000 (13:49 +0000)]
bfd/
* elf64-ppc.c (ppc64_elf_check_relocs): Don't refcount tlsld_got here..
(ppc64_elf_gc_sweep_hook): ..or here..
(ppc64_elf_tls_optimize): ..or here.  Make two passes through the
relocs, ensuring that tls_get_addr calls follow gd and ld relocs.
(allocate_dynrelocs): Refcount tlsld_got here.
(ppc64_elf_size_dynamic_sections): Allocate local got and call
allocate_dynrelocs before allocating tlsld_got.
(ppc64_elf_relocate_section): Remove check that a tls_get_addr
call follows gd and ld relocs.
ld/testsuite/
* ld-powerpc/tlsso.d: Update for changed got alloc order.
* ld-powerpc/tlsso.r: Likewise.

16 years agoAdd __ImageBase symbol to pe.em and pep.em.
Kai Tietz [Tue, 6 Nov 2007 12:28:57 +0000 (12:28 +0000)]
Add __ImageBase symbol to pe.em and pep.em.

16 years agobfd/
Alan Modra [Tue, 6 Nov 2007 03:59:16 +0000 (03:59 +0000)]
bfd/
* elf32-ppc.c (ppc_elf_check_relocs): Don't refcount tlsld_got here..
(ppc_elf_gc_sweep_hook): ..or here..
(ppc_elf_tls_optimize): ..or here.  Make two passes through the
relocs, ensuring that tls_get_addr calls follow gd and ld relocs.
(allocate_dynrelocs): Refcount tlsld_got here.
(ppc_elf_size_dynamic_sections): Call allocate_dynrelocs before
allocating tlsld_got.
(ppc_elf_relocate_section): Remove check that a tls_get_addr
call follows gd and ld relocs.
ld/testsuite/
* ld-powerpc/tlsso32.d: Update for changed got alloc order.

16 years agodaily update
Alan Modra [Mon, 5 Nov 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago * ld-elf/merge3.d, ld-elf/merge3.s: Delete.
Alan Modra [Mon, 5 Nov 2007 02:14:50 +0000 (02:14 +0000)]
* ld-elf/merge3.d, ld-elf/merge3.s: Delete.

16 years ago * merge.c (sec_merge_hash_lookup): Revert last change.
Alan Modra [Mon, 5 Nov 2007 02:13:46 +0000 (02:13 +0000)]
* merge.c (sec_merge_hash_lookup): Revert last change.
(record_section): Likewise.
(_bfd_merge_sections): Likewise.
(_bfd_merged_section_offset): Properly handle NULL secinfo.
(_bfd_add_merge_section): Allocate extra space for a zero
terminator on SEC_STRINGS sections.

16 years agoinclude
Danny Smith [Sun, 4 Nov 2007 23:49:09 +0000 (23:49 +0000)]
include
* coff/pe.h (COFF_ENCODE_ALIGNMENT) Define.

gas
* read.c (ALIGN_LIMIT): Rename to ...
(TC_ALIGN_LIMIT): Guard against prior definition.
* config/tc-i386.h (TC_ALIGN_LIMIT)[TE_PE]: Define.

bfd
* pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Let .data, .text
 and .bss section use the default.
* pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.

ld/testsuite
* ld-scripts/align.exp: Enable for PECOFF.
* ld-scripts/alignof.exp: Likewise.

16 years agodaily update
Alan Modra [Sun, 4 Nov 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Sat, 3 Nov 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agoFrom Craig Silverstein: Add first version of generating error messages
Ian Lance Taylor [Fri, 2 Nov 2007 23:02:44 +0000 (23:02 +0000)]
From Craig Silverstein: Add first version of generating error messages
with file name and line number.

16 years agodaily update
Alan Modra [Fri, 2 Nov 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agoFrom Cary Coutant: Correct generation of RELATIVE relocs.
Ian Lance Taylor [Fri, 2 Nov 2007 04:08:52 +0000 (04:08 +0000)]
From Cary Coutant: Correct generation of RELATIVE relocs.

16 years agoFrom Craig Silverstein: Add more DWARF info, add some i386 comments.
Ian Lance Taylor [Fri, 2 Nov 2007 03:31:41 +0000 (03:31 +0000)]
From Craig Silverstein: Add more DWARF info, add some i386 comments.

16 years agoReworked from Andrew Chatham: report error locations.
Ian Lance Taylor [Fri, 2 Nov 2007 03:28:52 +0000 (03:28 +0000)]
Reworked from Andrew Chatham: report error locations.

16 years ago * config/tc-xtensa.c (xtensa_symbol_new_hook): New.
Bob Wilson [Fri, 2 Nov 2007 00:45:34 +0000 (00:45 +0000)]
* config/tc-xtensa.c (xtensa_symbol_new_hook): New.
(xtensa_mark_difference_of_two_symbols): New.
(xtensa_post_relax_hook): Call xtensa_mark_difference_of_two_symbols.
* config/tc-xtensa.h (xtensa_symfield_type): Add next_expr_symbol.
(tc_symbol_new_hook): Define.

16 years agodaily update
Alan Modra [Thu, 1 Nov 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agogas/
H.J. Lu [Thu, 1 Nov 2007 19:06:54 +0000 (19:06 +0000)]
gas/

2007-11-01  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (md_assemble): Replace no_xsuf with
no_ldsuf.
(match_template): Likewise.

opcodes/

2007-11-01  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (opcode_modifiers): Replace No_xSuf with
No_ldSuf.
* i386-opc.tbl: Likewise.

* i386-opc.h (No_xSuf): Renamed to ...
(No_ldSuf): This.
(FWait): Updated.

16 years ago2007-11-01 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 1 Nov 2007 18:40:53 +0000 (18:40 +0000)]
2007-11-01  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.h (LONG_DOUBLE_MNEM_SUFFIX): Use a non-ascii
letter.

16 years agogas/
H.J. Lu [Thu, 1 Nov 2007 16:27:08 +0000 (16:27 +0000)]
gas/

2007-11-01  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (process_suffix): Check addrprefixop0 to
see if the address size override prefix changes the size of the
first operand.
(check_byte_reg): Don't warn if byteokintel is set.
(check_long_reg): Set i.suffix to QWORD_MNEM_SUFFIX if toqword
is set.
(check_qword_reg): Set i.suffix to LONG_MNEM_SUFFIX if todword
is set.

gas/testsuite/

2007-11-01  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.d: New.
* gas/i386/i386.s: Likewise.

* gas/i386/i386.exp: Run i386.

* gas/i386/x86_64.s: Add tests for movsx, movsbl, movsbq,
movsbw, movswl, movswq, movzx, movzb, movzbl, movzbq,
movzbw, movzwl and movzwq.
* gas/i386/x86_64.d: Updated.

opcodes/

2007-11-01  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (opcode_modifiers): Add ByteOkIntel, ToDword,
ToQword and AddrPrefixOp0.

* i386-opc.h (ByteOkIntel): New.
(ToDword): Likewise.
(ToQword): Likewise.
(AddrPrefixOp0): Likewise.
(IsPrefix): Updated.
(i386_opcode_modifier): Add byteokintel, todword, toqword
and addrprefixop0.

* i386-opc.tbl (cvtss2si): Add ToQword.
(cvttss2si): Likewise.
(cvtsd2si): Add ToDword.
(cvttsd2si): Likewise.
(monitor): Add AddrPrefixOp0.
(invlpga): Likewise.
(vmload): Likewise.
(vmrun): Likewise.
(vmsave): Likewise.
(pextrb): Add ByteOkIntel.
(pinsrb): Likewise.
* i386-tbl.h: Regenerated.

16 years agobfd:
Joseph Myers [Thu, 1 Nov 2007 11:45:20 +0000 (11:45 +0000)]
bfd:
* merge.c (sec_merge_hash_lookup): Add parameter sec_end.  Check
for unterminated strings.  All callers changed.
(record_section): Add parameter abfd.  Give error message for
unterminated strings.
(_bfd_merge_sections): Update call to record_section.
(_bfd_write_merged_section, _bfd_merged_section_offset): Handle
NULL secinfo from merge failures.

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

16 years agoFrom Cary Coutant: More support for -shared, including fixes to GOT
Ian Lance Taylor [Thu, 1 Nov 2007 00:19:30 +0000 (00:19 +0000)]
From Cary Coutant: More support for -shared, including fixes to GOT
handling.

16 years ago2007-10-31 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 31 Oct 2007 23:41:12 +0000 (23:41 +0000)]
2007-10-31  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (USE_REG_TABLE): Defined as the previous one + 1.
(USE_REG_TABLE): Likewise.
(USE_MOD_TABLE): Likewise.
(USE_RM_TABLE): Likewise.
(USE_PREFIX_TABLE): Likewise.
(USE_X86_64_TABLE): Likewise.
(USE_3BYTE_TABLE): Likewise.

16 years agodaily update
Alan Modra [Wed, 31 Oct 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago2007-10-31 Eric B. Weddington <eweddington@cso.atmel.com>
Eric B. Weddington [Wed, 31 Oct 2007 18:11:28 +0000 (18:11 +0000)]
2007-10-31  Eric B. Weddington  <eweddington@cso.atmel.com>

* config/tc-avr.c (mcu_types): Remove devices that were never produced:
attiny10, atmega83, atmega85, atmega603.
* doc/c-avr.texi: Likewise.

16 years agoAdd cast to avoid compile time warning
Nick Clifton [Wed, 31 Oct 2007 17:13:53 +0000 (17:13 +0000)]
Add cast to avoid compile time warning

16 years ago* dwarf.c (is_relocatable): Remove definition.
Nick Clifton [Wed, 31 Oct 2007 16:09:53 +0000 (16:09 +0000)]
* dwarf.c (is_relocatable): Remove definition.
  (display_debug_frames): Remove check in is_relocatable.
* dwarf.h (is_relocatable): Remove declaration.
* objdump.c (is_relocatable): New static definition.
* readelf.c (dump_relocations): Make the function void.
  (is_32bit_abs_reloc): Add support for x86, Arc, Arm, D10V, Dlx, OR32 and Score.
  (is_32bit_pcrel_reloc): Add support for x86 and Arm.
  (is_16bit_abs_reloc): Add support for D10V.
  (debug_apply_rela_addends): Rename to debug_apply_relocations.
  Add code to support rel relocations.
  (load_debug_section): Fix call to debug_apply_relocations.
  (get_file_header): Remove setting of is_relocatable.
* gas/cfi/cfi-common-6.d: Allow for possible relocation of the .debug.eh_frame section.

16 years ago* elf-m10300.c (mn10300_elf_relax_delete_bytes): Do not look for align
Nick Clifton [Wed, 31 Oct 2007 11:33:27 +0000 (11:33 +0000)]
* elf-m10300.c (mn10300_elf_relax_delete_bytes): Do not look for align
  relocs when there are no relocs attached to the section.

16 years ago * readelf.c (debug_apply_rela_addends): Clarify FIXME.
Alan Modra [Wed, 31 Oct 2007 07:40:11 +0000 (07:40 +0000)]
* readelf.c (debug_apply_rela_addends): Clarify FIXME.

16 years ago * elf-bfd.h (bfd_elf_match_symbols_in_sections): Don't declare.
Alan Modra [Wed, 31 Oct 2007 07:36:46 +0000 (07:36 +0000)]
* elf-bfd.h (bfd_elf_match_symbols_in_sections): Don't declare.
* elflink.c (bfd_elf_match_symbols_in_sections): Make static.
Remove section name comparisons.

16 years agodaily update
Alan Modra [Tue, 30 Oct 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years ago* mn10300.h (R_MN10300_ALIGN): Define.
Nick Clifton [Tue, 30 Oct 2007 15:18:29 +0000 (15:18 +0000)]
* mn10300.h (R_MN10300_ALIGN): Define.
* reloc.c (BFD_RELOC_MN10300_ALIGN): Add.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* elf-m10300.h: Handle R_MN10300_ALIGN relocs.
* mn10300_elf_relax_delete_bytes): Honour R_MN10300_ALIGN relocs.
  Re-fix off by one error in comparisons.
* config/tc-mn10300.c (tc_gen_reloc): Fix test that decides when
  sym_diff relocs should be generated.
  (md_apply_fix): Skip R_MN10300_ALIGN relocs.
  (mn10300_fix_adjustable): Do not adjust R_MN10300_ALIGN relocs.
  (mn10300_handle_align): New function.  Generate R_MN10300_ALIGN
  relocs to record alignment requests.
* config/tc-mn10300.h (TC_FORCE_RELOCATION_SUB_SAME): Also force
  R_MN10300_ALIGN relocs.
  (HANDLE_ALIGN): Define.  Call mn10300_handle_align.
* gas/all/gas.exp: Do not run diff1.s test for mn10300.
* ld-mn10300/mn10300.exp: Run new tests.  Skip i126256 test if
  a compiler is not available.
* ld-mn10300/i112045-3.s: New test.
* ld-mn10300/i112045-3.d: Expected disassembly.
* ld-mn10300/i135409.s: Rename to i135409-1.s.
* ld-mn10300/i135409.d: Rename to i135409-1.d
* ld-mn10300/i135409-2.s: New test.
* ld-mn10300/i135409-2.d: Expected symbol table.
* ld-mn10300/i36434.d: Adjust expected disassembly.

16 years ago* doc/as.texinfo (Section): Replace "subsegment" with subsection".
Nick Clifton [Tue, 30 Oct 2007 14:23:22 +0000 (14:23 +0000)]
* doc/as.texinfo (Section): Replace "subsegment" with subsection".

16 years agoFrom Craig Silverstein: Implement OPTION in linker scripts.
Ian Lance Taylor [Tue, 30 Oct 2007 06:27:03 +0000 (06:27 +0000)]
From Craig Silverstein: Implement OPTION in linker scripts.

16 years agoAdjust PLTOFF64 calculation.
Ian Lance Taylor [Tue, 30 Oct 2007 04:23:19 +0000 (04:23 +0000)]
Adjust PLTOFF64 calculation.

16 years agoFrom Craig Silverstein: Implement GOTPLT64 and PLTOFF64.
Ian Lance Taylor [Tue, 30 Oct 2007 01:21:51 +0000 (01:21 +0000)]
From Craig Silverstein: Implement GOTPLT64 and PLTOFF64.

16 years agoFrom Craig Silverstein: Clean up some unnecessary TODO markers.
Ian Lance Taylor [Mon, 29 Oct 2007 23:36:39 +0000 (23:36 +0000)]
From Craig Silverstein: Clean up some unnecessary TODO markers.

16 years agodaily update
Alan Modra [Mon, 29 Oct 2007 23:00:05 +0000 (23:00 +0000)]
daily update