OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
16 years ago* config/tc-m32c.h (H_TICK_HEX): Define.
DJ Delorie [Fri, 18 Jul 2008 22:25:07 +0000 (22:25 +0000)]
* config/tc-m32c.h (H_TICK_HEX): Define.
* config/tc-m32c.c (OPTION_H_TICK_HEX): Define.
(md_longopts): Add support for it.
(md_parse_option): Likewise.
* doc/as.texinfo (Overview): Add new m32c options.
* doc/c-m32c.texi (M32C-Modifiers): Likewise

* as.h: (enable_h_tick_hex): New.
* app.c (enable_h_tick_hex): New.
(LEX_IS_H): New.
(do_scrub_begin): Mark 'H' and 'h' as special if enable_h_tick_hex.
(do_scrub_chars): If enable_h_tick_hex and 'h', check for H'00
style hex constants and convert the input stream to 0x00 style.
(do_scrub_chars): If a 'X style character constant is found after
a symbol character (like you're or X'00), warn the user.

16 years agobfd:
Joseph Myers [Fri, 18 Jul 2008 20:49:12 +0000 (20:49 +0000)]
bfd:
* bfd-in.h (bfd_elf32_arm_set_target_relocs): Add new parameter.
* bfd-in2.h: Regenerate.
* elf32-arm.c (struct elf_arm_obj_tdata): Add field
no_wchar_size_warning.
(bfd_elf32_arm_set_target_relocs): Add new parameter
no_wchar_warn.
(elf32_arm_merge_eabi_attributes): Give a warning, not an error,
for conflicting wchar_t attributes.  Do not warn if
--no-wchar-size-warning.  Make diagnostic text more specific.

