OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
16 years ago* elf.c (assign_file_positions_for_load_sections): Set the type of
Jan Kratochvil [Sun, 17 Feb 2008 13:21:20 +0000 (13:21 +0000)]
* elf.c (assign_file_positions_for_load_sections): Set the type of
PT_NOTE sections to SHT_NOTE.

16 years ago2008-02-16 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sun, 17 Feb 2008 00:26:19 +0000 (00:26 +0000)]
2008-02-16  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (process_immext): Fix format.

16 years ago * simple.c (bfd_simple_get_relocated_section_contents): Set
Alan Modra [Sat, 16 Feb 2008 23:00:12 +0000 (23:00 +0000)]
* simple.c (bfd_simple_get_relocated_section_contents): Set
link_info.output_bfd.

16 years agodaily update
Alan Modra [Sat, 16 Feb 2008 23:00:07 +0000 (23:00 +0000)]
daily update

16 years agogas/
H.J. Lu [Sat, 16 Feb 2008 16:16:48 +0000 (16:16 +0000)]
gas/

2008-02-16  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (inoutportreg): New.
(process_immext): New.
(md_assemble): Use it.
(update_imm): Use imm16 and imm32s.
(i386_att_operand): Use inoutportreg.

opcodes/

2008-02-16  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c  (operand_type_init): Add OPERAND_TYPE_INOUTPORTREG.
* i386-init.h: Regenerated.

16 years ago2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Paolo Bonzini [Sat, 16 Feb 2008 15:26:46 +0000 (15:26 +0000)]
2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

PR libgcj/33085
* libtool.m4 (_LT_COMPILER_PIC) [ mingw, cygwin ] <GCJ>:
Do not use -DDLL_EXPORT.  Backport from upstream.

16 years ago * dwarf2.c (find_line): Don't trust debug information after an
Nathan Sidwell [Sat, 16 Feb 2008 10:51:38 +0000 (10:51 +0000)]
* dwarf2.c (find_line): Don't trust debug information after an
unparseable compilation unit.

16 years ago PR ld/5761
Alan Modra [Sat, 16 Feb 2008 00:06:02 +0000 (00:06 +0000)]
PR ld/5761
* ldexp.c (fold_name <LOADADDR>): Check result of evaluating
load_base before calling make_abs.

16 years agodaily update
Alan Modra [Fri, 15 Feb 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago PR 5765
Alan Modra [Fri, 15 Feb 2008 10:35:46 +0000 (10:35 +0000)]
PR 5765
* section.c (SEC_LINK_DUPLICATES): Correct.  Renumber following flags.
* bfd-in2.h: Regenerate.

16 years agoUpdate attribution for PR 5713 patch.
Nick Clifton [Fri, 15 Feb 2008 10:24:27 +0000 (10:24 +0000)]
Update attribution for PR 5713 patch.

16 years ago PR binutils/5713
Nick Clifton [Fri, 15 Feb 2008 10:20:09 +0000 (10:20 +0000)]
    PR binutils/5713
        * strings.c (integer_arg): Delete function.
        (string_min): Initialise to 4.
        (main): Use strtoul to parse integer arguments.
        Move check for an invalid string length to after all the arguments
        have been parsed.
        (usage): Use indentation to indicate that -<n> is a another form
        of the --bytes= command line option.

16 years ago * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
Alan Modra [Fri, 15 Feb 2008 09:03:02 +0000 (09:03 +0000)]
* emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
* emultempl/hppaelf.em (hppaelf_create_output_section_statements):
Likewise.
* emultempl/ppc64elf.em (ppc_create_output_section_statements):
Likewise.
* emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete.  Replace all
uses with..
(is_ppc_elf): ..this new macro.

16 years ago * elf-bfd.h (enum elf_object_id): Add HPPA_ELF_TDATA.
Alan Modra [Fri, 15 Feb 2008 08:27:19 +0000 (08:27 +0000)]
* elf-bfd.h (enum elf_object_id): Add HPPA_ELF_TDATA.
* elf.c (bfd_elf_allocate_object): Don't check for already allocated
tdata.
* elf32-hppa.c (elf32_hppa_mkobject): New function.
(bfd_elf32_mkobject): Define.
* elf32-ppc.c (is_ppc_elf_target): Delete.  Replace all uses with..
(is_ppc_elf): ..this new macro.
* elf64-ppc.c (is_ppc64_elf_target): Delete.  Replace all uses with..
(is_ppc64_elf): ..this new macro.

16 years agoinclude/
Alan Modra [Fri, 15 Feb 2008 03:35:53 +0000 (03:35 +0000)]
include/
* bfdlink.h (struct bfd_link_hash_table): Delete creator field.
(struct bfd_link_info): Add output_bfd.
bfd/
* elflink.c: Replace all accesses to hash->creator field with
output_bfd->xvec.
* cofflink.c: Likewise.
* coff-h8300.c: Likewise.
* ecoff.c: Likewise.
* elf32-m68hc1x.c: Likewise.
* elf32-ppc.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-sparc.c: Likewise.
* elfxx-mips.c: Likewise.
* i386linux.c: Likewise.
* m68klinux.c: Likewise.
* sparclinux.c: Likewise.
* sunos.c: Likewise.
* xcofflink.c: Likewise.
* linker.c: Likewise.
(_bfd_link_hash_table_init): Don't store creator.
ld/
* ldmain.h (output_bfd): Delete.
* ldmain.c (output_bfd): Delete.
Replace all occurrences of output_bfd with link_info.output_bfd.
* ldcref.c: Likewise.
* ldctor.c: Likewise.
* ldemul.c: Likewise.
* ldexp.c: Likewise.
* ldfile.c: Likewise.
* ldlang.c: Likewise.
* ldmisc.c: Likewise.
* ldwrite.c: Likewise.
* pe-dll.c: Likewise.
* emultempl/aix.em: Likewise.
* emultempl/alphaelf.em: Likewise.
* emultempl/armcoff.em: Likewise.
* emultempl/armelf.em: Likewise.
* emultempl/avrelf.em: Likewise.
* emultempl/beos.em: Likewise.
* emultempl/elf-generic.em: Likewise.
* emultempl/elf32.em: Likewise.
* emultempl/gld960.em: Likewise.
* emultempl/hppaelf.em: Likewise.
* emultempl/irix.em: Likewise.
* emultempl/linux.em: Likewise.
* emultempl/lnk960.em: Likewise.
* emultempl/m68hc1xelf.em: Likewise.
* emultempl/mmix-elfnmmo.em: Likewise.
* emultempl/mmo.em: Likewise.
* emultempl/pe.em: Likewise.
* emultempl/pep.em: Likewise.
* emultempl/ppc32elf.em: Likewise.
* emultempl/ppc64elf.em: Likewise.
* emultempl/scoreelf.em: Likewise.
* emultempl/sh64elf.em: Likewise.
* emultempl/spuelf.em: Likewise.
* emultempl/sunos.em: Likewise.
* emultempl/vanilla.em: Likewise.
* emultempl/vxworks.em: Likewise.
* emultempl/xtensaelf.em: Likewise.
* emultempl/z80.em: Likewise.
* ldlang.c (open_output): Don't return output, instead write
link_info_output_bfd directly.
* emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
with link_info.output_bfd->xvec.
* emultempl/hppaelf.em: Likewise.
* emultempl/ppc32elf.em: Likewise.
* emultempl/ppc64elf.em: Likewise.
* emultempl/spuelf.em: Likewise.

16 years agodaily update
Alan Modra [Thu, 14 Feb 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago2008-02-14 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 14 Feb 2008 22:54:02 +0000 (22:54 +0000)]
2008-02-14  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (operand_type_all_zero): New.
(operand_type_set): Likewise.
(operand_type_equal): Likewise.
(cpu_flags_all_zero): Likewise.
(cpu_flags_set): Likewise.
(cpu_flags_equal): Likewise.
(UINTS_ALL_ZERO): Removed.
(UINTS_SET): Likewise.
(UINTS_CLEAR): Likewise.
(UINTS_EQUAL): Likewise.
(cpu_flags_match): Updated.
(smallest_imm_type): Likewise.
(set_cpu_arch): Likewise.
(md_assemble): Likewise.
(optimize_imm): Likewise.
(match_template): Likewise.
(process_suffix): Likewise.
(update_imm): Likewise.
(process_drex): Likewise.
(process_operands): Likewise.
(build_modrm_byte): Likewise.
(i386_immediate): Likewise.
(i386_displacement): Likewise.
(i386_att_operand): Likewise.
(parse_real_register): Likewise.
(md_parse_option): Likewise.
(i386_target_format): Likewise.

16 years ago2008-02-14 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 14 Feb 2008 20:23:27 +0000 (20:23 +0000)]
2008-02-14  H.J. Lu  <hongjiu.lu@intel.com>

