Jakub Jelinek [Mon, 10 Jul 2006 21:40:25 +0000 (21:40 +0000)]
include/
* bfdlink.h (struct bfd_link_info): Add emit_hash and
emit_gnu_hash bitfields.
include/elf/
* common.h (SHT_GNU_HASH, DT_GNU_HASH): Define.
ld/
* scripttempl/elf.sc: Add .gnu.hash section.
* emultempl/elf32.em (OPTION_HASH_STYLE): Define.
(gld${EMULATION_NAME}_add_options): Register --hash-style option.
(gld${EMULATION_NAME}_handle_option): Handle it.
(gld${EMULATION_NAME}_list_options): Document it.
* ldmain.c (main): Initialize emit_hash and emit_gnu_hash.
* ld.texinfo: Document --hash-style option.
bfd/
* elf.c (_bfd_elf_print_private_bfd_data): Handle DT_GNU_HASH.
(bfd_section_from_shdr, elf_fake_sections, assign_section_numbers):
Handle SHT_GNU_HASH.
(special_sections_g): Include .gnu.hash section.
(bfd_elf_gnu_hash): New function.
* elf-bfd.h (bfd_elf_gnu_hash, _bfd_elf_hash_symbol): New prototypes.
(struct elf_backend_data): Add elf_hash_symbol method.
* elflink.c (_bfd_elf_link_create_dynamic_sections): Create .hash
only if info->emit_hash, create .gnu.hash section if
info->emit_gnu_hash.
(struct collect_gnu_hash_codes): New type.
(elf_collect_gnu_hash_codes, elf_renumber_gnu_hash_syms,
_bfd_elf_hash_symbol): New functions.
(compute_bucket_count): Don't compute HASHCODES array, instead add
that and NSYMS as arguments. Use bed->s->sizeof_hash_entry
instead of bed->s->arch_size / 8. Fix .hash size estimation.
When not optimizing, use the number of hashed symbols rather than
dynsymcount.
(bfd_elf_size_dynamic_sections): Only add DT_HASH if info->emit_hash,
and ADD DT_GNU_HASH if info->emit_gnu_hash.
(bfd_elf_size_dynsym_hash_dynstr): Size .hash only if info->emit_hash,
adjust compute_bucket_count caller. Create and populate .gnu.hash
section if info->emit_gnu_hash.
(elf_link_output_extsym): Only populate .hash section if
finfo->hash_sec != NULL.
(bfd_elf_final_link): Adjust assertion. Handle DT_GNU_HASH.
* elfxx-target.h (elf_backend_hash_symbol): Define if not yet defined.
(elfNN_bed): Add elf_backend_hash_symbol.
* elf64-x86-64.c (elf64_x86_64_hash_symbol): New function.
(elf_backend_hash_symbol): Define.
* elf32-i386.c (elf_i386_hash_symbol): New function.
(elf_backend_hash_symbol): Define.
binutils/
* readelf.c (get_dynamic_type): Handle DT_GNU_HASH.
(get_section_type_name): Handle SHT_GNU_HASH.
(dynamic_info_DT_GNU_HASH): New variable.
(process_dynamic_section): Handle DT_GNU_HASH.
(process_symbol_table): Print also DT_GNU_HASH histogram.
ld/testsuite/
* ld-powerpc/tlsso32.r: Adjust.
* ld-powerpc/tlsso32.d: Adjust.
* ld-powerpc/tlsso32.g: Adjust.
* ld-powerpc/tlsso.r: Adjust.
* ld-powerpc/tlsso.g: Adjust.
* ld-powerpc/tlstocso.g: Adjust.
Mark Kettenis [Mon, 10 Jul 2006 19:40:27 +0000 (19:40 +0000)]
* alphaobsd-tdep.c: New file.
* alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Do not register a
handler for GDB_OSABI_OPENBSD_ELF.
* Makefile.in (ALLDEPFILES): Add alphaobsd-tdep.c.
(alphaobsd-tdep.o): New target.
* config/alpha/obsd.mt: New file.
* configure.tgt (alpha*-*-openbsd*): Set gdb_target to obsd.
Richard Henderson [Mon, 10 Jul 2006 15:28:02 +0000 (15:28 +0000)]
* alpha-tdep.h (struct gdbarch_tdep): Add return_in_memory.
* alpha-tdep.c (alpha_register_byte): Remove.
(alpha_extract_struct_value_address): Remove.
(alpha_return_value): New.
(alpha_return_in_memory_always): New.
(alpha_gdbarch_init): Set tdep->return_in_memory. Don't call
set_gdbarch_deprecated_register_byte. Do call set_gdbarch_return_value
instead of set_gdbarch_deprecated_use_struct_convention,
set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
or set_gdbarch_deprecated_extract_struct_value_address.
* alphafbsd-tdep.c (alphafbsd_return_in_memory): Rename from
alphafbsd_use_struct_convention, remove gcc_p argument.
(alphafbsd_init_abi): Set tdep->return_in_memory instead of
set_gdbarch_deprecated_use_struct_convention.
Nick Clifton [Mon, 10 Jul 2006 14:30:41 +0000 (14:30 +0000)]
* po/zh_TW.po: New Chinese (traditional) translation.
* configure.in (ALL_LINGUAS): Add zh_TW.
* configure: Regenerate.
Alan Modra [Mon, 10 Jul 2006 00:00:08 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 10 Jul 2006 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
Mark Kettenis [Sun, 9 Jul 2006 22:01:59 +0000 (22:01 +0000)]
* alphabsd-tdep.h (alphanbsd_regset_from_core_section): New
prototype.
* alphanbsd-tdep.c (alphanbsd_regset_from_core_section): Handle
a.out-style core file format here. Make global.
(alphanbsd_regset_from_core_section): Remove.
(alphanbsd_sigtramp_offset): Make static.
(alphanbsd_aout_init_abi): Remove.
(alphanbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_ELF for
a.out style core files.
(_initialize_alphanbsd_tdep): Do not register a handler for
GDB_OSABI_NETBSD_AOUT.
Mark Kettenis [Sun, 9 Jul 2006 16:12:30 +0000 (16:12 +0000)]
Fix typo.
Mark Kettenis [Sun, 9 Jul 2006 16:12:11 +0000 (16:12 +0000)]
* alphabsd-tdep.h: Tweak comments.
(SIZOEF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove.
* alphanbsd-tdep.c: Reorder includes. Include "regset.h".
(ALPHANBSD_SIZEOF_GREGS, ALPHANBSD_SIZEOF_FPREGS): New defines.
(alphanbsd_supply_fpregset, alphanbsd_supply_gregset)
(alphanbsd_aout_supply_gregset): New functions.
(alphanbsd_gregset, alphanbsd_fpregset, alphanbsd_aout_gregset):
New variables.
(alphanbsd_regset_from_core_section)
(alphanbsd_aout_regset_from_core_section): New functions.
(fetch_core_registers, fetch_elfcore_registers): Remove functions.
(alphanbsd_core_fns, alphanbsd_elf_fns): Remove variables.
(alphanbsd_init_abi): Set regset_from_core_section.
(alphanbsd_aout_init_abi, alphanbsd_core_osabi_sniffer): New
functions.
(_initialize_alphanbsd_tdep): Register NetBSD core file sniffer.
Use alphanbsd_aout_init_abi whre appropriate. Don't call
deprecated_add_core_fns.
* Makefile.in (alphanbsd-tdep.o): Update dependencies.
Mark Kettenis [Sun, 9 Jul 2006 09:24:39 +0000 (09:24 +0000)]
* alphabsd-tdep.c (alphabsd_supply_reg, alphabsd_fill_reg)
(alphabsd_supply_fpreg, alphabsd_fill_fpreg): Add missing spaces.
Mark Kettenis [Sun, 9 Jul 2006 09:21:19 +0000 (09:21 +0000)]
* alphanbsd-tdep.c (alphanbsd_init_abi): Use
svr4_lp64_fetch_link_map_offsets instead of
nbsd_lp64_solib_svr4_fetch_link_map_offsets.
Alan Modra [Sun, 9 Jul 2006 00:00:43 +0000 (00:00 +0000)]
daily update
gdbadmin [Sun, 9 Jul 2006 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Mark Kettenis [Sat, 8 Jul 2006 21:43:00 +0000 (21:43 +0000)]
Wrap long line.
gdbadmin [Sat, 8 Jul 2006 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 8 Jul 2006 00:00:06 +0000 (00:00 +0000)]
daily update
Jim Wilson [Fri, 7 Jul 2006 23:17:55 +0000 (23:17 +0000)]
Add Broadcom SB-1A support.
* config/tc-mips.c (mips_cpu_info_table): Add sb1a.
Mark Kettenis [Fri, 7 Jul 2006 23:10:42 +0000 (23:10 +0000)]
* gdb.arch/alpha-step.exp (test_stepi): Do not include trailing
spaces/tabs in regular expressions since they might not be there.
Andrew Stubbs [Fri, 7 Jul 2006 12:53:47 +0000 (12:53 +0000)]
2006-07-07 Andrew Stubbs <andrew.stubbs@st.com>
* gdb.base/ifelse.exp: New file.
Nick Clifton [Fri, 7 Jul 2006 11:18:51 +0000 (11:18 +0000)]
PR ld/2874
* ld.texinfo: Remove "Using LD" from the title since it is redundant.
gdbadmin [Fri, 7 Jul 2006 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Fri, 7 Jul 2006 00:00:10 +0000 (00:00 +0000)]
daily update
Andrew Stubbs [Thu, 6 Jul 2006 14:00:48 +0000 (14:00 +0000)]
2006-07-06 Andrew Stubbs <andrew.stubbs@st.com>
* parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block
write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type,
write_exp_elt_intern): Zero initialize tmp.
Nick Clifton [Thu, 6 Jul 2006 10:46:46 +0000 (10:46 +0000)]
PR ld/2877
* ld.texinfo: Fix spelling mistakes.
Nick Clifton [Thu, 6 Jul 2006 10:34:02 +0000 (10:34 +0000)]
PR binutils/2877
* doc/as.texi: Fix spelling typo: branchs => branches.
* doc/c-m68hc11.texi: Likewise.
* config/tc-m68hc11.c: Likewise.
Support old spelling of command line switch for backwards compatibility.
Nick Clifton [Thu, 6 Jul 2006 10:04:09 +0000 (10:04 +0000)]
2006-07-06 Mohammed Adnène Trojette <adn@diwi.org>
PR binutils/2875
* doc/binutils.texi (readelf): Fix spelling typo.
Nick Clifton [Thu, 6 Jul 2006 09:49:56 +0000 (09:49 +0000)]
PR binutils/2879
* doc/binutils.texi: Document -T shorthand for --target switch.
* strings.c: Update comment to include -T option.
Alan Modra [Thu, 6 Jul 2006 00:00:06 +0000 (00:00 +0000)]
daily update
gdbadmin [Thu, 6 Jul 2006 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Daniel Jacobowitz [Wed, 5 Jul 2006 19:03:47 +0000 (19:03 +0000)]
gdb/
* remote.c (remote_xfer_partial): Remove KOD support.
* target.h (enum target_object): Remove TARGET_OBJECT_KOD.
* MAINTAINERS: Move Kernel Object Display entry to past maintainers.
* Makefile.in (SFILES, kod_h, COMMON_OBS, kod.o, kod-cisco.o): Remove KOD
support.
* mi/mi-cmds.c (mi_cmds): Remove dummy KOD commands.
* NEWS: Mention KOD.
* kod.h, kod.c, kod-cisco.c: Delete files.
gdb/doc/
* doc/gdb.texinfo (KOD): Remove node.
(GDB/MI Kod Commands): Remove commented out node.
Julian Brown [Wed, 5 Jul 2006 17:08:47 +0000 (17:08 +0000)]
* arm-dis.c (coprocessor): Alter fmsrr disassembly syntax.
Julian Brown [Wed, 5 Jul 2006 17:08:09 +0000 (17:08 +0000)]
* gas/arm/vfp-neon-syntax.d: Tweak expected fmsrr syntax.
* gas/arm/vfp-neon-syntax_t2.d: Likewise.
* gas/arm/vfp2.d: Likewise.
* gas/arm/vfp2_t2.d: Likewise.
Thiemo Seufer [Wed, 5 Jul 2006 16:01:38 +0000 (16:01 +0000)]
* ld-mips-elf/multi-got-1.d, ld-mips-elf/tls-multi-got-1.got,
ld-mips-elf/tls-multi-got-1.r: Update multigot testcases.
Nick Clifton [Wed, 5 Jul 2006 10:21:39 +0000 (10:21 +0000)]
PR ld/2659
* cofflink.c (_bfd_coff_link_input_bfd): Fix selection of aux entry when
multiple definitions of a symbol are encountered.
Alan Modra [Wed, 5 Jul 2006 00:00:10 +0000 (00:00 +0000)]
daily update
gdbadmin [Wed, 5 Jul 2006 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Alexandre Oliva [Tue, 4 Jul 2006 20:31:03 +0000 (20:31 +0000)]
ChangeLog:
* ltconfig: chmod 644 before ranlib during install.
libiberty/ChangeLog:
* Makefile.in: chmod 644 before ranlib during install.
Thiemo Seufer [Tue, 4 Jul 2006 17:22:11 +0000 (17:22 +0000)]
* config/tc-mips.c (s_is_linkonce): New function.
(mips16_mark_labels): Don't adjust mips16 symbol addresses for
weak, external, and linkonce symbols.
(pic_need_relax): Use s_is_linkonce.
Thiemo Seufer [Tue, 4 Jul 2006 16:39:08 +0000 (16:39 +0000)]
* gas/mips/e32-rel2.d, gas/mips/e32-rel4.d: Use -mabi=32 for as.
* gas/mips/mips.exp: Move mips16e testcase to ELF only tests.
Run elf{el}-rel2 and elf-rel4 for all arches with gpr64. Run
e32-rel2 and e32-rel4 also for 64 bit configurations.
Daniel Jacobowitz [Tue, 4 Jul 2006 13:31:31 +0000 (13:31 +0000)]
* remote.c (init_remote_state): Use xrealloc instead of xmalloc.
Nathan Sidwell [Tue, 4 Jul 2006 09:40:28 +0000 (09:40 +0000)]
* gdb.base/huge.c: Allow CRASH_GDB to be set from command
line.
* gdb.base/huge.exp: Loop over compilation to find a size that
is acceptable.
* gdb.base/remote.exp: Correct expected strings.
* gdb.dwarf2/mac-fileno.S: Avoid # comments.
Alan Modra [Tue, 4 Jul 2006 00:00:06 +0000 (00:00 +0000)]
daily update
gdbadmin [Tue, 4 Jul 2006 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Nathan J. Williams [Mon, 3 Jul 2006 17:26:16 +0000 (17:26 +0000)]
2006-07-03 Nathan J. Williams <nathanw@wasabisystems.com>
* bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if
write_files is set.
Paolo Bonzini [Mon, 3 Jul 2006 11:22:03 +0000 (11:22 +0000)]
2006-07-03 Paolo Bonzini <bonzini@gnu.org>
* configure.in: Fix thinkos in previous check-in.
* configure: Regenerate.
Paolo Bonzini [Mon, 3 Jul 2006 09:26:24 +0000 (09:26 +0000)]
2006-07-03 Paolo Bonzini <bonzini@gnu.org>
* configure.in: Fix thinko in previous check-in.
* configure: Regenerate.
Paolo Bonzini [Mon, 3 Jul 2006 07:58:12 +0000 (07:58 +0000)]
2006-07-03 Paolo Bonzini <bonzini@gnu.org>
Sync from gcc:
2007-07-03 Paolo Bonzini <bonzini@gnu.org>
PR other/27063
* configure.in: Test subdir_requires and give an appropriate
error message.
* configure: Regenerate.
2006-06-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
PR target/27540
* configure.in: Only enable libgomp on IRIX 6.
* configure: Regenerate.
Alan Modra [Mon, 3 Jul 2006 00:00:09 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 3 Jul 2006 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
gdbadmin [Sun, 2 Jul 2006 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 2 Jul 2006 00:00:09 +0000 (00:00 +0000)]
daily update
Eli Zaretskii [Sat, 1 Jul 2006 12:34:30 +0000 (12:34 +0000)]
* gdb.texinfo (GDB/MI Output Syntax, GDB/MI Simple Examples)
(GDB/MI Breakpoint Commands, GDB/MI Program Context)
(GDB/MI Thread Commands, GDB/MI Program Execution)
(GDB/MI Stack Manipulation, GDB/MI Variable Objects)
(GDB/MI Data Manipulation, GDB/MI Symbol Query)
(GDB/MI File Commands, GDB/MI Target Manipulation)
(GDB/MI Miscellaneous Commands): Change (@value{GDBP})->(gdb),
since the MI prompt is hard-wired into the code.
Alan Modra [Sat, 1 Jul 2006 00:00:11 +0000 (00:00 +0000)]
daily update
gdbadmin [Sat, 1 Jul 2006 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Nick Roberts [Fri, 30 Jun 2006 21:43:22 +0000 (21:43 +0000)]
(GDB/MI Compatibility with CLI): Qualify more carefully.
(GDB/MI Simple Examples): Use @subheading for "A Bad Command".
(GDB/MI Data Manipulation): Remove description of unimplemented
display related commands as variable objects perform this function
and are superior: -display-delete, -display-disable,
-display-enable, -display-insert and -display-list. Move
-environment-cd, -environment-directory, -environment-path
and -environment-pwd to "Program Context".
(GDB/MI Program Control): Rename to "Program Execution". Move
-exec-arguments -exec-abort to...
(GDB/MI Program Context): ...here. New node split from "Data
Manipulation".
Nick Roberts [Fri, 30 Jun 2006 21:42:03 +0000 (21:42 +0000)]
*** empty log message ***
H.J. Lu [Fri, 30 Jun 2006 14:16:13 +0000 (14:16 +0000)]
bfd/
2006-06-30 H.J. Lu <hongjiu.lu@intel.com>
* elf32-i386.c (elf_i386_relocate_section): Use xchg %ax,%ax
instead of 2 nops.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
(elf64_x86_64_plt0_entry): Use nopl 0(%rax) instead of 4 nops.
ld/testsuite/
2006-06-30 H.J. Lu <hongjiu.lu@intel.com>
* ld-i386/tlsbindesc.dd: Updated to expect xchg %ax,%ax instead
of 2 nops.
* ld-i386/tlsdesc.dd: Likewise.
* ld-i386/tlsgdesc.dd: Likewise.
* ld-x86-64/tlsbindesc.dd: Likewise.
* ld-x86-64/tlsdesc.dd: Likewise.
* ld-x86-64/tlsdesc.pd: Likewise.
* ld-x86-64/tlsgdesc.dd: Likewise.
Nick Clifton [Fri, 30 Jun 2006 13:38:57 +0000 (13:38 +0000)]
* dwarf.c (display_debug_frames): Catch a corrupt length field generating an
end of block address that is beyond the end of the section.
When encountering a corrupt CIE pointer do not reset the start pointer as
more data still has to be read.
Do not warn about user defined call frame instructions.
Alan Modra [Fri, 30 Jun 2006 00:00:08 +0000 (00:00 +0000)]
daily update
gdbadmin [Fri, 30 Jun 2006 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
DJ Delorie [Thu, 29 Jun 2006 18:32:05 +0000 (18:32 +0000)]
* readelf.c (process_section_headers): Add H8/300 support.
Jakub Jelinek [Thu, 29 Jun 2006 12:34:37 +0000 (12:34 +0000)]
PR ld/2513
* elf32-i386.c (GOT_TLS_MASK, GOT_TLS_IE_IE, GOT_TLS_IE_GD,
GOT_TLS_IE_MASK, elf_i386_check_relocs, allocate_dynrelocs): Revert
2006-04-08 changes.
(elf_i386_relocate_section): Likewise. For GD->IE transition
change subl into addl whenever tls_type is GOT_TLS_IE_POS.
* ld-i386/tlsbin.dd: Fix expected output.
gdbadmin [Thu, 29 Jun 2006 00:00:35 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Thu, 29 Jun 2006 00:00:06 +0000 (00:00 +0000)]
daily update
gdbadmin [Wed, 28 Jun 2006 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 28 Jun 2006 00:00:04 +0000 (00:00 +0000)]
daily update
Nick Clifton [Tue, 27 Jun 2006 11:45:21 +0000 (11:45 +0000)]
* emultempl/pe.em (gld_$_open_dynamic_archive): Compute maximum length of
format strings in the libname_fmt[] array, rather than relying upon a
statically chosen value. Adjust xmalloc call to use this longest length.
Nick Clifton [Tue, 27 Jun 2006 08:52:38 +0000 (08:52 +0000)]
(-rpath-link): Clarify distinction between -rpath and -rpath-link.
gdbadmin [Tue, 27 Jun 2006 00:00:37 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 27 Jun 2006 00:00:09 +0000 (00:00 +0000)]
daily update
DJ Delorie [Mon, 26 Jun 2006 20:31:43 +0000 (20:31 +0000)]
* r8c.opc (decode_r8c): Don't bother reading the destination
before moving a constant into it. Fix borrow comparison for SUB.
Alan Modra [Mon, 26 Jun 2006 00:00:36 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 26 Jun 2006 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 25 Jun 2006 00:00:06 +0000 (00:00 +0000)]
daily update
gdbadmin [Sun, 25 Jun 2006 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
H.J. Lu [Sat, 24 Jun 2006 18:25:10 +0000 (18:25 +0000)]
2006-06-24 H.J. Lu <hongjiu.lu@intel.com>
* doc/as.texinfo (Org): Remove space.
(P2align): Add "@var{abs-expr},".
Eli Zaretskii [Sat, 24 Jun 2006 13:48:53 +0000 (13:48 +0000)]
defs.h (DIRNAME_SEPARATOR) [!__CYGWIN__ && _WIN32]: Define to `;'.
Richard Sandiford [Sat, 24 Jun 2006 09:10:04 +0000 (09:10 +0000)]
binutils/testsuite/
* binutils-all/localize-hidden-1.d: Use objdump --syms instead
of readelf.
gdbadmin [Sat, 24 Jun 2006 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 24 Jun 2006 00:00:07 +0000 (00:00 +0000)]
daily update
H.J. Lu [Fri, 23 Jun 2006 21:47:36 +0000 (21:47 +0000)]
gas/
2006-06-23 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (cpu_arch_tune_set): New.
(cpu_arch_isa): Likewise.
(i386_align_code): Use xchg %ax,%ax for 2 byte nop. Optimize
nops with short or long nop sequences based on -march=/.arch
and -mtune=.
(set_cpu_arch): Set cpu_arch_isa. If cpu_arch_tune_set is 0,
set cpu_arch_tune and cpu_arch_tune_flags.
(md_parse_option): For -march=, set cpu_arch_isa and set
cpu_arch_tune and cpu_arch_tune_flags if cpu_arch_tune_set is
0. Set cpu_arch_tune_set to 1 for -mtune=.
(i386_target_format): Don't set cpu_arch_tune.
gas/testsuite/
2006-06-23 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/i386.exp: Run nops-1, nops-1-i386, nops-1-i686,
nops-1-merom, nops-2, nops-2-i386, nops-2-merom, x86-64-nops-1,
x86-64-nops-1-k8, x86-64-nops-1-nocona and x86-64-nops-1-merom.
* gas/i386/nops-1.s: New file.
* gas/i386/nops-2.s: Likewise.
* gas/i386/nops-1-i386.d: Likewise.
* gas/i386/nops-1-i686.d: Likewise.
* gas/i386/nops-1-merom.d: Likewise.
* gas/i386/nops-1.d: Likewise.
* gas/i386/nops-2-i386.d: Likewise.
* gas/i386/nops-2-merom.d: Likewise.
* gas/i386/nops-2.d: Likewise.
* gas/i386/x86-64-nops-1.s: Likewise.
* gas/i386/x86-64-nops-1-k8.d: Likewise.
* gas/i386/x86-64-nops-1-merom.d: Likewise.
* gas/i386/x86-64-nops-1-nocona.d: Likewise.
* gas/i386/x86-64-nops-1.d: Likewise.
* gas/i386/sse2.d: Updated to expect xchg %ax,%ax as 2 byte
nop.
Thiemo Seufer [Fri, 23 Jun 2006 18:31:17 +0000 (18:31 +0000)]
* config/tc-mips.c (nopic_need_relax): Handle -fdata-sections
generated .sbss.* and .gnu.linkonce.sb.*.
Daniel Jacobowitz [Fri, 23 Jun 2006 18:11:47 +0000 (18:11 +0000)]
* configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Set
targ_extra_libpath.
Thiemo Seufer [Fri, 23 Jun 2006 16:26:13 +0000 (16:26 +0000)]
* config/tc-mips.h (TC_SEGMENT_INFO_TYPE): Declare per-segment
label_list.
* config/tc-mips.c (label_list): Define per-segment label_list.
(mips_clear_insn_labels, mips_move_labels, mips16_mark_labels,
append_insn, s_align, s_cons, s_float_cons, s_gpword, s_gpdword,
mips_from_file_after_relocs, mips_define_label): Use per-segment
label_list.
Richard Sandiford [Fri, 23 Jun 2006 16:23:09 +0000 (16:23 +0000)]
binutils/
* objcopy.c (localize_hidden): New variable.
(OPTION_LOCALIZE_HIDDEN): New command_line_switch value.
(copy_options): Add --localize-hidden.
(copy_usage): Mention --localize-hidden.
(is_hidden_symbol): New function.
(filter_symbols): Handle localize_hidden.
(copy_object): Call filter_symbols if localize_hidden.
(copy_main): Handle OPTION_LOCALIZE_HIDDEN.
* doc/binutils.texi (--localize-hidden): Document new option.
binutils/testsuite/
* binutils-all/localize-hidden-1.s,
* binutils-all/localize-hidden-1.d,
* binutils-all/localize-hidden-2.s,
* binutils-all/localize-hidden-2.d: New tests.
* binutils-all/objcopy.exp: Run them.
Daniel Jacobowitz [Fri, 23 Jun 2006 14:30:59 +0000 (14:30 +0000)]
* Makefile.am (ar_DEPENDENCIES, ranlib_DEPENDENCIES)
(dlltool_DEPENDENCIES, windres_DEPENDENCIES): Remove @LEXLIB@.
* Makefile.in: Regenerate.
Daniel Jacobowitz [Fri, 23 Jun 2006 13:01:05 +0000 (13:01 +0000)]
* arm-tdep.c (arm_register_type): Use unsigned types for registers.
Add special types for sp and pc.
* Makefile.in (arm-tdep.o): Update.
Nick Clifton [Fri, 23 Jun 2006 11:20:15 +0000 (11:20 +0000)]
* pe-dll.c (pe_details_type): Add new pointer for symbols list autofilter.
(autofilter_symbollist): Split into autofilter_symbollist_generic and
autofilter_symbollist_i386.
(pe_detail_list): Add autofilter_symbollist_i386 to i386 case and
autofilter_symbollist_generic for all the others.
(autofilter_symbolprefixlist): Moved _fmode, _impure_ptr, cygwin_attach_dll,
cygwin_premain0, cygwin_premain1, cygwin_premain2, cygwin_premain3,
environ, into autofilter_symbollist_i386.
(auto_export): Get autofilter_symbollist from pe_details.
Alan Modra [Fri, 23 Jun 2006 06:04:37 +0000 (06:04 +0000)]
* Makefile.am (*_DEPENDENCIES): Add missing dependencies.
* Makefile.in: Regenerate.
Alan Modra [Fri, 23 Jun 2006 02:58:01 +0000 (02:58 +0000)]
PR ld/2754
* elf.c (bfd_elf_mkobject): Don't alloc if already done. Set
program_header_size to -1.
(_bfd_elf_map_sections_to_segments): Adjust program_header_size check.
(assign_file_positions_for_load_sections ): Likewise.
(_bfd_elf_sizeof_headers): Use saved program_header_size if
available.
* elf32-arm.c (elf32_arm_mkobject): Call bfd_elf_mkobject, don't
alloc if already done.
* elf32-i386.c (elf_i386_mkobject): Likewise.
* elf32-ppc.c (ppc_elf_mkobject): Likewise.
* elf32-s390.c (elf_s390_mkobject): Likewise.
* elf32-sh.c (sh_elf_mkobject): Likewise.
* elf64-alpha.c (elf64_alpha_mkobject): Likewise.
* elf64-ppc.c (ppc64_elf_mkobject): Likewise.
* elf64-s390.c (elf_s390_mkobject): Likewise.
* elf64-x86-64.c (elf64_x86_64_mkobject): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_mkobject): Likewise.
gdbadmin [Fri, 23 Jun 2006 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Fri, 23 Jun 2006 00:00:07 +0000 (00:00 +0000)]
daily update
Daniel Jacobowitz [Thu, 22 Jun 2006 20:31:12 +0000 (20:31 +0000)]
Typo fix.
Daniel Jacobowitz [Thu, 22 Jun 2006 19:57:02 +0000 (19:57 +0000)]
* gdb.base/store.exp: Don't use gdb_suppress_entire_file.
Daniel Jacobowitz [Thu, 22 Jun 2006 19:53:46 +0000 (19:53 +0000)]
* gdb.base/gdb1555.exp: Use gdb_compile_shlib. Skip if not
native.
Daniel Jacobowitz [Thu, 22 Jun 2006 19:50:57 +0000 (19:50 +0000)]
* gdb.stabs/exclfwd.exp: Skip the test if configure did not
enable stabs testing.
Daniel Jacobowitz [Thu, 22 Jun 2006 19:32:41 +0000 (19:32 +0000)]
* auxv.exp: Intercept undefined command messages before
gdb_test_multiple does.
Daniel Jacobowitz [Thu, 22 Jun 2006 19:17:49 +0000 (19:17 +0000)]
Add changelog entry for unintended earlier commit:
* Makefile.in (host_alias): Remove.
(target_alias): Use @target_noncanonical@.
(site.exp): Don't set host_alias.
* aclocal.m4: Remove contents. Include acx.m4.
* configure: Regenerated.
* configure.ac: Use ACX_NONCANONICAL_TARGET.
Daniel Jacobowitz [Thu, 22 Jun 2006 19:17:09 +0000 (19:17 +0000)]
Revert accidental commit.
Nick Clifton [Thu, 22 Jun 2006 16:25:36 +0000 (16:25 +0000)]
PR ld/2757
* emultempl/pe.em (gld_$_after_open): When reporting non PE format output
files mention the file name and the fact that it is an output file.