OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
16 years ago * elf.c (bfd_elf_get_str_section): Fix memory leak caused by
Cary Coutant [Thu, 1 May 2008 17:06:52 +0000 (17:06 +0000)]
* elf.c (bfd_elf_get_str_section): Fix memory leak caused by
corrupt string table.

16 years ago * cache.c (cache_bread_1): Renames cache_bread.
Joel Brobecker [Thu, 1 May 2008 15:45:43 +0000 (15:45 +0000)]
    * cache.c (cache_bread_1): Renames cache_bread.
        (cache_bread): New function.

16 years ago* readelf.c (print_symbol): Add code to display non-printing characters.
Nick Clifton [Thu, 1 May 2008 14:34:51 +0000 (14:34 +0000)]
* readelf.c (print_symbol): Add code to display non-printing characters.

16 years ago PR 2995, PR 6473
Alan Modra [Thu, 1 May 2008 14:13:58 +0000 (14:13 +0000)]
PR 2995, PR 6473
* elf.c (_bfd_elf_make_section_from_shdr): Always set lma from p_paddr.
(assign_file_positions_for_load_sections): Combine nested "if".
(copy_elf_program_header): Don't set p_paddr_valid or p_vaddr_offset
when all header p_paddr fields are zero.

16 years ago * target-reloc.h (relocate_section): Fix dead-pointer bug.
Cary Coutant [Thu, 1 May 2008 02:01:23 +0000 (02:01 +0000)]
* target-reloc.h (relocate_section): Fix dead-pointer bug.

16 years ago * layout.cc (Layout::include_section): Refactored check for debug
Cary Coutant [Thu, 1 May 2008 01:23:21 +0000 (01:23 +0000)]
* layout.cc (Layout::include_section): Refactored check for debug
info section.
(Layout::add_comdat): Add new parameters.  Change type
of signature parameter.  Add object and shndx to signatures table.
(Layout::find_kept_object): New function.
* layout.h: Include <cstring>.
(Layout::is_debug_info_section): New function.
(Layout::add_comdat): Add new parameters.
(Layout::find_kept_object): New function.
(Layout::Kept_section): New struct.
(Layout::Signatures): Change type of map range.
* object.cc (Relobj::output_section_address): New function.
(Sized_relobj::include_section_group): Add new parameters.  Change
calls to Layout::add_comdat.  Change to build table of kept comdat
groups and table mapping discarded sections to kept sections.
(Sized_relobj::include_linkonce_section): Likewise.  Add new parameter.
(Sized_relobj::do_layout): Change calls to include_section_group and
include_linkonce_section.
(Sized_relobj::do_finalize_local_symbols): Do not set local symbol
value to zero when section is discarded.
(Sized_relobj::map_to_kept_section): New function.
* object.h (Relobj::output_section_address): New function.
(Relobj::Comdat_group): New type.
(Relobj::find_comdat_group): New function.
(Relobj::Comdat_group_table): New type.
(Relobj::Kept_comdat_section): New type.
(Relobj::Kept_comdat_section_table): New type.
(Relobj::add_comdat_group): New function.
(Relobj::set_kept_comdat_section): New function.
(Relobj::get_kept_comdat_section): New function.
(Relobj::comdat_groups_): New field.
(Relobj::kept_comdat_sections_): New field.
(Symbol_value::input_value): Update comment.
(Sized_relobj::map_to_kept_section) New function.
(Sized_relobj::include_linkonce_section): Add new parameter.
* target-reloc.h (Comdat_behavior): New type.
(get_comdat_behavior): New function.
(relocate_section): Add code to map a discarded section to the
corresponding kept section when applying a relocation.

16 years ago * dwarf_reader.cc (next_generation_count): New static var.
Craig Silverstein [Thu, 1 May 2008 00:25:33 +0000 (00:25 +0000)]
* dwarf_reader.cc (next_generation_count): New static var.
(Addr2line_cache_entry): New struct.
(addr2line_cache): New static var.
(Dwarf_line_info::one_addr2line): Added caching.
(Dwarf_line_info::clear_addr2line_cache): New function.
* dwarf_reader.h (Dwarf_line_info::one_addr2line): Add
cache-size parameter.
(Dwarf_line_info::one_addr2line_cache): New function.
* symtab.cc (Symbol_table::detect_odr_violations): Pass
new cache-size argument to one_addr2line(), and clear cache.

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

16 years ago * doc/binutils.texi (strings): Add "unicode" to the documentation
Nick Clifton [Wed, 30 Apr 2008 07:27:17 +0000 (07:27 +0000)]
    * doc/binutils.texi (strings): Add "unicode" to the documentation
        of strings in order to make explicit that it supports this
        feature.

16 years agomissed from 20080414 commit for e500mc support
Alan Modra [Wed, 30 Apr 2008 06:47:24 +0000 (06:47 +0000)]
missed from 20080414 commit for e500mc support

16 years ago * config/tc-sparc.c (v9a_asr_table): Fix order of softint entries.
David S. Miller [Wed, 30 Apr 2008 03:50:39 +0000 (03:50 +0000)]
* config/tc-sparc.c (v9a_asr_table): Fix order of softint entries.

16 years ago * readelf.c (process_program_headers): Correct section in segment
Alan Modra [Wed, 30 Apr 2008 02:09:48 +0000 (02:09 +0000)]
* readelf.c (process_program_headers): Correct section in segment
display.