* ld-shared/sh1.c (shlib_overriddencall2): Moved to ...
* ld-shared/sh2.c (shlib_overriddencall2): Here.  New.

16 years ago PR gas/5712
Nick Clifton [Thu, 14 Feb 2008 16:35:51 +0000 (16:35 +0000)]
    PR gas/5712
        * config/tc-arm.c (s_arm_unwind_save): Advance the input line
        pointer past the comma after parsing a floating point register
        name.

        * gas/arm/fp-save.s: New test.
        * gas/arm/fp-save.d: Expected disassembly.

16 years ago * efi-rtdrv-ia32.c: New file.
Nick Clifton [Thu, 14 Feb 2008 15:20:26 +0000 (15:20 +0000)]
    * efi-rtdrv-ia32.c: New file.
        * efi-bsdrv-ia32.c: New file.
        * efi-rtdrv-ia64.c: New file.
        * efi-bsdrv-ia64.c: New file.
        * efi-rtdrv-x86_64.c: New file.
        * efi-bsdrv-x86_64.c: New file.
        * peicode.h (pe_bfd_object_p): Add support for boot service and
        runtime service drivers.
        * libpei.h: Add macros for EFI formats, and rename the efi application
        format macros to disambiguate.
        * targets.c: Add bfd_target _vec externs.
        (_bfd_tar): Add EFI _vec entries.
        * config.bfd: Add EFI vectors into the selection routines.
        * configure.in: add EFI _vec entries.
        * configure: Regenerate.
        * Makefile.am: Add EFI files.
        * Makefile.in: Regenerate.

16 years ago PR gas/2626
Nick Clifton [Thu, 14 Feb 2008 13:04:29 +0000 (13:04 +0000)]
    PR gas/2626

        * avr.h (AVR_ISA_2xxe): Define.

        * config/tc-avr.c (mcu_types): Change the ISA tyoe of the attiny26
        to AVR_ISA_2xxe.
        (avr_operand): Disallow post-increment addressing in the lpm
        instruction for the attiny26.

16 years ago * dwarf1.c (struct dwarf1_debug): Add syms member.
Nathan Sidwell [Thu, 14 Feb 2008 13:02:38 +0000 (13:02 +0000)]
* dwarf1.c (struct dwarf1_debug): Add syms member.
(alloc_dwarf1_unit, alloc_dwarf1_func): Check for out of memory.
(parse_line_table, _bfd_dwarf1_find_nearest_line): Relocate
section contents, check for out of memory.

* dwarf1.c (struct dwarf1_debug): Change data pointers to bfd_byte.
(parse_die): Change data pointers to bfd_byte.
(parse_line_table, parse_functions_in_unit): Likewise.