ld:
* ld.texinfo (--no-wchar-size-warning): Document new ARM option.
* emultempl/armelf.em (no_wchar_size_warning): New.
(arm_elf_create_output_section_statements): Pass
no_wchar_size_warning to arm_elf_create_output_section_statements.
(OPTION_NO_WCHAR_SIZE_WARNING): New.
(PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
(PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
(PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.

ld/testsuite:
* ld-arm/attr-merge-wchar-0.s,ld-arm/attr-merge-wchar-2.s,
ld-arm/attr-merge-wchar-4.s, ld-arm/attr-merge-wchar-00-nowarn.d,
ld-arm/attr-merge-wchar-00.d, ld-arm/attr-merge-wchar-02-nowarn.d,
ld-arm/attr-merge-wchar-02.d, ld-arm/attr-merge-wchar-04-nowarn.d,
ld-arm/attr-merge-wchar-04.d, ld-arm/attr-merge-wchar-20-nowarn.d,
ld-arm/attr-merge-wchar-20.d, ld-arm/attr-merge-wchar-22-nowarn.d,
ld-arm/attr-merge-wchar-22.d, ld-arm/attr-merge-wchar-24-nowarn.d,
ld-arm/attr-merge-wchar-24.d, ld-arm/attr-merge-wchar-40-nowarn.d,
ld-arm/attr-merge-wchar-40.d, ld-arm/attr-merge-wchar-42-nowarn.d,
ld-arm/attr-merge-wchar-42.d, ld-arm/attr-merge-wchar-44-nowarn.d,
ld-arm/attr-merge-wchar-44.d: New.
* ld-arm/arm-elf.exp: Run new tests.

16 years ago2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 18 Jul 2008 12:45:33 +0000 (12:45 +0000)]
2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/6748
* elf32-arm.c (elf32_arm_link_hash_table_create): Initialize
new fields added for ARM long call support.

16 years ago * pe-arm-wince.c (pe_print_compressed_pdata): Define new function to
Nick Clifton [Fri, 18 Jul 2008 11:30:22 +0000 (11:30 +0000)]
    * pe-arm-wince.c (pe_print_compressed_pdata): Define new function to
        print compressed pdata structure as described on MSDN. This only
        applies to a limited set of architectures (ARM, SH4).
        (slurp_symtab, my_symbol_for_address): Define static helper
        functions for pe_print_compressed_pdata.
        * coffcode.h (bfd_coff_backend_data): Add _bfd_coff_print_pdata field.
        (bfd_coff_have_print_pdata, bfd_coff_print_pdata): Define.
        * bfd/peXXigen.c (_bfd_XX_print_private_bfd_data_common): Add check on
        bfd_coff_backend_data, call the function if non-null.
        * pei-mcore.c: Add target dependent initialisation for
        bfd_coff_backend_data.
        * coff-sh.c: Likewise.
        * coff64-rs6000.c: Likewise.
        * coff-rs6000.c: Likewise.
        * libcoff-in.h: Likewise.
        * cf-i386lynx.c: Likewise.
        * coff-alpha.c: Likewise.
        * coff-apollo.c: Likewise.
        * coff-arm.c: Likewise.
        * coff-aux.c: Likewise.
        * coff-h8300.c: Likewise.
        * coff-h8500.c: Likewise.
        * coff-i386.c: Likewise.
        * coff-i860.c: Likewise.
        * coff-i960.c: Likewise.
        * coff-ia64.c: Likewise.
        * coff-m68k.c: Likewise.
        * coff-m88k.c: Likewise.
        * coff-maxq.c: Likewise.
        * coff-mips.c: Likewise.
        * coff-or32.c: Likewise.
        * coff-sparc.c: Likewise.
        * coff-tic30.c: Likewise.
        * coff-tic4x.c: Likewise.
        * coff-tic54x.c: Likewise.
        * coff-tic80.c: Likewise.
        * coff-w65.c: Likewise.
        * coff-we32k.c: Likewise.
        * coff-x86_64.c: Likewise.
        * coff-z80.c: Likewise.
        * coff-z8k.c: Likewise.
        * pe-mcore.c: Likewise.
        * pe-mips.c: Likewise.
        * pe-ppc.c: Likewise.
        * peXXigen.c: Likewise.
        * pei-ppc.c: Likewise.
        * libcoff.h: Regenerate.

16 years ago * symtab.cc (Symbol_table::add_from_object): Rewrite the case
Ian Lance Taylor [Fri, 18 Jul 2008 07:03:27 +0000 (07:03 +0000)]
* symtab.cc (Symbol_table::add_from_object): Rewrite the case
where we see NAME/NULL and NAME/VERSION  as separate symbols.
* testsuite/ver_test_main.cc (main): Call t4.
(t4, t4_2a): Define.
* testsuite/ver_test_2.cc (t4_2): Define.
* testsuite/ver_test_2.script: Put t4_2a in VER2.
* testsuite/ver_test_4.cc (t4_2a): Define.
* testsuite/ver_test_4.script: Put t4_2a in VER2.
* testsuite/ver_test.h (t4, t4_2, t4_2a): Declare.

16 years ago * dynobj.cc (Versions::add_def): If we give an error about a
Ian Lance Taylor [Fri, 18 Jul 2008 06:58:04 +0000 (06:58 +0000)]
* dynobj.cc (Versions::add_def): If we give an error about a
missing version, go ahead and create the version anyhow.

16 years agodaily update
Alan Modra [Fri, 18 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Thu, 17 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * elf32-bfin.c (bfin_check_relocs, bfin_relocate_section,
Bernd Schmidt [Wed, 16 Jul 2008 15:27:05 +0000 (15:27 +0000)]
* elf32-bfin.c (bfin_check_relocs, bfin_relocate_section,
bfin_final_link_relocate, bfin_gc_mark_hook, bfin_gc_sweep_hook,
ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE,
struct _bfinfdpic_dynamic_got_info): Moved around to keep FD-PIC code
separate from non-FD-PIC.

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

16 years ago2008-07-15 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 15 Jul 2008 18:48:34 +0000 (18:48 +0000)]
2008-07-15  H.J. Lu  <hongjiu.lu@intel.com>

* objdump.c (load_debug_section): Initialize section_is_compressed
for gcc 3.4/ia64.
* readelf.c (load_debug_section): Likewise.

16 years ago* elf-m10300.c (mn10300_elf_final_link_relocate): Correct overflow
DJ Delorie [Tue, 15 Jul 2008 18:48:07 +0000 (18:48 +0000)]
* elf-m10300.c (mn10300_elf_final_link_relocate): Correct overflow
checks for PCREL8, PCREL16, GOTPC16, GOTOFF16, PLT16, and GOT16
relocs.
(mn10300_elf_relax_section): Correct jump offset check when target
is in a different section.

16 years agoAdd missing ChangeLog entries for
H.J. Lu [Tue, 15 Jul 2008 18:44:18 +0000 (18:44 +0000)]
Add missing ChangeLog entries for

http://sourceware.org/ml/binutils-cvs/2008-05/msg00092.html

16 years ago bfd/
Jie Zhang [Tue, 15 Jul 2008 13:09:47 +0000 (13:09 +0000)]
bfd/
* elf32-bfin.c (elf32_bfin_special_sections[]): New.
(elf_backend_special_sections): Define.

ld/
* emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.

16 years agodaily update
Alan Modra [Tue, 15 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * gas/bfin/{bit2.s, cache2.s, control_code2.s, event2.s,
Jie Zhang [Mon, 14 Jul 2008 03:54:27 +0000 (03:54 +0000)]
* gas/bfin/{bit2.s, cache2.s, control_code2.s, event2.s,
logical2.s, move2.s, parallel.s, parallel2.s, parallel3.s,
parallel4.s, shift2.s, stack2.s, video2.s}: Remove DOS line
endings.

16 years agoMention "PR ld/6741" in ChangeLog.
H.J. Lu [Mon, 14 Jul 2008 01:22:23 +0000 (01:22 +0000)]
Mention "PR ld/6741" in ChangeLog.

16 years agoMention "PR binutils/6743" in ChangeLog.
H.J. Lu [Mon, 14 Jul 2008 01:20:48 +0000 (01:20 +0000)]
Mention "PR binutils/6743" in ChangeLog.

16 years ago2008-07-13 Craig Silverstein <csilvers@google.com>
Craig Silverstein [Mon, 14 Jul 2008 00:10:09 +0000 (00:10 +0000)]
2008-07-13  Craig Silverstein  <csilvers@google.com>

* dwarf2.c (struct dwarf2_debug): New variable info_ptr_memory.
(find_line): Use info_ptr_memory instead of sec_info_ptr.
(_bfd_dwarf2_cleanup_debug_info): Likewise.

16 years agodaily update
Alan Modra [Mon, 14 Jul 2008 00:00:04 +0000 (00:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Sun, 13 Jul 2008 00:00:04 +0000 (00:00 +0000)]
daily update

16 years ago2008-07-12 Craig Silverstein <csilvers@google.com>
Craig Silverstein [Sat, 12 Jul 2008 21:36:53 +0000 (21:36 +0000)]
2008-07-12  Craig Silverstein  <csilvers@google.com>

        * configure.in: Check for, and include, libz.a if it is
          present.
        * configure: Regenerate.
        * config.in: Regenerate.

16 years agoRevert my last change since it has not been approved.
Jie Zhang [Sat, 12 Jul 2008 08:54:13 +0000 (08:54 +0000)]
Revert my last change since it has not been approved.

16 years agodaily update
Alan Modra [Sat, 12 Jul 2008 00:00:04 +0000 (00:00 +0000)]
daily update

16 years ago bfd/
Jie Zhang [Fri, 11 Jul 2008 19:24:39 +0000 (19:24 +0000)]
bfd/
* elf.c (_bfd_elf_map_sections_to_segments): Don't put
executable sections into the same segment with other
read only sections if --sep-code.
* elf32-bfin.c (elf32_bfin_code_in_l1): New variable.
(elf32_bfin_data_in_l1): New variable.
(elf32_bfin_final_write_processing): New.
(elf32_bfin_special_sections[]): New.
(elf_backend_final_write_processing): Define.
(elf_backend_special_sections): Define.

binutils/
* readelf.c (get_machine_flags): Deal with Blackfin specific
flags.

include/
* bfdlink.h (struct bfd_link_info): Add sep_code member
variable.
* elf/bfin.h (EF_BFIN_CODE_IN_L1): Define.
(EF_BFIN_DATA_IN_L1): Define.

ld/
* Makefile.am (eelf32bfin.c): Depend on bfin.em.
(eelf32bfinfd.c): Likewise.
* Makefile.in: Regenerate.
* gen-doc.texi: Set Blackfin.
* ld.texinfo: Document --sep-code and Blackfin specific
options.
* ldmain.c (main): Initialize link_info.sep_code.
* lexsup.c (enum option_values): Add OPTION_SEP_CODE.
(ld_options[]): Add --sep-code.
(parse_args): Deal with --sep-code.
* emulparams/bfin.sh (EXTRA_EM_FILE): Define.
* emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
* emultempl/bfin.em: New file.

16 years ago2008-07-11 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 11 Jul 2008 17:19:00 +0000 (17:19 +0000)]
2008-07-11  H.J. Lu  <hongjiu.lu@intel.com>

* ld-m68k/got-12.s: Removed.
* ld-m68k/got-13.s: Likewise.
* ld-m68k/got-14.s: Likewise.
* ld-m68k/got-15.s: Likewise.
* ld-m68k/got-34.s: Likewise.
* ld-m68k/got-35.s: Likewise.
* ld-m68k/xgot-15.s: Likewise.

* ld-m68k/got-multigot-12-13-14-34-35-ok.d: Remove #source
and expected relocations.
* ld-m68k/got-multigot-14-ok.d: Likewise.
* ld-m68k/got-negative-12-13-14-34-ok.d: Likewise.
* ld-m68k/got-negative-14-ok.d: Likewise.
* ld-m68k/got-single-12-ok.d: Likewise.
* ld-m68k/got-xgot-12-13-14-15-34-35-ok.d: Likewise.
* ld-m68k/got-xgot-15-ok.d: Likewise.

* ld-m68k/got-multigot-15-er.d: Remove #source.
* ld-m68k/got-negative-12-13-14-35-er.d: Likewise.
* ld-m68k/got-negative-15-er.d: Likewise.
* ld-m68k/got-single-13-er.d: Likewise.

* ld-m68k/m68k.exp: Move GOT tests to ...
* ld-m68k/m68k-got.exp: This.  New.

16 years ago * mh-mingw (LDFLAGS): Append to rather than replacing previous
Joseph Myers [Fri, 11 Jul 2008 11:15:59 +0000 (11:15 +0000)]
* mh-mingw (LDFLAGS): Append to rather than replacing previous
value.

16 years ago * binutils-all/objdump.W: Generalize to adjust for targets with
Hans-Peter Nilsson [Fri, 11 Jul 2008 10:47:29 +0000 (10:47 +0000)]
* binutils-all/objdump.W: Generalize to adjust for targets with
non-byte-size instructions.

16 years ago(read_section): Take pointer to bfd_size_type instead
Andreas Schwab [Fri, 11 Jul 2008 09:18:19 +0000 (09:18 +0000)]
(read_section): Take pointer to bfd_size_type instead
of unsigned long as last parameter.
(struct dwarf2_debug): Define dwarf_abbrev_size, dwarf_line_size,
dwarf_str_size and dwarf_ranges_size as bfd_size_type instead of
unsigned long.

16 years agodaily update
Alan Modra [Fri, 11 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago Handle output sections with more than 0x7fffffff bytes.
Ian Lance Taylor [Thu, 10 Jul 2008 23:01:20 +0000 (23:01 +0000)]
Handle output sections with more than 0x7fffffff bytes.
* object.h (class Relobj): Change map_to_output_ to
output_sections_, and just keep a section pointer.  Change all
uses.  Move comdat group support to Sized_relobj.
(Relobj::is_section_specially_mapped): Remove.
(Relobj::output_section): Remove poff parameter.  Change all
callers.
(Relobj::output_section_offset): New function.
(Relobj::set_section_offset): Rewrite.
(Relobj::map_to_output): Remove.
(Relobj::output_sections): New function.
(Relobj::do_output_section_offset): New pure virtual function.
(Relobj::do_set_section_offset): Likewise.
(class Sized_relobj): Add section_offsets_ field.  Add comdat
group support from Relobj.  Update declarations.
(Sized_relobj::get_output_section_offset): New function.
(Sized_relobj::do_output_section_offset): New function.
(Sized_relobj::do_set_section_offset): New function.
* object.cc (Relobj::output_section_address): Remove.
(Sized_relobj::Sized_relobj): Initialize new fields.
(Sized_relobj::include_section_group): Cast find_kept_object to
Sized_relobj.
(Sized_relobj::include_linkonce_section): Likewise.
(Sized_relobj::do_layout): Use separate arrays for output section
and output offset.
(Sized_relobj::do_count_local_symbols): Change map_to_output to
output_sections.
(Sized_relobj::do_finalize_local_symbols): Change map_to_output to
output_sections and section_offsets.
(Sized_relobj::write_local_symbols): Likewise.
(map_to_kept_section): Compute output address directly.
* reloc.cc (Sized_relobj::do_read_relocs): Change map_to_output to
output_sections and section_offsets.
(Sized_relobj::write_sections): Likewise.
(Sized_relobj::relocate_sections): Likewise.
* symtab.cc (sized_finalize_symbol): Use output_section_offset.
* output.h (class Output_reloc): Update declarations.  Change
u2_.relobj to Sized_relobj*.
(class Output_data_reloc): Change add functions to use
Sized_relobj*.
* output.cc (Output_reloc::Output_reloc): Change relobj to
Sized_relobj*.
(Output_reloc::local_section_offset): Change return type to
Elf_Addr.  Use get_output_section_offset.
(Output_reloc::get_address): Likewise.
(Output_section::is_input_address_mapped): Don't call
is_section_specially_mapped.
(Output_section::output_offset): Likewise.
(Output_section::output_address): Likewise.
(Output_section::starting_output_address): Likewise.
* copy-relocs.cc (Copy_relocs::copy_reloc): Change object
parameter to Sized_relobj*.
(Copy_relocs::need_copy_reloc): Likewise.
(Copy_relocs::save): Likewise.
* copy-relocs.h (class Copy_relocs): Update declarations.
(class Copy_relocs::Copy_reloc_entry): Change constructor to use
Sized_relobj*.  Change relobj_ field to Sized_relobj*.
* target-reloc.h (relocate_for_relocatable): Change
offset_in_output_section type to Elf_Addr.  Change code that uses
it as well.
* layout.cc (Layout::layout): Always set *off.
* mapfile.cc (Mapfile::print_input_section): Use
output_section_offset.
* i386.cc (Target_i386::copy_reloc): Change object parameter to
Sized_relobj*.
* powerpc.cc (Target_powerpc::copy_reloc): Likewise.
* sparc.cc (Target_sparc::copy_reloc): Likewise.
* x86_64.cc (Target_x86_64::copy_reloc): Likewise.

16 years agobfd/
Richard Sandiford [Thu, 10 Jul 2008 19:06:54 +0000 (19:06 +0000)]
bfd/
* elfxx-mips.c (mips_elf_calculate_relocation): Calculate GP and GP0
for all relocation types.  Allow any type of relocation to refer to
__gnu_local_gp.

ld/testsuite/
* ld-mips-elf/no-shared-1-o32.s,
ld-mips-elf/no-shared-1-o32.d,
ld-mips-elf/no-shared-1-n32.d,
ld-mips-elf/no-shared-1-n64.s,
ld-mips-elf/no-shared-1-n64.d,
ld-mips-elf/no-shared-1.ld: New tests.
* ld-mips-elf/mips-elf.exp: Run them.

16 years agoinclude/elf/
Richard Sandiford [Thu, 10 Jul 2008 19:05:29 +0000 (19:05 +0000)]
include/elf/
* mips.h (ELF_ST_IS_MIPS16, ELF_ST_SET_MIPS16): New macros.

bfd/
* elfxx-mips.c (mips_elf_check_mips16_stubs): Use ELF_ST_IS_MIPS16.
(mips_elf_calculate_relocation): Likewise.
(_bfd_mips_elf_add_symbol_hook): Likewise.
(_bfd_mips_elf_finish_dynamic_symbol): Likewise.
(_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.

opcodes/
* mips-dis.c (_print_insn_mips): Use ELF_ST_IS_MIPS16.

gas/
* config/tc-mips.c (mips16_mark_labels): Use ELF_ST_SET_MIPS16.
(mips_fix_adjustable): Likewise.
(mips_frob_file_after_relocs): Likewise.

gas/testsuite/
* gas/mips/mips16-vis-1.d, gas/mips/mips16-vis-1.s: New tests.
* gas/mips/mips.exp: Run them.

16 years ago(_bfd_mips_elf_section_from_shdr): Add missing
Andreas Schwab [Thu, 10 Jul 2008 16:24:03 +0000 (16:24 +0000)]
(_bfd_mips_elf_section_from_shdr): Add missing
paren.

16 years agobfd/
Craig Silverstein [Thu, 10 Jul 2008 01:32:23 +0000 (01:32 +0000)]
bfd/
* Makefile.am (BFD32_LIBS): Add compress.lo.
(BFD32_LIBS_CFILES): Add compress.c.
(BFD_H_FILES): Likewise.
* Makefile.in: Regenerate.
* bfd-in2.h: Regenerate.
* config.in: Add HAVE_ZLIB_H
* configure.in: Add test for libz and zlib.h
* configure: Regenerate.
* dwarf2.c (read_section): New function.
(read_indirect_string): Call new function read_section.
(read_abbrevs): Likewise.
(decode_line_info): Likewise.
(read_debug_ranges): Likewise.
(find_line): Call new function read_section when just one
.zdebug_info section is found, otherwise read and compress
multiple sections.
(_bfd_dwarf2_cleanup_debug_info): Free sec_info_ptr.
* elf.c (_bfd_elf_make_section_from_shdr): Add zdebug prefix.
(special_sections_z): New struct.
(special_sections): Refer to special_sections_z.
* elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Recognize
sections named .zdebug_*.
(_bfd_mips_elf_fake_sections): Likewise.
* compress.c: New file.
(bfd_uncompress_section_contents): New function.
bfd/doc/
* Makefile.am (BFD_H_DEP): Add ../compress.c.
* Makefile.in: Regenerate.
binutils/
* config.in: Add HAVE_ZLIB_H
* configure.in: Add test for libz and zlib.h
* configure: Regenerate.
* dwarf.c (debug_displays): Add .zdebug_* strings.
* dwarf.h (struct dwarf_section): Add fields uncompressed_namd
and compressed_name.
* objdump.c (load_debug_section): Call
bfd_uncompress_section_contents when loading a compressed
section.
(dump_dwarf_section): Recognize compressed section name.
(mach_o_dwarf_sections): Rename as
mach_o_uncompressed_dwarf_sections.
(mach_o_compressed_dwarf_sections): New variable.
(generic_dwarf_section): Rename as
generic_uncompressed_dwarf_sections.
(generic_compressed_dwarf_sections): New variable.
(check_mach_o_dwarf): Save and restore
mach_o_compressed_dwarf_sections.
* readelf.c: Add #include for config.h and zlib.h
(process_section_headers): Recognize compressed section name.
(uncompress_section_contents): New function.
(load_debug_section): Call uncompress_section_contents when
loading a compressed section.
(display_debug_section): Recognize compressed section name.
binutils/testsuite:
* binutils-all/objdump.exp: Add test for objdump -s on a file
with a compressed debug section.  Add test for objdump -W on a
file that contains a compressed debug section.
* binutils-all/readelf.exp: Call readelf_compressed_wa_test.
(readelf_compressed_wa_test): New function.
* binutils-all/dw2-compressed.S: New file.
* binutils-all/objdump.W: New file.
* binutils-all/objdump.s: New file.
* binutils-all/readelf.wa: New file.

16 years agodaily update
Alan Modra [Thu, 10 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago2008-07-09 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Wed, 9 Jul 2008 10:28:12 +0000 (10:28 +0000)]
2008-07-09  Kai Tietz  <kai.tietz@onevision.com>

* gas/i386/i386.exp (x86-64-pcrel): Disable for w64.
(x86-64-sse5): Likewise.
(x86-64-opcode-inval): Likewise.
(x86-64-opcode-inval-intel): Likewise.
(x86-64-w64-pcrel): New.
* gas/i386/x86-64-w64-pcrel.d: New.

16 years ago *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
Danny Smith [Wed, 9 Jul 2008 03:18:15 +0000 (03:18 +0000)]
       *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
           starting with ".".
           Exclude "_IMPORT_DESCRIPTOR_".
           (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
           (autofilter_symbollist_generic): Don't check for ".text".
           Exclude "_NULL_IMPORT_DESCRIPTOR".
           (autofilter_symbollist_i386): Likewise.

16 years agodaily update
Alan Modra [Wed, 9 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago2008-07-08 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Tue, 8 Jul 2008 08:15:09 +0000 (08:15 +0000)]
2008-07-08  Kai Tietz  <kai.tietz@onevision.com>

* binutils-all/objcopy.exp (copy_setup): Check if host-triplet
is target-triplet for execution tests.
(copy_executable): Likewise.
(strip_executable): Likewise.
(strip_executable_with_saving_a_symbol): Likewise.

16 years ago * config/tc-m68k.c (m68k_set_cpu, m68k_set_arch): Don't complain
Nathan Sidwell [Tue, 8 Jul 2008 06:33:41 +0000 (06:33 +0000)]
* config/tc-m68k.c (m68k_set_cpu, m68k_set_arch): Don't complain
about overriding an earlier setting.

16 years agodaily update
Alan Modra [Tue, 8 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * gas/mips/mips32.s: Move out coprocessor2 insns from here ...
Adam Nemet [Mon, 7 Jul 2008 19:28:02 +0000 (19:28 +0000)]
* gas/mips/mips32.s: Move out coprocessor2 insns from here ...
* gas/mips/mips32-cp2.s: ... to here.
* gas/mips/mips32.d: Update.
* gas/mips/mips32-cp2.d: New file.
* gas/mips/mips32r2.s: Move out coprocessor2 insns from here ...
* gas/mips/mips32r2-cp2.s: ... to here.
* gas/mips/mips32r2.d: Update.
* gas/mips/mips32r2-cp2.d: New file.
* gas/mips/mips64.s: Move out coprocessor2 insns from here ...
* gas/mips/mips64-cp2.s: ... to here.
* gas/mips/mips64.d: Update.
* gas/mips/mips64-cp2.d: New file.
* gas/mips/mips.exp: Run mips32-cp2, mips32r2-cp2 and mips64-cp
except for Octeon.
* gas/mips/octeon.s: Add supported coprocessor insns.  Move pop
down to keep alphabetical order.
* gas/mips/octeon.d: Update.
* gas/mips/octeon-ill.s: Add unsupported coprocessor insns.
* gas/mips/octeon-ill.l: Update.

16 years ago * config/tc-mips.c (NO_ISA_COP): New macro.
Adam Nemet [Mon, 7 Jul 2008 19:16:23 +0000 (19:16 +0000)]
* config/tc-mips.c (NO_ISA_COP): New macro.
(COP_INSN): New macro.
(is_opcode_valid): Use them.
(macro) <ld_st>: Use them.  Don't accept coprocessor load store
insns based on the ISA if CPU is NO_ISA_COP.
<copz>: Likewise for coprocessor operations.

16 years agogas/
Carlos O'Donell [Mon, 7 Jul 2008 19:12:58 +0000 (19:12 +0000)]
gas/

2008-07-07  Paul Brook  <paul@codesourcery.com>

* config/tc-arm.c (arm_fix_adjustable): Don't adjust MOVW/MOVT
relocations.

gas/testsuite/

2008-07-07  Paul Brook  <paul@codesourcery.com>

* gas/arm/movw-local.d: New test.
* gas/arm/movw-local.s: New test.

16 years ago * mips-opc.c (CP): New macro.
Adam Nemet [Mon, 7 Jul 2008 19:11:15 +0000 (19:11 +0000)]
* mips-opc.c (CP): New macro.
(mips_builtin_opcodes): Mark c0, c2 and c3 as CP.  Add Octeon to the
membership of di, dmfc0, dmtc0, ei, mfc0 and mtc0.  Add dmfc2 and
dmtc2 Octeon instructions.

16 years ago * ld-arm/arm-elf.exp: Use objdump -d for arm-be8 test.
Stan Shebs [Mon, 7 Jul 2008 19:00:21 +0000 (19:00 +0000)]
    * ld-arm/arm-elf.exp: Use objdump -d for arm-be8 test.
    * ld-arm/arm-be8.d: Change to test disassembly.

16 years ago2008-07-07 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Mon, 7 Jul 2008 18:40:13 +0000 (18:40 +0000)]
2008-07-07  Stan Shebs  <stan@codesourcery.com>

    * dis-asm.h (struct disassemble_info): Add endian_code field.

16 years ago2008-07-07 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Mon, 7 Jul 2008 18:35:24 +0000 (18:35 +0000)]
2008-07-07  Stan Shebs  <stan@codesourcery.com>

    * dis-init.c (init_disassemble_info): Init endian_code field.
    * arm-dis.c (print_insn): Disassemble code according to
    setting of endian_code.
    (print_insn_big_arm): Detect when BE8 extension flag has been set.

16 years ago * safe-ctype.h: Add #include of ctype.h before redefining
Joel Brobecker [Mon, 7 Jul 2008 17:09:31 +0000 (17:09 +0000)]
    * safe-ctype.h: Add #include of ctype.h before redefining
        the ctype.h macros.

16 years ago * configure.tgt: Add bfin-*-rtems*.
Nick Clifton [Mon, 7 Jul 2008 16:43:06 +0000 (16:43 +0000)]
    * configure.tgt: Add bfin-*-rtems*.

16 years ago * elf32-arm.c (arm_type_of_stub): Don't crash on local symbols in
Nick Clifton [Mon, 7 Jul 2008 16:02:32 +0000 (16:02 +0000)]
    * elf32-arm.c (arm_type_of_stub): Don't crash on local symbols in
        the presence of a PLT.

16 years ago * bfd.c (bfd_demangle): Always trim off bfd_get_symbol_leading_char.
Alan Modra [Mon, 7 Jul 2008 11:48:27 +0000 (11:48 +0000)]
* bfd.c (bfd_demangle): Always trim off bfd_get_symbol_leading_char.

16 years ago * objdump.c (find_symbol_for_address): Prefer symbols in current
Alan Modra [Mon, 7 Jul 2008 04:37:53 +0000 (04:37 +0000)]
* objdump.c (find_symbol_for_address): Prefer symbols in current
section.

16 years ago * emultempl/armelf.em (elf32_arm_add_stub_section): Use
Alan Modra [Mon, 7 Jul 2008 00:46:51 +0000 (00:46 +0000)]
* emultempl/armelf.em (elf32_arm_add_stub_section): Use
bfd_make_section_with_flags.
* emultempl/avrelf.em (avr_elf_create_output_section_statements):
Likewise.
* emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
* emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
* emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
* emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
* emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
Likewise.

16 years ago * ieee.c (write_ieee_debugging_info): Use bfd_make_section_with_flags.
Alan Modra [Mon, 7 Jul 2008 00:44:41 +0000 (00:44 +0000)]
* ieee.c (write_ieee_debugging_info): Use bfd_make_section_with_flags.
* nlmconv.c (main, powerpc_build_stubs): Likewise.
* rescoff.c (write_coff_file): Likewise.
* resres.c (write_res_file): Likewise.
* windmc.c (windmc_write_bin): Likewise.

16 years agodaily update
Alan Modra [Mon, 7 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * ld.texinfo (File Commands): Document that INCLUDE can be used in
Nathan Sidwell [Sun, 6 Jul 2008 13:38:37 +0000 (13:38 +0000)]
* ld.texinfo (File Commands): Document that INCLUDE can be used in
several different places.
* ldgram.y (statement, memory_spec, section): Allow INCLUDE.
(memory, memory_spec_list): Simplify BNF
(memory_spec_list_opt): New rule.
* ldlex.l (INCLUDE): Recognize in EXPRESSION.
testsuite/
* ld-scripts/include-1.d: New.
* ld-scripts/include-1.t: New.
* ld-scripts/include-data.t: New.
* ld-scripts/include-mem.t: New.
* ld-scripts/include-ram.t: New.
* ld-scripts/include-sections.t: New.
* ld-scripts/include-subdata.t: New.
* ld-scripts/include.exp: New.
* ld-scripts/include.s: New.

16 years agodaily update
Alan Modra [Sun, 6 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Sat, 5 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago * safe-ctype.h: Remove #error when detecting that ctype.h has been
Joel Brobecker [Fri, 4 Jul 2008 17:11:29 +0000 (17:11 +0000)]
    * safe-ctype.h: Remove #error when detecting that ctype.h has been
        included. Redefine the various macros provided by ctype.h as
        undefined variables.

16 years ago * config/tc-spu.c (md_apply_fix): Handle fully resolved
Alan Modra [Fri, 4 Jul 2008 13:04:04 +0000 (13:04 +0000)]
* config/tc-spu.c (md_apply_fix): Handle fully resolved
BFD_RELOC_32_PCREL, BFD_RELOC_SPU_HI16 and BFD_RELOC_SPU_LO16.

16 years ago * layout.cc (Layout::include_section): Do not discard unrecognized
Ian Lance Taylor [Fri, 4 Jul 2008 03:34:01 +0000 (03:34 +0000)]
* layout.cc (Layout::include_section): Do not discard unrecognized
SHT_STRTAB sections.

16 years agodaily update
Alan Modra [Fri, 4 Jul 2008 00:00:04 +0000 (00:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Thu, 3 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago * elf32-ppc.c (is_pic_glink_stub): New function.
Alan Modra [Wed, 2 Jul 2008 13:31:53 +0000 (13:31 +0000)]
* elf32-ppc.c (is_pic_glink_stub): New function.
(ppc_elf_get_synthetic_symtab): Don't generate symbols when
multiple shared/pie stubs per plt entry.

16 years agodaily update
Alan Modra [Wed, 2 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Tue, 1 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago2008-06-30 Craig Silverstein <csilvers@cs.stanford.edu>
Craig Silverstein [Mon, 30 Jun 2008 20:59:54 +0000 (20:59 +0000)]
2008-06-30  Craig Silverstein  <csilvers@cs.stanford.edu>

        * script.cc (Lex::can_continue_name): Make '?' allowable in
        version-script names.
        * testsuite/version_script.map: Change glob pattern to use '?'

16 years agobfd/
Richard Sandiford [Mon, 30 Jun 2008 20:53:06 +0000 (20:53 +0000)]
bfd/
* elf.c (_bfd_elf_get_synthetic_symtab): Increment p by
bed->s->int_rels_per_ext_rel.

16 years agobfd/
Richard Sandiford [Mon, 30 Jun 2008 20:51:58 +0000 (20:51 +0000)]
bfd/
* syms.c (BSF_SYNTHETIC): New flag.
* elf.c (_bfd_elf_get_synthetic_symtab): Set it.
* elf32-ppc.c (ppc_elf_get_synthetic_symtab): Likewise.
* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise.
* bfd-in.h (bfd_asymbol_flavour): Return bfd_target_unknown_flavour
for synthetic symbols.
* bfd-in2.h: Regenerate.

opcodes/
* mips-dis.c (_print_insn_mips): Use bfd_asymbol_flavour to check
for ELF symbols.

16 years ago PR 6585
Ian Lance Taylor [Mon, 30 Jun 2008 18:16:31 +0000 (18:16 +0000)]
PR 6585
* symtab.cc (Symbol_table::add_undefined_symbols_from_command_line):
Correct typo.

16 years ago PR 6660
Ian Lance Taylor [Mon, 30 Jun 2008 16:36:40 +0000 (16:36 +0000)]
PR 6660
PR 6682
* powerpc.cc (Powerpc_relocate_functions::addr16_ha) [both
versions]: Don't try to read the value in the contents, since we
don't use it.  Use the template endianness when writing.

16 years ago * elf32-arm.c (record_arm_to_thumb_glue, record_thumb_to_arm_glue):
Daniel Jacobowitz [Mon, 30 Jun 2008 15:32:51 +0000 (15:32 +0000)]
* elf32-arm.c (record_arm_to_thumb_glue, record_thumb_to_arm_glue):
Expand comments.
(arm_map_one_stub): Use | 1 when setting the low bit.

16 years agodaily update
Alan Modra [Mon, 30 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * elf32-m68k.c (elf_m68k_relocate_section): Don't ignore existing
Andreas Schwab [Sun, 29 Jun 2008 12:56:41 +0000 (12:56 +0000)]
* elf32-m68k.c (elf_m68k_relocate_section): Don't ignore existing
addend on _GLOBAL_OFFSET_TABLE_.

ld/testsuite/:
* ld-m68k/got-1.s: New file.
* ld-m68k/got-1.d: New dump test.
* ld-m68k/m68k.exp: Run it.

16 years agodaily update
Alan Modra [Sun, 29 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Sat, 28 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago* gas/mips/odd-float.d: Replace ... with #pass.
Chao-ying Fu [Fri, 27 Jun 2008 18:30:11 +0000 (18:30 +0000)]
* gas/mips/odd-float.d: Replace ... with #pass.
* gas/mips/ldstla-32-shared.d: Add -march=mips1 for as.
* gas/mips/ldstla-32.d: Likewise.
* gas/mips/mips16-hilo-match.d: Add -mabi=32 -march=mips1 for as.

16 years agodaily update
Alan Modra [Fri, 27 Jun 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Thu, 26 Jun 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago2008-06-25 Cary Coutant <ccoutant@google.com>
Cary Coutant [Wed, 25 Jun 2008 17:10:08 +0000 (17:10 +0000)]
2008-06-25  Cary Coutant  <ccoutant@google.com>

* fileread.cc (File_read::make_view): Assert on zero-length view.
* object.cc (Sized_relobj::do_read_symbols): Don't try to read
symbol table when there are no symbols to read.

16 years agogas/
Peter Bergner [Wed, 25 Jun 2008 16:49:03 +0000 (16:49 +0000)]
gas/
* config/tc-ppc.c (parse_cpu): Handle -m464.
(md_show_usage): Likewise.

opcodes/
* ppc-dis.c (powerpc_init_dialect): Handle -M464.
(print_ppc_disassembler_options): Likewise.
* ppc-opc.c (PPC464): Define.
(powerpc_opcodes): Add mfdcrux and mtdcrux.

16 years ago/gas:
Eric B. Weddington [Wed, 25 Jun 2008 16:19:11 +0000 (16:19 +0000)]
/gas:
2008-06-24  Eric B. Weddington  <eric.weddington@atmel.com>

Add support for ATtiny13A.
* config/tc-avr.c (mcu_types): Add attiny13a.
* doc/c-avr.texi: Likewise.

16 years ago * elf32-arm.c (STUB_ENTRY_NAME): Define.
Daniel Jacobowitz [Wed, 25 Jun 2008 14:28:48 +0000 (14:28 +0000)]
* elf32-arm.c (STUB_ENTRY_NAME): Define.
(arm_thumb_thumb_long_branch_stub): Use bx instead of b.n.
(arm_pic_long_branch_stub): Mention R_ARM_REL32 instead of
R_ARM_ABS32.
(struct elf32_arm_stub_hash_entry): Add output_name.
(arm_build_one_stub): Move offsets into the offset argument
of _bfd_final_link_relocate.  Correct offset for
arm_thumb_arm_v4t_stub_long_branch.
(elf32_arm_size_stubs): Set stub_entry->output_name.
(elf32_arm_ouput_plt_map_sym): Rename to elf32_arm_output_map_sym.
Update all callers.
(elf32_arm_output_stub_sym): New.
(arm_map_one_stub): Correct formatting.  Use elf32_arm_output_stub_sym.

* ld-arm/farcall-arm-arm-be8.d, ld-arm/farcall-arm-arm-pic-veneer.d,
ld-arm/farcall-arm-arm.d, ld-arm/farcall-arm-thumb-blx-pic-veneer.d,
ld-arm/farcall-arm-thumb-blx.d, ld-arm/farcall-arm-thumb-pic-veneer.d,
ld-arm/farcall-arm-thumb.d, ld-arm/farcall-group-size2.d,
ld-arm/farcall-group.d, ld-arm/farcall-mix.d, ld-arm/farcall-mix2.d,
ld-arm/farcall-thumb-arm-blx-pic-veneer.d,
ld-arm/farcall-thumb-arm-blx.d, ld-arm/farcall-thumb-arm.d,
ld-arm/farcall-thumb-thumb-blx-pic-veneer.d,
ld-arm/farcall-thumb-thumb-blx.d, ld-arm/farcall-thumb-thumb-m.d,
ld-arm/thumb2-bl-as-thumb1-bad.d, ld-arm/thumb2-bl-bad.d: Update for
stub symbols and stub corrections.

16 years agodaily update
Alan Modra [Wed, 25 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * version.cc (version_string): Bump to 1.7
Craig Silverstein [Tue, 24 Jun 2008 06:14:58 +0000 (06:14 +0000)]
* version.cc (version_string): Bump to 1.7

16 years agomerge from gcc
DJ Delorie [Tue, 24 Jun 2008 03:01:29 +0000 (03:01 +0000)]
merge from gcc

16 years ago * write.c (relax_segment <rs_org>): Include current stretch
Alan Modra [Tue, 24 Jun 2008 01:49:36 +0000 (01:49 +0000)]
* write.c (relax_segment <rs_org>): Include current stretch
value when calculating whether .org is backwards.

16 years agodaily update
Alan Modra [Tue, 24 Jun 2008 00:00:07 +0000 (00:00 +0000)]
daily update

16 years ago* gas/mips/e32-rel2.d: Add -march=mips1 for as.
Chao-ying Fu [Fri, 20 Jun 2008 18:34:00 +0000 (18:34 +0000)]
* gas/mips/e32-rel2.d: Add -march=mips1 for as.

16 years ago* basic_blocks.c: Always include "gprof.h" first.
Andreas Schwab [Thu, 19 Jun 2008 16:30:29 +0000 (16:30 +0000)]
* basic_blocks.c: Always include "gprof.h" first.
* cg_arcs.c: Likewise.
* cg_dfn.c: Likewise.
* cg_print.c: Likewise.
* corefile.c: Likewise.
* gprof.c: Likewise.
* hist.c: Likewise.
* search_list.c: Likewise.
* sym_ids.c: Likewise.
* utils.c: Likewise.

16 years ago * elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub for
Alan Modra [Thu, 19 Jun 2008 16:16:58 +0000 (16:16 +0000)]
* elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub for
non-branch insns.

16 years agoupdate
Alan Modra [Thu, 19 Jun 2008 16:15:17 +0000 (16:15 +0000)]
update

16 years ago * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
Alan Modra [Thu, 19 Jun 2008 16:14:53 +0000 (16:14 +0000)]
* emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
build overlay stubs" a fatal error.

16 years ago * elf32-spu.c (build_stub): Allow wraparound on stub branches.
Alan Modra [Thu, 19 Jun 2008 16:14:15 +0000 (16:14 +0000)]
* elf32-spu.c (build_stub): Allow wraparound on stub branches.
(allocate_spuear_stubs, build_spuear_stubs): Return value from
count_stub/build_stub.
(spu_elf_build_stubs): Correct location of stub reloc error message.

16 years ago2008-06-19 Eric Blake <ebb9@byu.net>
Eric Blake [Thu, 19 Jun 2008 15:17:56 +0000 (15:17 +0000)]
2008-06-19  Eric Blake  <ebb9@byu.net>

Adjust strsignal to POSIX 200x prototype.
* strsignal.c (strsignal): Remove const.

16 years agodaily update
Alan Modra [Thu, 19 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * src-release (BINUTILS_SUPPORT_DIRS): Remove mkdep and depcomp.
Ian Lance Taylor [Wed, 18 Jun 2008 23:20:43 +0000 (23:20 +0000)]
* src-release (BINUTILS_SUPPORT_DIRS): Remove mkdep and depcomp.

16 years ago2008-06-18 Craig Silverstein <csilvers@google.com>
Craig Silverstein [Wed, 18 Jun 2008 22:32:37 +0000 (22:32 +0000)]
2008-06-18  Craig Silverstein  <csilvers@google.com>

* powerpc.cc (Powerpc_relocate_functions::addr16_ha): cast
constant 0xFFFF to type Valtype.
(Powerpc_relocate_functions::rel16_ha): Likewise.