16 years agodaily update
Alan Modra [Wed, 30 Apr 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago * mips-opc.c (mips_builtin_opcodes): Set field `match' to 0 for
Adam Nemet [Tue, 29 Apr 2008 23:27:01 +0000 (23:27 +0000)]
* mips-opc.c (mips_builtin_opcodes): Set field `match' to 0 for
the two drem and the two dremu macros.

16 years ago * elf.c (_bfd_elf_get_dynamic_reloc_upper_bound)
Daniel Jacobowitz [Tue, 29 Apr 2008 11:53:45 +0000 (11:53 +0000)]
* elf.c (_bfd_elf_get_dynamic_reloc_upper_bound)
(_bfd_elf_canonicalize_dynamic_reloc): Find dynamic relocations
even if they are not loaded.
* elflink.c (_bfd_elf_init_2_index_sections): Set data_index_section
first.

* ld-arm/symbian-seg1.s, ld-arm/symbian-seg1.d: New files.
* ld-arm/arm-elf.exp: Run symbian-seg1.

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

16 years ago * i386.cc (Relocate::relocate): Fix typos for R_386_PC16 and
Cary Coutant [Mon, 28 Apr 2008 23:09:21 +0000 (23:09 +0000)]
* i386.cc (Relocate::relocate): Fix typos for R_386_PC16 and
R_386_PC8 relocations.

16 years ago * gas/mips/mips4.s: Split out fp instruction from here ...
Adam Nemet [Mon, 28 Apr 2008 17:10:18 +0000 (17:10 +0000)]
* gas/mips/mips4.s: Split out fp instruction from here ...
* gas/mips/mips4-fp.s: ... to here.
* gas/mips/mips4.d: Update.
* gas/mips/mips4-fp.l: New file. Check error messages with
-msoft-float.
* gas/mips/mips4-fp.d: New file. Check disassembly with
hard-float.

* gas/mips/mips32r2.s: Split out fp instructions from here ...
* gas/mips/mips32r2-fp32.s: ... to here.
* gas/mips/mips32r2.d: Update.
* gas/mips/mips32r2-fp32.l: New file.  Check error messages with
-msoft-float.
* gas/mips/mips32r2-fp32.d: New file.  Check disassembly with
hard-float.

* gas/mips/mips32r2-ill-nofp.s, gas/mips/mips32r2-ill-nofp.l: New
test derived from mips32r2-ill.

* gas/mips/mips32-sf32.l: New list test for mips32-sf32.s to check
error messages for soft-float targets.

* gas/mips/mips-macro-ill-sfp.s, gas/mips/mips-macro-ill-sfp.l:
New test for -msingle-float.
* gas/mips/mips-macro-ill-nofp.s, gas/mips/mips-macro-ill-nofp.l:
New test for -msoft-float.
* gas/mips/mips-hard-float-flag.s,
gas/mips/mips-hard-float-flag.l: New test for -mhard-float.
* gas/mips/mips-double-float-flag.s,
gas/mips/mips-double-float-flag.l: New test for -mdouble-float.

* gas/mips/mips.exp: Run new mips4-fp and mips32r2-fp dump tests.
Run mips4-fp and mips32r2-fp list tests with -msoft-float.  Run
new mips32r2-ill-nofp with -msoft-float.  Run new mips32-sf32 list
test with -msoft-float.  Run new mips-macro-ill-sfp test with
-msingle-float.  Run new mips-macro-ill-nofp test with
-msoft-float.  Run new mips-hard-float-flag and
mips-double-float-flag tests.

16 years ago * config/tc-mips.c (file_mips_soft_float, file_mips_single_float):
Adam Nemet [Mon, 28 Apr 2008 17:06:28 +0000 (17:06 +0000)]
* config/tc-mips.c (file_mips_soft_float, file_mips_single_float):
New statics.
(OPTION_ELF_BASE): Make room for new option macros.
(OPTION_SOFT_FLOAT, OPTION_HARD_FLOAT, OPTION_SINGLE_FLOAT,
OPTION_DOUBLE_FLOAT): New option macros.
(md_longopts): Add msoft-float, mhard-float, msingle-float and
mdouble-float.
(md_parse_option): Handle OPTION_SINGLE_FLOAT,
OPTION_DOUBLE_FLOAT, OPTION_SOFT_FLOAT and OPTION_HARD_FLOAT.
(md_show_usage): Add -msoft-float, -mhard-float, -msingle-float
and -mdouble-float.
(struct mips_set_options): New fields soft_float and single_float.
(mips_opts): Initialized them.  Add comment for each field
initializer.
(mips_after_parse_args): Set them based on file_mips_soft_float
and file_mips_single_float.
(s_mipsset): Add support for `.set softfloat', `.set hardfloat',
`.set singlefloat' and `.set doublefloat'.
(is_opcode_valid): New function to invoke OPCODE_IS_MEMBER.
Handle single-float and soft-float instructions here.
(macro_build, mips_ip): Use it instead of OPCODE_IS_MEMBER.
(is_opcode_valid_16): New function.
(mips16_ip): Use it instead of OPCODE_IS_MEMBER.
(macro) <M_LDC1_AB, M_SDC1_AB, M_L_DOB, M_L_DAB, M_S_DAB,
M_S_DOB>: Remove special-casing of r4650.
* doc/c-mips.texi (-march=): Add Octeon.
(MIPS Opts): Document -msoft-float and -mhard-float.  Document
-msingle-float and -mdouble-float.
(MIPS floating-point): New section.  Document `.set softfloat' and
`.set hardfloat'.  Document `.set singlefloat' and `.set
doublefloat'.

16 years ago * mips-opc.c (mips_builtin_opcodes): Mark prefx and c1
Adam Nemet [Mon, 28 Apr 2008 17:03:58 +0000 (17:03 +0000)]
* mips-opc.c (mips_builtin_opcodes): Mark prefx and c1
instructions FP_S.  Mark l.s, li.s, lwc1, swc1, s.s, trunc.w.s and
cop1 macros INSN2_M_FP_S.  Mark l.d, li.d, ldc1 and sdc1 macros
INSN2_M_FP_D.  Mark trunc.w.d macro INSN2_M_FP_S and INSN2_M_FP_D.

16 years ago * mips.h (INSN_MACRO): Move it up to the the pinfo macros.
Adam Nemet [Mon, 28 Apr 2008 16:59:27 +0000 (16:59 +0000)]
* mips.h (INSN_MACRO): Move it up to the the pinfo macros.
(INSN2_M_FP_S, INSN2_M_FP_D): New pinfo2 macros.

16 years ago * ld-scripts/rgn-over8.s: Tweak.
Nathan Sidwell [Mon, 28 Apr 2008 14:08:15 +0000 (14:08 +0000)]
* ld-scripts/rgn-over8.s: Tweak.

16 years agold/
Nathan Sidwell [Mon, 28 Apr 2008 12:45:34 +0000 (12:45 +0000)]
ld/
* ldlang.c (lang_size_sections_1): Don't check LMA overflow on
non-load sections.
ld/testsuite/
* ld-scripts/rgn-over.exp: Allow -ok file names to pass.
* ld-scripts/rgn-over8.s: New.
* ld-scripts/rgn-over8.t: New.
* ld-scripts/rgn-over8-ok.d: New.

16 years ago PR binutils/6449
Nick Clifton [Mon, 28 Apr 2008 08:30:23 +0000 (08:30 +0000)]
            PR binutils/6449
                * objdump.c (slurp_file): Open the file in binary mode.
                * ar.c: Remove conditional definition of O_BINARY.
                * bin2.c: Likewise.
                * rename.c: Likewise.
                * strings.c: Likewise.
                * sysdep.h: Add conditional definition of O_BINARY.

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

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

16 years ago2008-04-25 Michael Frysinger <vapier@gentoo.org>
Mike Frysinger [Sat, 26 Apr 2008 01:10:55 +0000 (01:10 +0000)]
2008-04-25  Michael Frysinger  <vapier@gentoo.org>

* configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
and targ_extra_emuls to elf32bfin.

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

16 years agogas/
David S. Miller [Fri, 25 Apr 2008 19:58:03 +0000 (19:58 +0000)]
gas/

* config/tc-sparc.c: Accept 'softint_clear' and 'softint_set'
%asr aliases.

* doc/c-sparc.texi: Consistently refer to architecture 'versions',
rather than occaisionally 'levels'.  Consistently refer to Sun's
UNIX variant as SunOS, every version of Solaris is also SunOS.
Document new 'softint_clear' and 'softint_set' aliases.  Clarify
which architecture versions support '%dcr', '%cq', and '%gl'. Add
section on 32-bit/64-bit opcode translations.

opcodes/

* sparc-dis.c: Emit %stick instead of %sys_tick, and %stick_cmpr
instead of %sys_tick_cmpr, as suggested in architecture manuals.

16 years ago* reloc16.c (bfd_coff_reloc16_get_value): Add support for
Nick Clifton [Fri, 25 Apr 2008 16:02:43 +0000 (16:02 +0000)]
* reloc16.c (bfd_coff_reloc16_get_value): Add support for
  undefined weak symbols.

16 years ago * po/vi.po: Updated Vietnamese translation.
Nick Clifton [Fri, 25 Apr 2008 14:52:23 +0000 (14:52 +0000)]
    * po/vi.po: Updated Vietnamese translation.

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

16 years ago(oops) Add changelog entry for David Miller's SunPRO support patch which was
Nick Clifton [Thu, 24 Apr 2008 08:20:55 +0000 (08:20 +0000)]
(oops) Add changelog entry for David Miller's SunPRO support patch which was
accidentally omitted yesterday.

16 years agodaily update
Alan Modra [Thu, 24 Apr 2008 00:00:04 +0000 (00:00 +0000)]
daily update

16 years ago2008-04-23 Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Wed, 23 Apr 2008 18:40:34 +0000 (18:40 +0000)]
2008-04-23  Mike Frysinger  <vapier@gentoo.org>

* Makefile.am (OBJ_FORMAT_CFILES): Add config/obj-fdpicelf.c.
(OBJ_FORMAT_HFILES): Add config/obj-fdpicelf.h.
(obj-fdpicelf.o): Define.
* Makefile.in: Regenerate.
* configure.tgt: Set bfd_gas to yes when fmt is fdpicelf.
(bfin-*-*): Delete.
(bfin-*-linux-uclibc): New; set fmt to fdpicelf and em to linux.
(bfin-*-uclinux*): New; set fmt to elf and em to linux.
* config/obj-fdpicelf.c: New.
* config/obj-fdpicelf.h: Likewise.
* config/tc-bfin.c (bfin_flags, bfin_pic_flag): Set default based on
the OBJ_FDPIC_ELF define.
(OPTION_NOPIC): Define.
(md_longopts): Add mnopic and mno-fdpic.
(md_parse_option): Handle OPTION_NOPIC.

16 years ago * object.cc (Sized_relobj::include_section_group): Check for
Ian Lance Taylor [Wed, 23 Apr 2008 17:40:19 +0000 (17:40 +0000)]
* object.cc (Sized_relobj::include_section_group): Check for
invalid section group.

16 years ago * object.cc (make_elf_object): Correct test for 64-bit ELF file
Ian Lance Taylor [Wed, 23 Apr 2008 17:32:53 +0000 (17:32 +0000)]
* object.cc (make_elf_object): Correct test for 64-bit ELF file
header size.

16 years ago * readsyms.cc (Read_symbols::do_read_symbols): Use get_view rather
Ian Lance Taylor [Wed, 23 Apr 2008 17:29:04 +0000 (17:29 +0000)]
* readsyms.cc (Read_symbols::do_read_symbols): Use get_view rather
than read for file header.
* archive.cc (Archive::include_member): Likewise.

16 years agobfd/
H.J. Lu [Wed, 23 Apr 2008 16:11:47 +0000 (16:11 +0000)]
bfd/

2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

* aclocal.m4: Regenerate.
* configure: Regenerate.

binutils/

2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

* aclocal.m4: Regenerate.
* configure: Regenerate.

gas/

2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

* aclocal.m4: Regenerate.
* configure: Regenerate.

gold/

2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

* aclocal.m4: Regenerate.
* configure: Regenerate.

gprof/

2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

* aclocal.m4: Regenerate.
* configure: Regenerate.

ld/

2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

* aclocal.m4: Regenerate.
* configure: Regenerate.

opcodes/

2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

* aclocal.m4: Regenerate.
* configure: Regenerate.

16 years ago2008-04-23 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 23 Apr 2008 16:01:10 +0000 (16:01 +0000)]
2008-04-23  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.exp: Run sse-noavx and x86-64-sse-noavx.

* gas/i386/sse-noavx.d: New.
* gas/i386/sse-noavx.s: Likewise.
* gas/i386/x86-64-sse-noavx.d: Likewise.
* gas/i386/x86-64-sse-noavx.s: Likewise.

16 years ago2008-04-23 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 23 Apr 2008 14:34:05 +0000 (14:34 +0000)]
2008-04-23  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/sse2.s: Add tests for pmuludq, paddq and psubq.
* gas/i386/x86-64-simd.s: Likewise.

* gas/i386/sse2.d: Updated.
* gas/i386/x86-64-simd.d: Likewise.
* gas/i386/x86-64-simd-intel.d: Likewise.
* gas/i386/x86-64-simd-suffix.d: Likewise.

16 years ago * config/obj-elf.c (obj_elf_section_type): Add prototype
Nick Clifton [Wed, 23 Apr 2008 13:54:56 +0000 (13:54 +0000)]
    * config/obj-elf.c (obj_elf_section_type): Add prototype
        before obj_elf_section_word and add 'warn' arg.
        (obj_elf_section_word): Add type pointer arg, and if no #SECTION
        is matched, try checking for #SECTION_TYPE.
        (obj_elf_section): Adjust for new args.
        (obj_elf_type_name): New function.
        (obj_elf_type): Call it, and accept STT_foo number strings
        in .type statements as output by SunPRO compiler.

16 years ago2008-04-23 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Wed, 23 Apr 2008 10:24:41 +0000 (10:24 +0000)]
2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

* confsubdir.m4: Remove.
* override.m4: Apply _AC_ARG_VALIDATE fix to all versions
but 2.62.

16 years agoopcodes/
David S. Miller [Wed, 23 Apr 2008 07:49:33 +0000 (07:49 +0000)]
opcodes/

* sparc-opc.c (asi_table): Add UltraSPARC and Niagara
extended values.
(prefetch_table): Add missing values.

gas/

* config/tc-sparc.c (v9a_asr_table): Add missing
'stick' and 'stick_cmpr', and document ordering rules
of table.
(tc_gen_reloc): Accept BFD_RELOC_SPARC_PC22 and
BFD_RELOC_SPARC_PC10.
* doc/c-sparc.texi: New section on Sparc constants.
Add documentation for %stick and %stick_cmpr.

gas/testsuite/

* gas/sparc/pc2210.d: New file.
* gas/sparc/pc2210.d: Likewise.
* gas/sparc/sparc.exp: Run new %pc22/%pc10 relocation test.

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

16 years agogas/
H.J. Lu [Tue, 22 Apr 2008 22:27:13 +0000 (22:27 +0000)]
gas/

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

* config/tc-i386.c (md_assemble): Don't check SSE instructions
if noavx is 0.

opcodes/

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

* i386-gen.c (opcode_modifiers): Add NoAVX.

* i386-opc.h (NoAVX): New.
(OldGcc): Updated.
(i386_opcode_modifier): Add noavx.

* i386-opc.tbl: Add NoAVX to SSE, SSE2, SSE3 and SSSE3
instructions which don't have AVX equivalent.
* i386-tbl.h: Regenerated.

16 years ago * archive.c (_bfd_write_archive_contents): Fix incorrect use of
Cary Coutant [Tue, 22 Apr 2008 00:12:23 +0000 (00:12 +0000)]
* archive.c (_bfd_write_archive_contents): Fix incorrect use of
ARFMAG.

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

16 years agomerge from gcc
DJ Delorie [Mon, 21 Apr 2008 22:30:17 +0000 (22:30 +0000)]
merge from gcc

16 years agobfd/
Nathan Sidwell [Mon, 21 Apr 2008 17:54:25 +0000 (17:54 +0000)]
bfd/
* elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Don't
set the value of undefined symbols in shared objects.
(_bfd_mips_vxworks_finish_dynamic_symbol): Clear value for
undefined symbols unless pointer equality is needed.
ld/testsuite/
* ld-vxworks/plt-mips1.s: New.
* ld-vxworks/plt-mips1.d: New.

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

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

16 years ago * version.cc (version_string): Bump to 1.6.
Ian Lance Taylor [Sat, 19 Apr 2008 20:15:56 +0000 (20:15 +0000)]
* version.cc (version_string): Bump to 1.6.

16 years ago * testsuite/Makefile.am (many_sections_r_test): New target.
Ian Lance Taylor [Sat, 19 Apr 2008 19:43:13 +0000 (19:43 +0000)]
* testsuite/Makefile.am (many_sections_r_test): New target.
(many_sections_r_test_SOURCES): Remove.
(many_sections_r_test_DEPENDENCIES): Remove.
(many_sections_r_test_LDFLAGS): Remove.
(many_sections_r_test_LDADD): Remove.

16 years ago * object.cc (Sized_relobj::do_add_symbols): Always pass
Ian Lance Taylor [Sat, 19 Apr 2008 19:34:41 +0000 (19:34 +0000)]
* object.cc (Sized_relobj::do_add_symbols): Always pass
local_symbol_count_ to add_from_relobj.

16 years ago * testsuite/Makefile.am (many_sections_check.h): Only check one in
Ian Lance Taylor [Sat, 19 Apr 2008 19:15:36 +0000 (19:15 +0000)]
* testsuite/Makefile.am (many_sections_check.h): Only check one in
every thousand variables.
* testsuite/Makefile.in: Rebuild.

16 years ago * elfcpp_file.h (class Elf_file): Add large_shndx_offset_ field.
Ian Lance Taylor [Sat, 19 Apr 2008 18:33:19 +0000 (18:33 +0000)]
* elfcpp_file.h (class Elf_file): Add large_shndx_offset_ field.
(Elf_file::large_shndx_offset): New function.
(Elf_file::construct): Initialize large_shndx_offset_.
(Elf_File::initialize_shnum): If necessary, adjust shstrndx_ and
set large_shndx_offset_.

16 years ago * object.cc (Xindex::initialize_symtab_xindex): New function.
Ian Lance Taylor [Sat, 19 Apr 2008 18:30:58 +0000 (18:30 +0000)]
* object.cc (Xindex::initialize_symtab_xindex): New function.
(Xindex::read_symtab_xindex): New function.
(Xindex::sym_xindex_to_shndx): New function.
(Sized_relobj::find_symtab): Pick up SHT_SYMTAB_SHNDX section if
available.
(Sized_relobj::do_initialize_xindex): New function.
(Sized_relobj::do_read_symbols): Adjust section links.
(Sized_relobj::symbol_section_and_value): Add is_ordinary
parameter.  Change all callers.
(Sized_relobj::include_section_group): Adjust section links and
symbol section indexes.
(Sized_relobj::do_layout): Adjust section links.
(Sized_relobj::do_count_local_symbols): Adjust section links and
symbol section indexes.
(Sized_relobj::do_finalize_local_symbols): Distinguish between
ordinary and special symbols.
(Sized_relobj::write_local_symbols): Add symtab_xindex and
dynsym_xindex parameters.  Change all callers.  Adjust section
links.  Use SHN_XINDEX when needed.
(Sized_relobj::get_symbol_location_info): Adjust section links.
Don't get fooled by special symbols.
* object.h (class Xindex): Define.
(class Object): Add xindex_ parameter.  Declare virtual functoin
do_initialize_xindex.
(Object::adjust_sym_shndx): New function.
(Object::set_xindex): New protected function.
(class Symbol_value): Add is_ordinary_shndx_ field.
(Symbol_value::Symbol_value): Initialize is_ordinary_shndx_.
(Symbol_value::value): Assert ordinary section.
(Symbol_value::initialize_input_to_output_map): Likewise.
(Symbol_value::set_input_shndx): Add is_ordinary parameter.
Change all callers.
(Symbol_value::input_shndx): Add is_ordinary parameter.  Change
all callers.
(class Sized_relobj): Update declarations.
(Sized_relobj::local_symbol_input_shndx): Add is_ordinary
parameter.  Change all callers.
(Sized_relobj::adjust_shndx): New function.
* dynobj.cc (Sized_dynobj::Sized_dynobj): Initialize dynsym_shndx_
field.
(Sized_dynobj::find_dynsym_sections): Remove pdynsym_shndx
parameter.  Change all callers.  Pick up SHT_DYNSYM_SHNDX section
for SHT_DYNSYM section if available.  Set dynsym_shndx_ field.
(Sized_dynobj::read_dynsym_section): Adjust section links.
(Sized_dynobj::read_dynamic): Likewise.
(Sized_dynobj::do_read_symbols): Use dynsym_shndx_ field.  Adjust
section links.
(Sized_dynobj::do_initialize_xindex): New function.
* dynobj.h (class Sized_dynobj): Add dynsym_shndx_ field.  Declare
do_initialize_xindex.
(Sized_dynobj::adjust_shndx): New function.
* layout.cc (Layout::Layout): Initialize symtab_xindex_ and
dynsym_xindex_ fields.
(Layout::finalize): Add a call to set_section_indexes before
creating the symtab sections.
(Layout::set_section_indexes): Don't do anything if the section
already has a section index.
(Layout::create_symtab_sections): Add shnum parameter.  Change
caller.  Create .symtab_shndx section if needed.
(Layout::create_shdrs): Add shstrtab_section parameter.  Change
caller.
(Layout::allocated_output_section_count): New function.
(Layout::create_dynamic_symtab): Create .dynsym_shndx section if
needed.
* layout.h (class Layout): Add symtab_xindex_ and dynsym_xindex_
fields.  Update declarations.
(Layout::symtab_xindex): New function.
(Layout::dynsym_xindex): New function.
(class Write_symbols_task): Add layout_ field.
(Write_symbols_task::Write_symbols_task): Add layout parameter.
Change caller.
* output.cc (Output_section_headers::Output_section_headers): Add
shstrtab_section parameter.  Change all callers.
(Output_section_headers::do_sized_write): Store overflow values
for section count and section string table section index in
section header zero.
(Output_file_header::do_sized_write): Check for overflow of
section count and section string table section index.
(Output_symtab_xindex::do_write): New function.
(Output_symtab_xindex::endian_do_write): New function.
* output.h (class Output_section_headers): Add shstrtab_section_.
Update declarations.
(class Output_symtab_xindex): Define.
(Output_section::has_out_shndx): New function.
* symtab.cc (Symbol::init_fields): Initialize is_ordinary_shndx_
field.
(Symbol::init_base): Add st_shndx and is_ordinary parameters.
Change all callers.
(Sized_symbol::init): Likewise.
(Symbol::output_section): Check for ordinary symbol.
(Symbol_table::add_from_object): Remove orig_sym parameter.  Add
st_shndx, is_ordinary, and orig_st_shndx parameters.  Change all
callers.
(Symbol_table::add_from_relobj): Add symndx_offset parameter.
Change all callers.  Simplify handling of symbols from sections
not included in the link.
(Symbol_table::add_from_dynobj): Handle ordinary symbol
distinction.
(Weak_alias_sorter::operator()): Assert that symbols are
ordinary.
(Symbol_table::sized_finalize_symbol): Handle ordinary symbol
distinction.
(Symbol_table::write_globals): Add symtab_xindex and dynsym_xindex
parameters.  Change all callers.
(Symbol_table::sized_write_globals): Likewise.  Handle ordinary
symbol distinction.  Use SHN_XINDEX when needed.
(Symbol_table::write_section_symbol): Add symtab_xindex
parameter.  Change all callers.
(Symbol_table::sized_write_section_symbol): Likewise.  Use
SHN_XINDEX when needed.
* symtab.h (class Symbol): Add is_ordinary_shndx_ field.  Update
declarations.
(Symbol::shndx): Add is_ordinary parameter.  Change all callers.
(Symbol::is_defined): Check is_ordinary.
(Symbol::is_undefined, Symbol::is_weak_undefined): Likewise.
(Symbol::is_absolute, Symbol::is_common): Likewise.
(class Sized_symbol): Update declarations.
(class Symbol_table): Update declarations.
* resolve.cc (Symbol::override_base): Add st_shndx and is_ordinary
parameters.  Change all callers.
(Sized_symbol::override): Likewise.
(Symbol_table::override): Likewise.
(symbol_to_bits): Add is_ordinary parameter.  Change all callers.
(Symbol_table::resolve): Remove orig_sym parameter.  Add st_shndx,
is_ordinary, and orig_st_shndx parameters.  Change all callers.
* copy-relocs.cc (Copy_relocs::emit_copy_reloc): Require symbol
to be in an ordinary section.
* dwarf_reader.cc (Sized_dwarf_line_info::symbol_section): Add
object and is_ordinary parameters.  Change all callers.
(Sized_dwarf_line_info::read_relocs): Add object parameter.
Change all callers.  Don't add undefined or non-ordinary symbols
to reloc_map_.
(Sized_dwarf_line_info::read_line_mappings): Add object parameter.
Change all callers.
* dwarf_reader.h (class Sized_dwarf_line_info): Update
declarations.
* ehframe.cc (Eh_frame::read_fde): Check for ordinary symbol.
* reloc.cc (Sized_relobj::do_read_relocs): Adjust section links.
(Sized_relobj::relocate_sections): Likewise.
* target-reloc.h (scan_relocs): Adjust section symbol index.
(scan_relocatable_relocs): Likewise.
* i386.cc (Scan::local): Check for ordinary symbols.
* sparc.cc (Scan::local): Likewise.
* x86_64.cc (Scan::local): Likewise.
* testsuite/binary_unittest.cc (Sized_binary_test): Update calls
to symbol_section_and_value.
* testsuite/many_sections_test.cc: New file.
* testsuite/Makefile.am (BUILT_SOURCES): Define.
(check_PROGRAMS): Add many_sections_test.
(many_sections_test_SOURCES): Define.
(many_sections_test_DEPENDENCIES): Define.
(many_sections_test_LDFLAGS): Define.
(BUILT_SOURCES): Add many_sections_define.h.
(many_sections_define.h): New target.
(BUILT_SOURCES): Add many_sections_check.h.
(many_sections_check.h): New target.
(check_PROGRAMS): Add many_sections_r_test.
(many_sections_r_test_SOURCES): Define.
(many_sections_r_test_DEPENDENCIES): Define.
(many_sections_r_test_LDFLAGS): Define.
(many_sections_r_test_LDADD): Define.
(many_sections_r_test.o): New target.
* testsuite/Makefile.in: Rebuild.

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

16 years ago * doc/c-sparc.texi: Add syntax section.
David S. Miller [Fri, 18 Apr 2008 21:19:48 +0000 (21:19 +0000)]
* doc/c-sparc.texi: Add syntax section.

16 years ago2008-04-18 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 18 Apr 2008 18:22:37 +0000 (18:22 +0000)]
2008-04-18  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (build_modrm_byte): Don't check FMA to swap
REG and NDS for instructions with immediate operand.

16 years agomerge from gcc
DJ Delorie [Fri, 18 Apr 2008 15:14:13 +0000 (15:14 +0000)]
merge from gcc

16 years agogas/
H.J. Lu [Fri, 18 Apr 2008 13:10:32 +0000 (13:10 +0000)]
gas/

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

* config/tc-i386.c (build_modrm_byte): Swap REG and NDS for
FMA.

gas/testsuite/

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

* gas/i386/arch-10.d: Updated.
* gas/i386/avx.d: Likewise.
* gas/i386/avx-intel.d: Likewise.
* gas/i386/x86-64-arch-2.d: Likewise.
* gas/i386/x86-64-avx.d: Likewise.
* gas/i386/x86-64-avx-intel.d: Likewise.

opcodes/

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

* i386-dis.c (OP_VEX_FMA): New.
(OP_EX_VexImmW): Likewise.
(VexFMA): Likewise.
(Vex128FMA): Likewise.
(EXVexImmW): Likewise.
(get_vex_imm8): Likewise.
(OP_EX_VexReg): Likewise.
(vex_i4_done): Renamed to ...
(vex_w_done): This.
(prefix_table): Replace EXVexW with EXVexImmW on vpermil2ps
and vpermil2pd.  Replace Vex/Vex128 with VexFMA/Vex128FMA on
FMA instructions.
(print_insn): Updated.
(OP_EX_VexW): Rewrite to swap register in VEX with EX.
(OP_REG_VexI4): Check invalid high registers.

16 years ago2008-04-18 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Fri, 18 Apr 2008 11:07:31 +0000 (11:07 +0000)]
2008-04-18  Paolo Bonzini  <bonzini@gnu.org>

Sync with gcc:
2008-04-18  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/35457
* configure.ac: Include override.m4.
* configure: Regenerate.

2008-04-18  Paolo Bonzini  <bonzini@gnu.org>

        * Makefile.tpl (restrap): Call `make all' using double-colon rules.
        * Makefile.in: Regenerate.

2008-04-11  Eric B. Weddington  <eweddington@cso.atmel.com>

        * configure.ac: Do not build libssp for the AVR.
        * configure: Regenerate.

config:
2008-04-18  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/35457

* override.m4: Add this.  Make sure aclocal always picks it.
Add more lenient precious variable check, backported from
autoconf trunk.

16 years ago * aix5ppc-core.c: Define macros for the default architecture and
Nick Clifton [Fri, 18 Apr 2008 09:22:24 +0000 (09:22 +0000)]
   * aix5ppc-core.c: Define macros for the default architecture and
       machine for matching core files.
       (xcoff64_core_p): Set the architecture and machine to the default
       values defined in the macros mentioned above.
       * rs6000-core.c: Define macros to determine whether or not the
       core file header uses the core_dumpxx header format.
       (rs6000coff_core_p): Don't match core files that use the
       core_dumpxx header format.

16 years ago[patch]: ctor/dtor section must start at alignment of 8 for x86_64-pc-mingw32.
Kai Tietz [Fri, 18 Apr 2008 09:06:22 +0000 (09:06 +0000)]
[patch]: ctor/dtor section must start at alignment of 8 for x86_64-pc-mingw32.

* scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.

16 years ago* MAINTAINERS: Replace reference to configure.in with reference to configure.ac.
Nick Clifton [Fri, 18 Apr 2008 08:55:06 +0000 (08:55 +0000)]
* MAINTAINERS: Replace reference to configure.in with reference to configure.ac.

16 years ago * config/tc-sparc.c (sparc_ip): Recognize %pc22 and %pc10.
David S. Miller [Fri, 18 Apr 2008 08:47:35 +0000 (08:47 +0000)]
* config/tc-sparc.c (sparc_ip): Recognize %pc22 and %pc10.

16 years ago * configure.ac (cr16-*-*): Add case for cr16 target and include gdb
Nick Clifton [Fri, 18 Apr 2008 08:45:05 +0000 (08:45 +0000)]
 * configure.ac (cr16-*-*): Add case for cr16 target and include gdb
   as nonconfigurable directories list.
 * configure: Regenerate.

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

16 years ago * errors.cc (Errors::info): New function.
Cary Coutant [Thu, 17 Apr 2008 22:45:47 +0000 (22:45 +0000)]
* errors.cc (Errors::info): New function.
(gold_info): New function.
* errors.h (Errors::info): New function.
* gold.h (gold_info): New function.
* object.cc (Input_objects::add_object): Print trace output.
* options.cc (options::parse_set): New function.
(General_options::parse_wrap): Deleted.
(General_options::General_options): Deleted initializer.
* options.h (options::String_set): New typedef.
(options::parse_set): New function.
(DEFINE_set): New macro.
(General_options::wrap): Changed to use DEFINE_set. Changed
callers of any_wrap_symbols and is_wrap_symbol.
(General_options::trace, General_options::trace_symbol):
New options.
(General_options::any_wrap_symbols, General_options::is_wrap_symbol)
(General_options::wrap_symbols_): Deleted.
* symtab.cc (Symbol_table::add_from_object): Print trace output.

16 years ago * options.cc (General_options::parse_V): New function.
David S. Miller [Thu, 17 Apr 2008 20:23:59 +0000 (20:23 +0000)]
* options.cc (General_options::parse_V): New function.
* options.h: Add entries for -V and -Qy.

16 years ago * common.cc (Symbol_table::allocate_commons): Remove options
Ian Lance Taylor [Thu, 17 Apr 2008 07:12:00 +0000 (07:12 +0000)]
* common.cc (Symbol_table::allocate_commons): Remove options
parameter.  Change caller.
(Symbol_table::do_allocate_commons): Remove options parameter.
Change caller.  Just call do_allocate_commons_list twice.
(Symbol_table::do_allocate_commons_list): New function, broken out
of do_allocate_commons.
* common.h (class Allocate_commons_task): Remove options_ field.
Update constructor.
* symtab.cc (Symbol_table::Symbol_table): Initialize
tls_commons_.
(Symbol_table::add_from_object): Put TLS common symbols on
tls_commons_ list.
(Symbol_table::sized_finalize_symbol): Handle STT_TLS symbols
which are IN_OUTPUT_DATA.
* symtab.h (class Symbol_table): Add tls_commons_ field.  Update
allocate_commons and do_allocate_commons declarations.  Declare
do_allocate_commons_list.
* gold.cc (queue_middle_tasks): Update creation of
Allocate_commons_task to not pass options.
* testsuite/Makefile.am (INCLUDES): Add -I.. .
(TLS_TEST_C_FLAGS): New variable.
(tls_test_c_pic.o): New target.
(tls_test_shared.so): Link in tls_test_c_pic.o.
(tls_test_c_pic_ie.o): New target.
(tls_test_ie_shared.so): Link in tls_test_c_pic_ie.o.
(tls_test_DEPENDENCIES, tls_test_LDADD): Add tls_test_c.o.
(tls_test_c.o): New target.
(tls_pic_test_DEPENDENCIES): Add tls_test_c_pic.o.
(tls_pic_test_LDADD): Likewise.
(tls_shared_gd_to_ie_test_DEPENDENCIES): Add tls_test_c_pic.o.
(tls_shared_gd_to_ie_test_LDADD): Likewise.
(tls_test_c_gnu2.o): New target.
(tls_shared_gnu2_gd_to_ie_test_DEPENDENCIES): Add
tls_test_c_gnu2.o.
(tls_shared_gnu2_gd_to_ie_test_LDADD): Likewise.
(tls_test_gnu2_shared.so): Link in tls_test_c_gnu2.o.
(tls_test_shared_nonpic.so): Link in tls_test_c.o.
* testsuite/tls_test.cc: Include "config.h".
(t_last): Call t11_last.
* testsuite/tls_test.h (t11, t11_last): Declare.
* testsuite/tls_test_c.c: New file.
* testsuite/tls_test_main.cc (thread_routine): Call t11.
* configure.ac: Check for OpenMP support.
* configure, config.in, Makefile.in: Rebuild.
* testsuite/Makefile.in: Rebuild.

16 years ago * sparc.cc (Target_sparc::Scan): Change from struct to class.
David S. Miller [Thu, 17 Apr 2008 07:07:37 +0000 (07:07 +0000)]
* sparc.cc (Target_sparc::Scan): Change from struct to class.
Add issued_non_pic_error_ field.  Declare check_non_pic.
(Target_sparc::Scan::check_non_pic): New function.
(Target_sparc::Scan::local): Call check_non_pic as appropriate.
(Target_sparc::Scan::global): Likewise.

16 years ago * configure.ac (FN_PTRS_IN_SO_WITHOUT_PIC): Add sparc64.
David S. Miller [Thu, 17 Apr 2008 05:52:32 +0000 (05:52 +0000)]
* configure.ac (FN_PTRS_IN_SO_WITHOUT_PIC): Add sparc64.
* configure: Rebuild.

16 years ago * i386.cc (Target_i386::define_tls_base_symbol): New function.
Cary Coutant [Thu, 17 Apr 2008 02:00:54 +0000 (02:00 +0000)]
* i386.cc (Target_i386::define_tls_base_symbol): New function.
(Target_i386::tls_base_symbol_defined_): New field.
(Target_i386::Scan::local): Define _TLS_MODULE_BASE_ symbol.
(Target_i386::Scan::global): Likewise.
* symtab.cc (sized_finalize_symbol): Add check for TLS symbol.
* x86_64.cc (Target_x86_64::define_tls_base_symbol): New function.
(Target_x86_64::tls_base_symbol_defined_): New field.
(Target_x86_64::Scan::local): Define _TLS_MODULE_BASE_ symbol.
(Target_x86_64::Scan::global): Likewise.

16 years ago * symtab.h (Symbol::is_strong_undefined): Removed unused function.
Cary Coutant [Thu, 17 Apr 2008 00:14:36 +0000 (00:14 +0000)]
* symtab.h (Symbol::is_strong_undefined): Removed unused function.
(Symbol::needs_plt_entry): Allow weak undefined symbols.
(Symbol::needs_dynamic_reloc): Allow weak undefined symbols when
building shared libraries.
* testsuite/Makefile.am (weak_undef_nonpic_test): New target.
(weak_undef_file1_nonpic.o, weak_undef_file2_nonpic.o)
(weak_undef_lib_nonpic.so, alt/weak_undef_lib_nonpic.so): New targets.
* testsuite/Makefile.in: Rebuild.
* testsuite/weak_undef.h: New file.
* testsuite/weak_undef_file1.cc: Add extra test cases.
* testsuite/weak_undef_file2.cc: Likewise.
* testsuite/weak_undef_test.cc: Likewise.

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

16 years agoelfcpp/
David S. Miller [Wed, 16 Apr 2008 23:21:01 +0000 (23:21 +0000)]
elfcpp/

* elfcpp.h (DF_1_NOW, DF_1_GLOBAL, DF_1_GROUP,
DF_1_NODELETE, DF_1_LOADFLTR, DF_1_INITFIRST,
DF_1_NOOPEN, DF_1_ORIGIN, DF_1_DIRECT, DF_1_TRANS,
DF_1_INTERPOSE, DF_1_NODEFLIB, DF_1_NODUMP,
DF_1_CONLFAT): New enum constants.

gold/

* options.h (DEFINE_enable): New macro.
(new_dtags): New enable option.
(initfirst, interpose, loadfltr, nodefaultlib,
nodelete, nodlopen, nodump): New -z options.
* layout.cc (Layout:finish_dynamic_section): If new
dtags enabled, emit DT_RUNPATH.  Also, emit a
DT_FLAGS_1 containing any specified -z flags.

16 years ago * copy-relocs.cc: New file.
Ian Lance Taylor [Wed, 16 Apr 2008 22:54:29 +0000 (22:54 +0000)]
* copy-relocs.cc: New file.
* copy-relocs.h: New file.
* reloc.cc: Remove Copy_relocs code.
* reloc.h: Likewise.
* reloc-types.h (struct Reloc_types) [both versions]: Add
get_reloc_addend_noerror.
* output.h (class Output_data_reloc<elfcpp::SHT_REL>): Add
variants of add_global which take an addend which must be zero.
* i386.cc: Include "copy-relocs.h".
(class Target_i386): Change type of copy_relocs_ to variable,
update initializer.
(Target_i386::copy_reloc): Rewrite to pass to Copy_relocs class.
Change all callers.
(Target_i386::do_finalize_sections): Change handling of
copy_relocs_.
* sparc.cc: Include "copy-relocs.h".
(class Target_sparc): Change type of copy_relocs_ to variable,
update initializer.
(Target_sparc::copy_reloc): Rewrite to pass to Copy_relocs class.
Change all callers.
(Target_sparc::do_finalize_sections): Change handling of
copy_relocs_.
* x86_64.cc: Include "copy-relocs.h".
(class Target_x86_64): Change type of copy_relocs_ to variable,
update initializer.
(Target_x86_64::copy_reloc): Rewrite to pass to Copy_relocs
class.  Change all callers.
(Target_x86_64::do_finalize_sections): Change handling of
copy_relocs_.
* Makefile.am (CCFILES): Add copy-relocs.cc.
(HFILES): Add copy-relocs.h.

16 years ago * Makefile.in, aclocal.m4, testsuite/Makefile.in: Rebuild.
Ian Lance Taylor [Wed, 16 Apr 2008 18:55:15 +0000 (18:55 +0000)]
* Makefile.in, aclocal.m4, testsuite/Makefile.in: Rebuild.

16 years ago * config.bfd (i[3-7]86-*-dicos*, x86_64-*-dicos*): Add.
Pedro Alves [Wed, 16 Apr 2008 18:02:01 +0000 (18:02 +0000)]
* config.bfd (i[3-7]86-*-dicos*, x86_64-*-dicos*): Add.

16 years ago * testsuite/script_test_4.sh: Permit leading zeroes.
Ian Lance Taylor [Wed, 16 Apr 2008 17:43:38 +0000 (17:43 +0000)]
* testsuite/script_test_4.sh: Permit leading zeroes.

16 years ago<opcode changes>
Dwarakanath Rajagopal [Wed, 16 Apr 2008 15:31:33 +0000 (15:31 +0000)]
<opcode changes>
2008-04-16  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
            Michael Meissner  <michael.meissner@amd.com>

        * i386-opc.tbl: Fix protX to allow memory in the middle operand.
        * i386-tbl.h: Regenerate from i386-opc.tbl.

<gas/testsuite changes>
2008-04-16  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
            Michael Meissner  <michael.meissner@amd.com>

        * gas/i386/x86-64-sse5.s: Add protX tests to allow memory in the middle
        operand.
        * gas/i386/x86-64-sse5.d: Likewise.

16 years agoSorry, missed this ChangeLog updat in previous commit.
David S. Miller [Wed, 16 Apr 2008 08:52:15 +0000 (08:52 +0000)]
Sorry, missed this ChangeLog updat in previous commit.

16 years agobfd/
David S. Miller [Wed, 16 Apr 2008 08:51:18 +0000 (08:51 +0000)]
bfd/

* reloc.c (BFD_RELOC_SPARC_GOTDATA_HIX22,
BFD_RELOC_SPARC_GOTDATA_LOX10, BFD_RELOC_SPARC_GOTDATA_OP_HIX22,
BFD_RELOC_SPARC_GOTDATA_OP_LOX10, BFD_RELOC_SPARC_GOTDATA_OP): New.
* libbfd.h: Regnerate.
* bfd-in2.h: Regenerate.
* elfxx-sparc.c (_bfd_sparc_elf_howto_table): Add entries for
GOTDATA relocations.
(sparc_reloc_map): Likewise.
(_bfd_sparc_elf_check_relocs): Handle R_SPARC_GOTDATA_* like
R_SPARC_GOT*.
(_bfd_sparc_elf_gc_sweep_hook): Likewise.
(_bfd_sparc_elf_relocate_section): Transform R_SPARC_GOTDATA_HIX22,
R_SPARC_GOTDATA_LOX10, R_SPARC_GOTDATA_OP_HIX22, and
R_SPARC_GOTDATA_OP_LOX10 into the equivalent R_SPARC_GOT* reloc.
Simply ignore R_SPARC_GOTDATA_OP relocations.

gas/

* config/tc-sparc.c (sparc_ip): Add support for gotdata mnemonics
and relocation generation.
(tc_gen_reloc): Likewise.

gas/testsuite/

* gas/sparc/gotops32.d: New.
* gas/sparc/gotops32.s: Likewise.
* gas/sparc/gotops64.d: Likewise.
* gas/sparc/gotops64.s: Likewise.
* gas/sparc/sparc.exp: Run new gotdata tests.

ld/testsuite/

* ld-sparc/gotop32.dd: New.
* ld-sparc/gotop32.rd: Likewise.
* ld-sparc/gotop32.s: Likewise.
* ld-sparc/gotop32.sd: Likewise.
* ld-sparc/gotop32.td: Likewise.
* ld-sparc/gotop64.dd: Likewise.
* ld-sparc/gotop64.rd: Likewise.
* ld-sparc/gotop64.s: Likewise.
* ld-sparc/gotop64.sd: Likewise.
* ld-sparc/gotop64.td: Likewise.
* ld-sparc/sparc.exp: Run new gotdata tests.

16 years ago * elf/sparc.h (R_SPARC_GOTDATA_HIX22,
David S. Miller [Wed, 16 Apr 2008 08:35:17 +0000 (08:35 +0000)]
* elf/sparc.h (R_SPARC_GOTDATA_HIX22,
R_SPARC_GOTDATA_LOX10, R_SPARC_GOTDATA_OP_HIX22,
R_SPARC_GOTDATA_OP_LOX10, R_SPARC_GOTDATA_OP,
R_SPARC_H34, R_SPARC_SIZE32, R_SPARC_SIZE64): New relocs.

16 years agoMove entries for changes in sub-directories into the changelogs in those sub-
Nick Clifton [Wed, 16 Apr 2008 08:33:54 +0000 (08:33 +0000)]
Move entries for changes in sub-directories into the changelogs in those sub-
directories.

16 years ago PR binutils/6034
Nick Clifton [Wed, 16 Apr 2008 08:24:21 +0000 (08:24 +0000)]
    PR binutils/6034
        * objcopy.c (stuct symlist): Rename to
        is_specified_symbol_predicate_data.
        (strip_specific_list): Rename to strip_specific_htab.
        (strip_unneeded_list): Rename to strip_unneeded_htab.
        (keep_specific_list):  Rename to keep_specific_htab.
        (localize_specific_list): Rename to localize_specific_htab.
        (globalize_specific_list): Rename to globalize_specific_htab.
        (keepglobal_specific_list): Rename to keepglobal_specific_htab.
        (weaken_specific_list): Rename to weaken_specific_htab.
        (eq_string): New function.
        (create_symbol_htab): New function.
        (create_symbol_htabs): New function.
        (add_specific_symbol): Change to use hash tables.
        (is_specified_symbol_predicate): New function.
        (is_specified_symbol): Use hash table lookup.
        (is_strip_section): Update to use new functions and hash tables.
        (filter_symbols): Likewise.
        (copy_object): Likewise.
        (copy_section): Likewise.
        (strip_main): Likewise.
        (copy_main): Likewise.
        (main): Likewise.

16 years ago * sparc.h (EF_SPARC_EXT_MASK, EF_SPARC_32PLUS_MASK,
David S. Miller [Wed, 16 Apr 2008 01:56:33 +0000 (01:56 +0000)]
* sparc.h (EF_SPARC_EXT_MASK, EF_SPARC_32PLUS_MASK,
EF_SPARC_32PLUS, EF_SPARC_SUN_US1, EF_SPARC_HAL_R1,
EF_SPARC_SUN_US3, EF_SPARC_LEDATA, EF_SPARCV9_MM,
EF_SPARCV9_TSO, EF_SPARCV9_PSO, EF_SPARCV9_RMO):
Define as enum constants.

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

16 years ago * script-sections.cc (Script_sections::create_segments): Use
Ian Lance Taylor [Tue, 15 Apr 2008 22:50:37 +0000 (22:50 +0000)]
* script-sections.cc (Script_sections::create_segments): Use
header_size_adjustment even when there is enough room for the
headers.
* testsuite/script_test_4.sh: New file.
* testsuite/script_test_4.t: New file.
* testsuite/Makefile.am (check_SCRIPTS): Add script_test_4.sh.
(check_DATA): Add script_test_4.stdout.
(MOSTLYCLEANFILES): Likewise.
(script_test_4): New target.
(script_test_4.stdout): New target.
* testsuite/Makefile.in: Rebuild.

16 years ago * sparc.cc: Add definitions for Output_data_plt_sparc class
Ian Lance Taylor [Tue, 15 Apr 2008 21:41:29 +0000 (21:41 +0000)]
* sparc.cc: Add definitions for Output_data_plt_sparc class
constants.

16 years ago2008-04-15 Andrew Stubbs <andrew.stubbs@st.com>
Andrew Stubbs [Tue, 15 Apr 2008 15:53:26 +0000 (15:53 +0000)]
2008-04-15  Andrew Stubbs  <andrew.stubbs@st.com>

gas/

* config/tc-sh.c (md_apply_fix): Make sure BFD_RELOC_SH_PCRELIMM8BY4
relocations are properly aligned, and not negative.

gas/testsuite/

* gas/sh/arch/arch.exp: Align PC-relative instructions in the gererated
assembly files.
* gas/sh/arch/sh-dsp.s: Regenerate.
* gas/sh/arch/sh.s: Regenerate.
* gas/sh/arch/sh2.s: Regenerate.
* gas/sh/arch/sh2a-nofpu-or-sh3-nommu.s: Regenerate.
* gas/sh/arch/sh2a-nofpu-or-sh4-nommu-nofpu.s: Regenerate.
* gas/sh/arch/sh2a-nofpu.s: Regenerate.
* gas/sh/arch/sh2a-or-sh3e.s: Regenerate.: Regenerate.
* gas/sh/arch/sh2a-or-sh4.s: Regenerate.
* gas/sh/arch/sh2a.s: Regenerate.
* gas/sh/arch/sh2e.s: Regenerate.
* gas/sh/arch/sh3-dsp.s: Regenerate.
* gas/sh/arch/sh3-nommu.s: Regenerate.
* gas/sh/arch/sh3.s: Regenerate.
* gas/sh/arch/sh3e.s: Regenerate.
* gas/sh/arch/sh4-nofpu.s: Regenerate.
* gas/sh/arch/sh4-nommu-nofpu.s: Regenerate.
* gas/sh/arch/sh4.s: Regenerate.
* gas/sh/arch/sh4a-nofpu.s: Regenerate.
* gas/sh/arch/sh4a.s: Regenerate.
* gas/sh/arch/sh4al-dsp.s: Regenerate.
* gas/sh/err-mova.s: New test.

ld/testsuite/

* ld-sh/arch/sh-dsp.s: Regenerate.
* ld-sh/arch/sh.s: Regenerate.
* ld-sh/arch/sh2.s: Regenerate.
* ld-sh/arch/sh2a-nofpu-or-sh3-nommu.s: Regenerate.
* ld-sh/arch/sh2a-nofpu-or-sh4-nommu-nofpu.s: Regenerate.
* ld-sh/arch/sh2a-nofpu.s: Regenerate.
* ld-sh/arch/sh2a-or-sh3e.s: Regenerate.: Regenerate.
* ld-sh/arch/sh2a-or-sh4.s: Regenerate.
* ld-sh/arch/sh2a.s: Regenerate.
* ld-sh/arch/sh2e.s: Regenerate.
* ld-sh/arch/sh3-dsp.s: Regenerate.
* ld-sh/arch/sh3-nommu.s: Regenerate.
* ld-sh/arch/sh3.s: Regenerate.
* ld-sh/arch/sh3e.s: Regenerate.
* ld-sh/arch/sh4-nofpu.s: Regenerate.
* ld-sh/arch/sh4-nommu-nofpu.s: Regenerate.
* ld-sh/arch/sh4.s: Regenerate.
* ld-sh/arch/sh4a-nofpu.s: Regenerate.
* ld-sh/arch/sh4a.s: Regenerate.
* ld-sh/arch/sh4al-dsp.s: Regenerate.

16 years ago* doc/tc-arm.texi: Fix fnstart and fnend directive names.
Nick Clifton [Tue, 15 Apr 2008 14:25:30 +0000 (14:25 +0000)]
* doc/tc-arm.texi: Fix fnstart and fnend directive names.

16 years agotoplevel/
David S. Miller [Tue, 15 Apr 2008 05:16:51 +0000 (05:16 +0000)]
toplevel/

* configure.ac: Add sparc*-*-* to gold supported targets.
* configure: Regenerate.

gold/

* sparc.cc: New file.
* Makefile.am (TARGETSOURCES): Add sparc.cc
(ALL_TARGETOBJS): Add sparc.$(OBJEXT)
* configure.tgt: Document targ_extra_size and
targ_extra_big_endian.  Add entries for sparc-* and
sparc64-*.
* configure.ac: Handle targ_extra_size and
targ_extra_big_endian.
* Makefile.in: Rebuild.
* configure: Likewise.
* po/POTFILES.in: Likewise.
* po/gold.pot: Likewise.

16 years ago * readelf.c (get_gnu_elf_note_type): Recognize NT_GNU_GOLD_VERSION.
David S. Miller [Tue, 15 Apr 2008 04:11:45 +0000 (04:11 +0000)]
* readelf.c (get_gnu_elf_note_type): Recognize NT_GNU_GOLD_VERSION.

16 years ago * layout.cc (Layout::Layout): Initialize sections_are_attached_.
Ian Lance Taylor [Tue, 15 Apr 2008 04:06:41 +0000 (04:06 +0000)]
* layout.cc (Layout::Layout): Initialize sections_are_attached_.
(Layout::get_output_section): Ignore SHF_WRITE and SHF_EXECINSTR
in the name/type/flags to section mapping.  Don't call
allocate_output_section.
(Layout::choose_output_section): Change parameter from adjust_name
to is_input_section.  Don't permit input sections after sections
are attached to segments.  Don't call allocate_output_section.
(Layout::layout_eh_frame): Call update_flags_for_input_section,
not write_enable_output_section.
(Layout::make_output_section): Don't push to
unattached_section_list_ nor call attach_to_segment.  Call
attach_section_to_segment if sections are attached.
(Layout::attach_sections_to_segments): New function.
(Layout::attach_section_to_segment): New function.
(Layout::attach_allocated_section_to_segment): Rename from
attach_to_segment.  Remove flags parameter.
(Layout::allocate_output_section): Remove function.
(Layout::write_enable_output_section): Remove function.
* layout.h (class Layout): Update for above changes.  Add new
field sections_are_attached_.
* output.h (Output_section::update_flags_for_input_section): New
function.
* output.cc (Output_section::add_input_section): Call
update_flags_for_input_section.
* gold.cc (queue_middle_tasks): Call attach_sections_to_segments.

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

16 years ago * configure.in: Link with the PIC version of libiberty on
Thiemo Seufer [Mon, 14 Apr 2008 19:58:48 +0000 (19:58 +0000)]
* configure.in: Link with the PIC version of libiberty on
Linux/MIPS hosts.
* configure: Regenerate.