16 years agoImport this patch from gcc:
Nick Clifton [Thu, 14 Feb 2008 12:44:38 +0000 (12:44 +0000)]
Import this patch from gcc:
2008-01-24  David Edelsohn  <edelsohn@gnu.org>

            * libtool.m4: Backport AIX 6 support from ToT Libtool.

16 years agoPR binutils/5524
Nick Clifton [Thu, 14 Feb 2008 12:33:17 +0000 (12:33 +0000)]
PR binutils/5524
   * configure.in (SHARED_LIBADD): Select the correct host specific
   file extension for shared libraries.
   * configure: Regenerate.

16 years ago * elflink.c (compute_bucket_count): Warning fixes.
Alan Modra [Thu, 14 Feb 2008 08:31:47 +0000 (08:31 +0000)]
* elflink.c (compute_bucket_count): Warning fixes.

16 years agoAlign FDE and CIE lengths as needed.
Ian Lance Taylor [Thu, 14 Feb 2008 02:40:15 +0000 (02:40 +0000)]
Align FDE and CIE lengths as needed.

16 years agoSet load address for orphan sections.
Ian Lance Taylor [Thu, 14 Feb 2008 02:34:22 +0000 (02:34 +0000)]
Set load address for orphan sections.

16 years agodaily update
Alan Modra [Wed, 13 Feb 2008 23:00:06 +0000 (23:00 +0000)]
daily update

16 years agoImplement -Tdata and -Tbss.
Ian Lance Taylor [Wed, 13 Feb 2008 22:47:28 +0000 (22:47 +0000)]
Implement -Tdata and -Tbss.

16 years agoImplement remaining linker script functions.
Ian Lance Taylor [Wed, 13 Feb 2008 22:44:50 +0000 (22:44 +0000)]
Implement remaining linker script functions.

16 years ago * gas/mips/branch-misc-2pic-64.d (#name): Have a unique name
Adam Nemet [Wed, 13 Feb 2008 17:22:43 +0000 (17:22 +0000)]
* gas/mips/branch-misc-2pic-64.d (#name): Have a unique name
different from the branch-misc-2-64.d test.

16 years agogas/
Jan Beulich [Wed, 13 Feb 2008 13:41:26 +0000 (13:41 +0000)]
gas/
2008-02-13  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (parse_real_register): Don't return 'FLAT'
if not in Intel mode.
(i386_intel_operand): Ignore segment overrides in immediate and
offset operands.
(intel_e11): Range-check i.mem_operands before use as array
index. Filter out FLAT for uses other than as segment override.
(intel_get_token): Remove broken promotion of "FLAT:" to mean
"offset FLAT:".

gas/testsuite/
2008-02-13  Jan Beulich  <jbeulich@novell.com>

* gas/i386/intelok.s: Replace invalid offset expression with
valid ones.
* gas/i386/x86_64.s: Likewise.

opcodes/
2008-02-13  Jan Beulich  <jbeulich@novell.com>

* i386-opc.h (RegFlat): New.
* i386-reg.tbl (flat): Add.
* i386-tbl.h: Re-generate.

16 years agogas/
Jan Beulich [Wed, 13 Feb 2008 13:29:31 +0000 (13:29 +0000)]
gas/
2008-02-13  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (intel_e09): Also special-case 'bound'.

gas/testsuite/
2008-02-13  Jan Beulich  <jbeulich@novell.com>

* gas/i386/intelbad.s, gas/i386/intelok.s: Add 'bound' tests.
* gas/i386/intelbad.l, gas/i386/intelok.l, gas/i386/intelok.e,
gas/i386/opcode-intel.d: Adjust.

opcodes/
2008-02-13  Jan Beulich  <jbeulich@novell.com>

* i386-dis.c (a_mode): New.
(cond_jump_mode): Adjust.
(Ma): Change to a_mode.
(intel_operand_size): Handle a_mode.
* i386-opc.tbl: Allow Dword and Qword for bound.
* i386-tbl.h: Re-generate.

16 years agogas/
Jan Beulich [Wed, 13 Feb 2008 10:14:40 +0000 (10:14 +0000)]
gas/
2008-02-13  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (allow_pseudo_reg): New.
(parse_real_register): Check for NULL just once. Allow all
register table entries when allow_pseudo_reg is non-zero.
Don't allow any registers without type when allow_pseudo_reg
is zero.
(tc_x86_regname_to_dw2regnum): Replace with ...
(tc_x86_parse_to_dw2regnum): ... this.
(tc_x86_frame_initial_instructions): Adjust for above change.
* config/tc-i386.h (tc_regname_to_dw2regnum): Remove.
(tc_parse_to_dw2regnum): New.
(tc_x86_regname_to_dw2regnum): Replace with ...
(tc_x86_parse_to_dw2regnum): ... this.
* dw2gencfi.c (tc_parse_to_dw2regnum): New, broken out of ...
(cfi_parse_reg): ... this. Use tc_parse_to_dw2regnum. Adjust
error handling.

gas/testsuite/
2008-02-13  Jan Beulich  <jbeulich@novell.com>

* gas/cfi/cfi-i386.s: Add code testing use of all registers.
Fix a few comments.
* gas/cfi/cfi-x86_64.s: Likewise.
* gas/cfi/cfi-i386.d, gas/cfi/cfi-x86_64.d: Adjust.

opcodes/
2008-02-13  Jan Beulich  <jbeulich@novell.com>

* i386-gen.c (process_i386_registers): Process new fields.
* i386-opc.h (reg_entry): Shrink reg_flags and reg_num to
unsigned char. Add dw2_regnum and Dw2Inval.
* i386-reg.tbl: Provide initializers for dw2_regnum. Add pseudo
register names.
* i386-tbl.h: Re-generate.

16 years agoSupport selecting target by name.
Ian Lance Taylor [Wed, 13 Feb 2008 02:44:50 +0000 (02:44 +0000)]
Support selecting target by name.

16 years agoAssignments in linker scripts override definitions from object files.
Ian Lance Taylor [Wed, 13 Feb 2008 01:20:38 +0000 (01:20 +0000)]
Assignments in linker scripts override definitions from object files.

16 years agoImplement LOADADDR and SIZEOF.
Ian Lance Taylor [Wed, 13 Feb 2008 01:18:53 +0000 (01:18 +0000)]
Implement LOADADDR and SIZEOF.

16 years agodaily update
Alan Modra [Tue, 12 Feb 2008 23:00:07 +0000 (23:00 +0000)]
daily update

16 years ago* elf32-iq2000.c (iq2000_elf_relocate_section): Adjust addend of
DJ Delorie [Tue, 12 Feb 2008 19:11:55 +0000 (19:11 +0000)]
* elf32-iq2000.c (iq2000_elf_relocate_section): Adjust addend of
relocation pointing to local symbol in merged section.
* elf32-iq2000.c (iq2000_elf_relocate_offset16): New.
(iq2000_elf_relocate_section): Call it.

16 years ago2002-02-12 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 12 Feb 2008 18:56:12 +0000 (18:56 +0000)]
2002-02-12  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.exp: Run x86-64-arch-2 instead of
x86-64-arch-10.

* gas/i386/x86-64-arch-10.d: Removed.

* gas/i386/x86-64-arch-2.d: New.
* gas/i386/x86-64-arch-2.s: Likewise.

16 years agoCorrect last 2 ChangeLog entries.
H.J. Lu [Tue, 12 Feb 2008 17:22:02 +0000 (17:22 +0000)]
Correct last 2 ChangeLog entries.

16 years ago2008-02-12 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 12 Feb 2008 15:35:29 +0000 (15:35 +0000)]
2008-02-12  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/x86-64-xsave.d: Remove prefix.

