Commit Graph

51570 Commits

Author SHA1 Message Date
Hans-Peter Nilsson 73724cd71b * ld-cris/libdso-2.d: Adjust for recent hash-related changes. 2006-07-11 21:47:41 +00:00
Mark Kettenis 24c4176016 * alpha-tdep.h (ALPHA_INSN_SIZE): New define. 2006-07-11 20:44:53 +00:00
Alan Modra f95c03496d daily update 2006-07-11 00:00:09 +00:00
gdbadmin 3a8d5cabee *** empty log message *** 2006-07-11 00:00:02 +00:00
Jakub Jelinek fdc90cb46b 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.
2006-07-10 21:40:25 +00:00
Mark Kettenis 8a112c90fe * 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.
2006-07-10 19:40:27 +00:00
Richard Henderson 9823e921f2 * 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.
2006-07-10 15:28:02 +00:00
Nick Clifton b83ef3ee25 * po/zh_TW.po: New Chinese (traditional) translation.
* configure.in (ALL_LINGUAS): Add zh_TW.
* configure: Regenerate.
2006-07-10 14:30:41 +00:00
Alan Modra 9c5302bf58 daily update 2006-07-10 00:00:08 +00:00
gdbadmin 86f110ebce *** empty log message *** 2006-07-10 00:00:04 +00:00
Mark Kettenis b0ca857365 * 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.
2006-07-09 22:01:59 +00:00
Mark Kettenis 3b03cc4361 Fix typo. 2006-07-09 16:12:30 +00:00
Mark Kettenis 3beabdb233 * 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.
2006-07-09 16:12:11 +00:00
Mark Kettenis 8fe7c54bf1 * alphabsd-tdep.c (alphabsd_supply_reg, alphabsd_fill_reg)
(alphabsd_supply_fpreg, alphabsd_fill_fpreg): Add missing spaces.
2006-07-09 09:24:39 +00:00
Mark Kettenis 789f3b5fdc * alphanbsd-tdep.c (alphanbsd_init_abi): Use
svr4_lp64_fetch_link_map_offsets instead of
nbsd_lp64_solib_svr4_fetch_link_map_offsets.
2006-07-09 09:21:19 +00:00
Alan Modra 2ea0c3d63b daily update 2006-07-09 00:00:43 +00:00
gdbadmin 76da99c545 *** empty log message *** 2006-07-09 00:00:32 +00:00
Mark Kettenis 071d802b19 Wrap long line. 2006-07-08 21:43:00 +00:00
gdbadmin 2ce22c7895 *** empty log message *** 2006-07-08 00:00:33 +00:00
Alan Modra cc4481ed9a daily update 2006-07-08 00:00:06 +00:00
Jim Wilson 1e85aad828 Add Broadcom SB-1A support.
* config/tc-mips.c (mips_cpu_info_table): Add sb1a.
2006-07-07 23:17:55 +00:00
Mark Kettenis 1dff4b6426 * gdb.arch/alpha-step.exp (test_stepi): Do not include trailing
spaces/tabs in regular expressions since they might not be there.
2006-07-07 23:10:42 +00:00
Andrew Stubbs 40d2e0e326 2006-07-07 Andrew Stubbs <andrew.stubbs@st.com>
* gdb.base/ifelse.exp: New file.
2006-07-07 12:53:47 +00:00
Nick Clifton 71ba23f64d PR ld/2874
* ld.texinfo: Remove "Using LD" from the title since it is redundant.
2006-07-07 11:18:51 +00:00
gdbadmin 006be5553c *** empty log message *** 2006-07-07 00:00:33 +00:00
Alan Modra 34e7de0217 daily update 2006-07-07 00:00:10 +00:00
Andrew Stubbs 09153d5527 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.
2006-07-06 14:00:48 +00:00
Nick Clifton ba1be17eab PR ld/2877
* ld.texinfo: Fix spelling mistakes.
2006-07-06 10:46:46 +00:00
Nick Clifton 1370e33d0d 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.
2006-07-06 10:34:02 +00:00
Nick Clifton d95ef3ab53 2006-07-06 Mohammed Adnène Trojette <adn@diwi.org>
PR binutils/2875
* doc/binutils.texi (readelf): Fix spelling typo.
2006-07-06 10:04:09 +00:00
Nick Clifton 3bf31ec932 PR binutils/2879
* doc/binutils.texi: Document -T shorthand for --target switch.
* strings.c: Update comment to include -T option.
2006-07-06 09:49:56 +00:00
Alan Modra 790d799eb2 daily update 2006-07-06 00:00:06 +00:00
gdbadmin a67c4fa97c *** empty log message *** 2006-07-06 00:00:03 +00:00
Daniel Jacobowitz 2ec3381a43 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.
2006-07-05 19:03:47 +00:00
Julian Brown e8b42ce4f8 * arm-dis.c (coprocessor): Alter fmsrr disassembly syntax. 2006-07-05 17:08:47 +00:00
Julian Brown c5cfaa43af * 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.
2006-07-05 17:08:09 +00:00
Thiemo Seufer de4f2349c5 * 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.
2006-07-05 16:01:38 +00:00
Nick Clifton cfc9dfb123 PR ld/2659
* cofflink.c (_bfd_coff_link_input_bfd): Fix selection of aux entry when
  multiple definitions of a symbol are encountered.
2006-07-05 10:21:39 +00:00
Alan Modra f48c3cdcaa daily update 2006-07-05 00:00:10 +00:00
gdbadmin 9fad7183e1 *** empty log message *** 2006-07-05 00:00:02 +00:00
Alexandre Oliva 6816f9950e ChangeLog:
* ltconfig: chmod 644 before ranlib during install.
libiberty/ChangeLog:
* Makefile.in: chmod 644 before ranlib during install.
2006-07-04 20:31:03 +00:00
Thiemo Seufer 5f0fe04bc5 * 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.
2006-07-04 17:22:11 +00:00
Thiemo Seufer cd9260d951 * 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.
2006-07-04 16:39:08 +00:00
Daniel Jacobowitz 7fca722e51 * remote.c (init_remote_state): Use xrealloc instead of xmalloc. 2006-07-04 13:31:31 +00:00
Nathan Sidwell f6c957d29d * 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.
2006-07-04 09:40:28 +00:00
Alan Modra 725fbf6c1d daily update 2006-07-04 00:00:06 +00:00
gdbadmin f8f148971e *** empty log message *** 2006-07-04 00:00:03 +00:00
Nathan J. Williams 4a35b02aee 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.
2006-07-03 17:26:16 +00:00
Paolo Bonzini 1f3f1bbf04 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
* configure.in: Fix thinkos in previous check-in.
	* configure: Regenerate.
2006-07-03 11:22:03 +00:00
Paolo Bonzini 3d3adb43fa 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
* configure.in: Fix thinko in previous check-in.
	* configure: Regenerate.
2006-07-03 09:26:24 +00:00