16 years ago* dlltool.c (mcore_elf_cache_filename): Add a const qualifier to
Nick Clifton [Tue, 12 Feb 2008 12:33:51 +0000 (12:33 +0000)]
* dlltool.c (mcore_elf_cache_filename): Add a const qualifier to
  the argument.
  (scan_obj_filename): Do not drop the const qualifier when calling
  mcore_elf_cache_filename.
  (struct fname_cache): Add const qualifier to filename field.

16 years agoPR ld/5692
Nick Clifton [Tue, 12 Feb 2008 11:32:31 +0000 (11:32 +0000)]
PR ld/5692
   * elf-bfd.h (enum elf_object_id): New enum, used to identify
   target specific extensions to the elf_obj_tdata structure.
   (struct elf_obj_tdata): New field 'object_id'.
   (elf_object_id, elf_program_header_size, elf_symtab_hdr): New
   macros for accessing fields in the elf_obj_tdata structure.
   (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object.
   (bfd_elf_allocate_object): New function.
   * elf.c (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object
   and implement by calling bfd_elf_allocate_object.
   (bfd_elf_allocate_object): New function: Allocates an
   elf_obj_tdata structure, possibly with a target specific
   extension.
   * elfxx-target.h (bfd_elfNN_mkobject): Use
   bfd_elf_make_generic_object as the default value.
   * elf32-arm.c (elf32_arm_obj_tdata): Rename to elf_arm_obj_tdata
   for consistency with other, similar structures.
   (is_arm_elf): New macro.  Checks a BFD to make sure that is an ARM
   ELF bfd.
   (elf32_arm_mkobject): Call bfd_elf_allocate_object.
   (bfd_elf32_arm_vfp11_erratum_scan): Use is_arm_elf macro to check
   the bfd being processed.
   (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
   (bfd_elf32_arm_set_target_relocs): Likewise.
   (bfd_elf32_arm_final_link_relocate): Likewise.
   (bfd_elf32_arm_copy_private_bfd_data): Likewise.
   (bfd_elf32_arm_merge_eabi_attributes): Likewise.
   (bfd_elf32_arm_merge_private_bfd_data): Likewise.
   (bfd_elf32_arm_check_relocs): Likewise.
   (bfd_elf32_arm_gc_mark_extra_sections): Likewise.
   (bfd_elf32_arm_size_dynamic_sections): Likewise.
   (bfd_elf32_arm_process_before_allocation): Use elf_symtab_hdr.
   (bfd_elf32_arm_init_maps): Likewise.
   (bfd_elf32_arm_final_link_relocate): Likewise.
   (bfd_elf32_arm_relocate_section): Likewise.
   (bfd_elf32_arm_gc_sweep_hook): Likewise.
   (bfd_elf32_arm_check_relocs): Likewise.
   (bfd_elf32_arm_size_dynamic_sections): Likewise.
   * elf32-i386.c (elf_i386_mkobject): Call bfd_elf_allocate_object.
   (is_i386_elf): New macro.  Checks a BFD to make sure that is an x86
   ELF bfd.
   (elf_i386_check_relocs): Use is_i386_elf macro to check    the bfd
   being processed.
   (elf_i386_size_dynamic_sections): Likewise.
   (elf_i386_relocate_section): Likewise.
   (elf_i386_check_relocs): Use elf_symtab_hdr.
   (elf_i386_gc_sweep_hook): Likewise.
   (elf_i386_size_dynamic_sections): Likewise.
   (elf_i386_relocate_section): Likewise.
   * elf32-ppc.c (ppc_elf_mkobject): Call bfd_elf_allocate_object.
   (elf_create_pointer_linker_section): Use is_ppc_elf_target to
   verify that the bfd before accessing target specific fields.
   (ppc_elf_check_relocs): Likewise.
   (elf_finish_pointer_linker_section): Likewise.
   (elf_create_pointer_linker_section): Use elf_symtab_hdr.
   (ppc_elf_check_relocs): Likewise.
   (ppc_elf_gc_sweep_hook): Likewise.
   (ppc_elf_tls_optimize): Likewise.
   (ppc_elf_size_dynamic_sections): Likewise.
   (ppc_elf_relax_section): Likewise.
   (ppc_elf_relocate_section): Likewise.
   * elf32-s390.c (struct elf_s390_obj_tdata): Add a comment
   reminding programmers to keep this structure in sync with the one
   defined in elf64-s390.c.
   (elf_s390_mkobject): Call bfd_elf_allocate_object.
   (is_s390_elf): New macro.  Checks a BFD to make sure that is an s390
   ELF bfd.
   (elf_s390_check_relocs): Use is_s390_elf macro to check    the bfd
   being processed.
   (elf_s390_size_dynamic_sections): Likewise.
   (elf_s390_relocate_section): Likewise.
   (elf_s390_check_relocs): Use elf_symtab_hdr.
   (elf_s390_gc_sweep_hook): Likewise.
   (elf_s390_size_dynamic_sections): Likewise.
   (elf_s390_relocate_section): Likewise.
   * elf32-sh.c (sh_elf_mkobject): Call bfd_elf_allocate_object.
   (is_sh_elf): New macro.  Checks a BFD to make sure that is an SH
   ELF bfd.
   (sh_elf_size_dynamic_sections): Use is_sh_elf macro to check the
   bfd being processed.
   (sh_elf_relocate_section): Likewise.
   (sh_elf_check_relocs): Likewise.
   (sh_elf_copy_private_data): Likewise.
   (sh_elf_relax_section): Use elf_symtab_hdr.
   (sh_elf_size_dynamic_sections): Likewise.
   (sh_elf_relocate_section): Likewise.
   (sh_elf_get_relocated_section_contents): Likewise.
   (sh_elf_gc_sweep_hook): Likewise.
   (sh_elf_check_relocs): Likewise.
   * elf64-alpha.c (elf64_alpha_mkobject): Call bfd_elf_allocate_object.
   (is_alpha_elf): New macro.  Checks a BFD to make sure that is an
   Alpha ELF bfd.
   (elf64_alpha_create_got_section): Use is_alpha_elf macro to check
   the bfd being processed.
   (elf64_alpha_create_dynamic_section): Likewise.
   (elf64_alpha_check_relocs): Likewise.
   (elf64_alpha_size_got_sections): Likewise.
   (elf64_alpha_relax_section): Likewise.
   (elf64_alpha_relocate_section): Likewise.
   (elf64_alpha_final_link): Likewise.
   (elf64_alpha_check_relocs): Use elf_symtab_hdr.
   (elf64_alpha_relax_section): Likewise.
   (elf64_alpha_relocate_section_r): Likewise.
   (elf64_alpha_relocate_section): Likewise.
   * elf64-ppc.c (ppc64_elf_mkobject): Call bfd_elf_allocate_object.
   (ppc64_elf_check_relocs): Use is_ppc64_elf_target to check the bfd
   being processed.
   (opd_entry_value): Likewise.
   (allocate_dynrelocs): Likewise.
   (ppc64_elf_relocate_section): Likewise.
   (ppc64_elf_check_relocs): Use elf_symtab_hdr.
   (opd_entry_value): Likewise.
   (ppc64_elf_gc_sweep_hook): Likewise.
   (get_sym_h): Likewise.
   (ppc64_elf_edit_opd): Likewise.
   (ppc64_elf_tls_optimize): Likewise.
   (ppc64_elf_edit_toc): Likewise.
   (ppc64_elf_size_dynamic_sections): Likewise.
   (toc_adjusting_stub_needed): Likewise.
   (ppc64_elf_size_stubs): Likewise.
   (ppc64_elf_relocate_section): Likewise.
   * elf64-s390.c (struct elf_s390_obj_tdata): Add a comment
   reminding programmers to keep this structure in sync with the one
   defined in elf32-s390.c.
   (elf_s390_mkobject): Call bfd_elf_allocate_object.
   (is_s390_elf): New macro.  Checks a BFD to make sure that is an s390
   ELF bfd.
   (elf_s390_check_relocs): Use is_s390_elf macro to check    the bfd
   being processed.
   (elf_s390_size_dynamic_sections): Likewise.
   (elf_s390_relocate_section): Likewise.
   (elf_s390_check_relocs): Use elf_symtab_hdr.
   (elf_s390_gc_sweep_hook): Likewise.
   (elf_s390_size_dynamic_sections): Likewise.
   (elf_s390_relocate_section): Likewise.
   * elf64-x86_64.c (elf64_x86_64_mkobject): Call bfd_elf_allocate_object.
   (is_x86_64_elf): New macro.  Checks a BFD to make sure that is an
   x86_64 ELF bfd.
   (elf64_x86_64_check_relocs): Use is_x86_64_elf macro to check the bfd
   being processed.
   (elf64_x86_64_size_dynamic_sections): Likewise.
   (elf64_x86_64_relocate_section): Likewise.
   (elf64_x86_64_check_relocs): Use elf_symtab_hdr.
   (elf64_x86_64_gc_sweep_hook): Likewise.
   (elf64_x86_64_size_dynamic_sections): Likewise.
   (elf64_x86_64_relocate_section): Likewise.
   * elfxx-sparc.c (_bfd_sparc_elf_mkobject): Call bfd_elf_allocate_object.
   (is_sparc_elf): New macro.  Checks a BFD to make sure that is a Sparc
   ELF bfd.
   (_bfd_sparc_elf_check_relocs): Use is_sparc_elf macro to check the
   bfd being processed.
   (_bfd_sparc_elf_gc_sweep_hook): Likewise.
   (_bfd_sparc_elf_size_dynamic_sections): Likewise.
   (_bfd_sparc_elf_check_relocs): Use elf_symtab_hdr.
   (_bfd_sparc_elf_gc_sweep_hook): Likewise.
   (_bfd_sparc_elf_size_dynamic_sections): Likewise.
   (_bfd_sparc_elf_relocate_section): Likewise.

16 years ago* config/tc-tic4x.c (tic4x_insn_insert): Add const qualifier to
Nick Clifton [Tue, 12 Feb 2008 08:37:08 +0000 (08:37 +0000)]
* config/tc-tic4x.c (tic4x_insn_insert): Add const qualifier to
  argument.
  (tic4x_insn_add): Likewise.
  (md_begin): Drop cast that was discarding a const qualifier.
  * config/tc-d30v.c (get_reloc): Add const qualifier to op
  argument.
  (build_insn): Drop cast that was discarding a const qualifier.

16 years agogas/
H.J. Lu [Tue, 12 Feb 2008 05:35:36 +0000 (05:35 +0000)]
gas/

2008-02-11  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (cpu_arch): Add .xsave.
(md_show_usage): Add .xsave.

* doc/c-i386.texi: Add xsave to -march=.

gas/testsuite/

2008-02-11  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/arch-10.s: Add xgetbv.

* gas/i386/arch-10.d: Updated.
* gas/i386/arch-10-1.l: Likewise.
* gas/i386/arch-10-2.l: Likewise.
* gas/i386/arch-10-3.l: Likewise.
* gas/i386/arch-10-4.l: Likewise.
* gas/i386/x86-64-arch-10.d: Likewise.

opcodes/

2008-02-11  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c  (cpu_flag_init): Add CPU_XSAVE_FLAGS.
* i386-init.h: Updated.

16 years agoUp version to 1.1, as the 1.1 binary was pushed to users today.
Craig Silverstein [Tue, 12 Feb 2008 02:01:32 +0000 (02:01 +0000)]
Up version to 1.1, as the 1.1 binary was pushed to users today.

16 years agomissed from last commit
Alan Modra [Tue, 12 Feb 2008 00:28:55 +0000 (00:28 +0000)]
missed from last commit

16 years agoSupport dynamic relocations against local section symbols.
Ian Lance Taylor [Tue, 12 Feb 2008 00:28:48 +0000 (00:28 +0000)]
Support dynamic relocations against local section symbols.

16 years ago PR 5755
Alan Modra [Tue, 12 Feb 2008 00:26:00 +0000 (00:26 +0000)]
PR 5755
* arange-set.c: Delete.
* arange-set.h: Delete.
* dwarf2.c: Revert 2007-09-21 changes.
* Makefile.am: Likewise.
* Makefile.in: Regenerate.
* po/SRC-POTFILES.in: Regenerate.

16 years agoSet TEXTREL correctly when using a SECTIONS clause.
Ian Lance Taylor [Tue, 12 Feb 2008 00:24:00 +0000 (00:24 +0000)]
Set TEXTREL correctly when using a SECTIONS clause.

16 years agoPass down alignment when adding input section to orphan section.
Ian Lance Taylor [Tue, 12 Feb 2008 00:17:35 +0000 (00:17 +0000)]
Pass down alignment when adding input section to orphan section.

16 years agoForce different sections to different pages for better results on
Ian Lance Taylor [Tue, 12 Feb 2008 00:15:40 +0000 (00:15 +0000)]
Force different sections to different pages for better results on
x86_64 Linux.

16 years agoFix precedence error, avoid signed/unsignd warning.
Ian Lance Taylor [Tue, 12 Feb 2008 00:13:39 +0000 (00:13 +0000)]
Fix precedence error, avoid signed/unsignd warning.

16 years agogas/testsuite/
H.J. Lu [Tue, 12 Feb 2008 00:04:45 +0000 (00:04 +0000)]
gas/testsuite/

2002-02-11  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.exp: Run xsave, xsave-intel, x86-64-xsave
and x86-64-xsave-intel.

* gas/i386/x86-64-xsave-intel.d: New file.
* gas/i386/x86-64-xsave.d: Likewise.
* gas/i386/x86-64-xsave.s: Likewise.
* gas/i386/xsave-intel.d: Likewise.
* gas/i386/xsave.d: Likewise.
* gas/i386/xsave.s: Likewise.

opcodes/

2008-02-11  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (cpu_flags): Add CpuXsave.

* i386-opc.h (CpuXsave): New.
(Cpu64): Updated.
(i386_cpu_flags): Add cpuxsave.

* i386-dis.c (MOD_0FAE_REG_4): New.
(RM_0F01_REG_2): Likewise.
(MOD_0FAE_REG_5): Updated.
(RM_0F01_REG_3): Likewise.
(reg_table): Use MOD_0FAE_REG_4.
(mod_table): Use RM_0F01_REG_2.  Add MOD_0FAE_REG_4.  Updated
for xrstor.
(rm_table): Add RM_0F01_REG_2.

* i386-opc.tbl: Add xsave, xrstor, xgetbv and xsetbv.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.

16 years agodaily update
Alan Modra [Mon, 11 Feb 2008 23:00:06 +0000 (23:00 +0000)]
daily update

16 years agoFix formatting of most recent entry.
Ben Elliston [Mon, 11 Feb 2008 22:56:13 +0000 (22:56 +0000)]
Fix formatting of most recent entry.

16 years ago * elf32-bfin.c (bfinfdpic_relocate_section): Take more care not to
Bernd Schmidt [Mon, 11 Feb 2008 22:25:03 +0000 (22:25 +0000)]
* elf32-bfin.c (bfinfdpic_relocate_section): Take more care not to
emit invalid relocs or rofixup entries for deleted .eh_frame entries.

16 years ago * xtensa-config.h (XCHAL_HAVE_THREADPTR): Redefine to zero.
Bob Wilson [Mon, 11 Feb 2008 17:53:04 +0000 (17:53 +0000)]
* xtensa-config.h (XCHAL_HAVE_THREADPTR): Redefine to zero.
(XCHAL_NUM_AREGS, XCHAL_MAX_INSTRUCTION_SIZE): New.

16 years ago * elf32-bfin.c (bfin_relocate_section): Set up dynobj before using it
Bernd Schmidt [Mon, 11 Feb 2008 16:04:51 +0000 (16:04 +0000)]
* elf32-bfin.c (bfin_relocate_section): Set up dynobj before using it
if necessary.
(elf32_bfin_merge_private_bfd_data): Simplify, and ensure object type
mismatches are detected.

16 years agoopcodes/
Jan Beulich [Mon, 11 Feb 2008 15:11:06 +0000 (15:11 +0000)]
opcodes/
2008-02-11  Jan Beulich  <jbeulich@novell.com>
* i386-opc.tbl: Remove Disp32S from CpuNo64 opcodes. Remove
Disp16 from Cpu64 non-jump opcodes (including loop and j?cxz).
* i386-tbl.h: Re-generate.

16 years ago * cache.c (cache_bread): Set bfd_error_file_truncated if EOF
Daniel Jacobowitz [Mon, 11 Feb 2008 13:52:02 +0000 (13:52 +0000)]
* cache.c (cache_bread): Set bfd_error_file_truncated if EOF
was reached.
* srec.c (srec_scan): Calculate the checksum.  Complain on mismatch.

16 years agodaily update
Alan Modra [Sun, 10 Feb 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Sat, 9 Feb 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agoTrack sections for expressions.
Ian Lance Taylor [Sat, 9 Feb 2008 01:22:17 +0000 (01:22 +0000)]
Track sections for expressions.

16 years agodaily update
Alan Modra [Fri, 8 Feb 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agoFrom Cary Coutant: fix handling of undefined symbols in shared
Ian Lance Taylor [Fri, 8 Feb 2008 22:49:22 +0000 (22:49 +0000)]
From Cary Coutant: fix handling of undefined symbols in shared
libraries.

16 years ago2008-02-08 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 8 Feb 2008 20:58:18 +0000 (20:58 +0000)]
2008-02-08  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/5713
* strings.c (main): Set string_min to 4 if it is <= 0.

16 years agoDon't read linker scripts in binary mode.
Ian Lance Taylor [Fri, 8 Feb 2008 07:31:09 +0000 (07:31 +0000)]
Don't read linker scripts in binary mode.

16 years agoAdd support for --format binary for input files.
Ian Lance Taylor [Fri, 8 Feb 2008 07:06:58 +0000 (07:06 +0000)]
Add support for --format binary for input files.

16 years agodaily update
Alan Modra [Thu, 7 Feb 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago * ld-spu/ovl.d: Update.
Alan Modra [Thu, 7 Feb 2008 11:03:06 +0000 (11:03 +0000)]
* ld-spu/ovl.d: Update.
* ld-spu/ovl2.d: Update.

16 years ago * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
Alan Modra [Thu, 7 Feb 2008 08:41:10 +0000 (08:41 +0000)]
* ldlang.c (new_afile): Don't pass unadorned NULL to concat.
* ldfile.c (ldfile_add_library_path): Likewise.
* emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
* emultempl/lnk960.em (lnk960_before_parse): Likewise.
* emultempl/spuelf.em (embedded_spu_file): Likewise.

16 years ago * read.c (s_weakref): Don't pass unadorned NULL to concat.
Alan Modra [Thu, 7 Feb 2008 08:40:29 +0000 (08:40 +0000)]
* read.c (s_weakref): Don't pass unadorned NULL to concat.
* config/tc-i386.c (set_cpu_arch, md_parse_option): Likewise.

16 years ago * objdump.c (main): Don't pass unadorned NULL to concat.
Alan Modra [Thu, 7 Feb 2008 08:39:54 +0000 (08:39 +0000)]
* objdump.c (main): Don't pass unadorned NULL to concat.

16 years agoSupport --oformat binary.
Ian Lance Taylor [Thu, 7 Feb 2008 07:33:46 +0000 (07:33 +0000)]
Support --oformat binary.

16 years agoIgnore version scripts for relocatable links.
Ian Lance Taylor [Thu, 7 Feb 2008 05:45:07 +0000 (05:45 +0000)]
Ignore version scripts for relocatable links.

16 years agoEven when stripping all symbols, we need to write out the dynamic
Ian Lance Taylor [Thu, 7 Feb 2008 04:35:41 +0000 (04:35 +0000)]
Even when stripping all symbols, we need to write out the dynamic
symbol table.

16 years agoImplement --just-symbols, including -R FILE. Fix symbol values when
Ian Lance Taylor [Thu, 7 Feb 2008 01:51:25 +0000 (01:51 +0000)]
Implement --just-symbols, including -R FILE.  Fix symbol values when
doing a relocatable link.

16 years agobfd/
Alan Modra [Thu, 7 Feb 2008 01:26:56 +0000 (01:26 +0000)]
bfd/
* elf32-spu.c (spu_elf_size_stubs): Revert 2008-01-28 doubling
of _ovly_buf_table size.
(spu_elf_build_stubs): Use low bit of .size as "present" bit.
Adjust initialisations relating to _ovly_buf_table.
ld/
* emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
a "present" bit rather than low bit of .buf.  Correct indexing
into _ovly_buf_table.  Use relative loads and stores to access
overlay manager local vars.
* emultempl/spu_ovl.o: Regenerate.

16 years agodaily update
Alan Modra [Wed, 6 Feb 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agoSupport creating empty output when there are no input objects.
Ian Lance Taylor [Wed, 6 Feb 2008 20:32:10 +0000 (20:32 +0000)]
Support creating empty output when there are no input objects.

16 years agoFix group signature handling for relocatable link, add bootstrap
Ian Lance Taylor [Wed, 6 Feb 2008 19:32:32 +0000 (19:32 +0000)]
Fix group signature handling for relocatable link, add bootstrap
relocatable test.

16 years agoUpdated Malasian translation.
Nick Clifton [Wed, 6 Feb 2008 09:05:38 +0000 (09:05 +0000)]
Updated Malasian translation.

16 years agoInitial -r support.
Ian Lance Taylor [Wed, 6 Feb 2008 08:13:50 +0000 (08:13 +0000)]
Initial -r support.

16 years ago * gas/mips/mips.exp: Invoke the tests smartmips, mips32-dsp,
Adam Nemet [Wed, 6 Feb 2008 05:29:03 +0000 (05:29 +0000)]
* gas/mips/mips.exp: Invoke the tests smartmips, mips32-dsp,
mips32-dspr2, mips64-dsp and mips32-mt with run_dump_test instead
of run_dump_test_arches.
* gas/mips/smartmips.d: Pass -mips32.
* gas/mips/mips64-dsp.d: Pass -mips64r2.
* gas/mips/mips32-dsp.d: Pass -mips32r2.
* gas/mips/mips32-dspr2.d: Likewise.
* gas/mips/mips32-mt.d: Likewise.

16 years agodaily update
Alan Modra [Tue, 5 Feb 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agoFrom Ollie Wild: add missing backquote to install-exec-local.
Ian Lance Taylor [Tue, 5 Feb 2008 22:22:09 +0000 (22:22 +0000)]
From Ollie Wild: add missing backquote to install-exec-local.

16 years ago2008-02-05 Sterling Augustine <sterling@tensilica.com>
Bob Wilson [Tue, 5 Feb 2008 19:39:08 +0000 (19:39 +0000)]
2008-02-05  Sterling Augustine  <sterling@tensilica.com>
* config/tc-xtensa.c (relax_frag_immed): Change internal consistency
checks into assertions.  When relaxation produces an operation that
does not fit in the current FLIX instruction, make sure that the
operation is relaxed as needed to account for being placed following
the current instruction.

16 years agoPrint PHDRS clause for debugging.
Ian Lance Taylor [Mon, 4 Feb 2008 23:53:15 +0000 (23:53 +0000)]
Print PHDRS clause for debugging.

16 years agobinutils/testsuite/
Bob Wilson [Mon, 4 Feb 2008 23:41:54 +0000 (23:41 +0000)]
binutils/testsuite/
    * binutils-all/objdump.exp (cpus_expected): Add xtensa.
ld/testsuite/
    * ld-undefined/undefined.exp: XFAIL for xtensa*-*-linux*.

16 years ago * elf32-xtensa (elf_xtensa_relocate_section): After finding an invalid
Bob Wilson [Mon, 4 Feb 2008 23:13:24 +0000 (23:13 +0000)]
* elf32-xtensa (elf_xtensa_relocate_section): After finding an invalid
relocation, do not continue processing it.  Ignore R_XTENSA_ASM_EXPAND
relocations against dynamic symbols.
(elf_xtensa_finish_dynamic_sections): Do not fail if there is no
.xt.lit section.

16 years agodaily update
Alan Modra [Mon, 4 Feb 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agoImplement PHDRS.
Ian Lance Taylor [Mon, 4 Feb 2008 22:54:31 +0000 (22:54 +0000)]
Implement PHDRS.

16 years agoTreat an empty directory argument as the current directory.
Ian Lance Taylor [Mon, 4 Feb 2008 22:44:35 +0000 (22:44 +0000)]
Treat an empty directory argument as the current directory.

16 years ago2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 4 Feb 2008 19:59:20 +0000 (19:59 +0000)]
2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>

PR 5715
* configure: Regenerated.

16 years agobfd/
H.J. Lu [Mon, 4 Feb 2008 19:43:51 +0000 (19:43 +0000)]
bfd/

2008-02-04  Kai Tietz  <kai.tietz@onevision.com>
    H.J. Lu  <hongjiu.lu@intel.com>

PR 5715
* warning.m4: Enable -Wno-format by default when using gcc on
mingw.
* configure: Regenerated.

binutils/

2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>

PR 5715
* configure: Regenerated.

gas/

2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>

PR 5715
* configure: Regenerated.

ld/

2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>

PR 5715
* configure: Regenerated.

opcodes/

2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>

PR 5715
* configure: Regenerated.

16 years ago * mips-dis.c: Update copyright.
Adam Nemet [Mon, 4 Feb 2008 19:26:11 +0000 (19:26 +0000)]
* mips-dis.c: Update copyright.
(mips_arch_choices): Add Octeon.
* mips-opc.c: Update copyright.
(IOCT): New macro.
(mips_builtin_opcodes): Add Octeon instruction synciobdma.

16 years ago * mips.h: Update copyright.
Adam Nemet [Mon, 4 Feb 2008 19:25:05 +0000 (19:25 +0000)]
* mips.h: Update copyright.
(INSN_CHIP_MASK): New macro.
(INSN_OCTEON): New macro.
(CPU_OCTEON): New macro.
(OPCODE_IS_MEMBER): Handle Octeon instructions.

16 years ago * mips.h: Update copyright.
Adam Nemet [Mon, 4 Feb 2008 19:21:25 +0000 (19:21 +0000)]
* mips.h: Update copyright.
(E_MIPS_MACH_OCTEON): New macro.