Commit Graph

54801 Commits

Author SHA1 Message Date
Alan Modra b9da616afe * srec.c (srec_canonicalize_symtab): Don't alloc when symcount
is zero.  Correct return value on error.
	* mmo.c (mmo_canonicalize_symtab): Likewise.
	* binary.c (binary_canonicalize_symtab) Correct return on error.
2007-07-26 11:13:59 +00:00
Thiemo Seufer c2c966314b * bfd.c (_bfd_set_gp_value): Use abort instead of BFD_FAIL. 2007-07-26 11:05:23 +00:00
Maciej W. Rozycki 9ceb0b4c1d * MAINTAINERS (Write After Approval): Add myself. 2007-07-26 10:37:41 +00:00
Maciej W. Rozycki c80a96a874 gdb/:
* Makefile.in (MAKEHTMLFLAGS): Also search the current directory
for include files.

gdb/doc/:
* Makefile.in (MAKEHTMLFLAGS): Also search the current directory
for include files.
2007-07-26 10:34:00 +00:00
Alan Modra d494715016 * reloc.c (bfd_generic_get_relocated_section_contents): Avoid
bfd_canonicalize_reloc call when bfd_get_reloc_upper_bound
	says there are no relocs.
2007-07-26 09:37:13 +00:00
Nick Clifton bd210d54db Speed up bfd_dwarf2_find_line.
* dwarf2.c (struct dwarf2_debug): Add new fields to support function and variable info hash tables. Add last_comp_unit, info_hash_count, funcinfo_hash_table, varinfo_hash_table, hash_units_head.
  (struct comp_unit): Add prev_unit, cached.
  (struct info_list_node, struct info_hash_entry, struct info_hash_table): New.
  (info_hash_table_newfunc, create_info_hash_table, insert_info_hash_table, lookup_info_hash_table): New functions implementing function and variable info hash tables.
  (scan_unit_for_symbols): Add checks to make sure hash tables are consistent with compilation units.
  (comp_unit_maybe_decode_line_info): New function.
  (comp_unit_find_line): Use comp_unit_maybe_decode_line_info.
  (reverse_funcinfo_list, reverse_varinfo_list, comp_unit_hash_info, info_hash_lookup_funcinfo, info_hash_lookup_varinfo, stash_maybe_update_info_hash_table, stash_verify_info_hash_table, stash_maybe_enable_info_hash_tables, stash_find_line_fast): New functions. Make use of info hash tables to speed up bfd_dwarf2_find_line.
  (find_line): Use hash table for faster lookup if it is turned on.
  Also add code to maintain bi-directional link in comp units.
2007-07-26 08:31:03 +00:00
Michael Snyder 353c55748a 2007-07-25 Michael Snyder <msnyder@access-company.com>
* coffgen.c (_bfd_coff_get_external_symbols): Nothing to be done
	if size == 0; return and avoid possible null pointer issues.
2007-07-26 02:01:49 +00:00
Alan Modra d429448cf8 daily update 2007-07-26 00:00:07 +00:00
gdbadmin 861da52811 *** empty log message *** 2007-07-26 00:00:04 +00:00
Daniel Jacobowitz f91c3144f9 * ld-cdtest/cdtest-foo.cc (strncpy): Fix parameter name. 2007-07-25 21:30:59 +00:00
Bob Wilson d12f9798ef * config/tc-xtensa.c (xtensa_extui_opcode): New.
(xg_expand_assembly_insn): Check for invalid extui operands.
        (md_begin): Initialize xtensa_extui_opcode.
2007-07-25 17:33:27 +00:00
Maciej W. Rozycki 5b31182830 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary". 2007-07-25 15:25:14 +00:00
Nick Clifton 98c503ac20 PR 4824
* ld.texinfo (Options): Extend the description of the -O command line option.
2007-07-25 14:56:22 +00:00
Paul Brook d08ec38351 2007-06-29 Paul Brook <paul@codesourcery.com>
* ld-arm/arm-elf.exp (armelftests): Add callweak.
	* ld-arm/callweak.d: New test.
	* ld-arm/callweak.s: New test.
2007-07-25 14:39:48 +00:00
Ben Elliston 642c7534bd * Makefile.in (CFILES): Remove ternary.c.
(REQUIRED_OFILES): Remove ./ternary.o.
	(INSTALLED_HEADERS): Remove ternary.h.
	(ternary.o): Remove.
	* ternary.c: Remove.
2007-07-25 06:36:27 +00:00
Ben Elliston cd12e26dbd * ternary.h: Remove. 2007-07-25 06:34:29 +00:00
Michael Snyder f52df7d9b7 2007-07-23 Michael Snyder <msnyder@access-company.com>
* solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
	'buffer' must cover both branches that call strcmp (Coverity).
2007-07-25 02:12:33 +00:00
Michael Snyder 55765a25f6 2007-07-05 Michael Snyder <msnyder@access-company.com>
* stack.c (print_frame_args): Check return value of lookup_symbol.
2007-07-25 00:28:25 +00:00
gdbadmin 4cff3c28a3 *** empty log message *** 2007-07-25 00:00:33 +00:00
Alan Modra 7124a847c2 daily update 2007-07-25 00:00:17 +00:00
Alan Modra f08c429c32 warning fix 2007-07-24 23:38:13 +00:00
Michael Snyder 747f3d1889 2007-07-24 Michael Snyder <msnyder@access-company.com>
* ax-gdb.c (find_field): Guard against null ptr.
2007-07-24 22:49:44 +00:00
H.J. Lu 6baf377280 2007-07-24 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (main): Print a newline after copyright notice.
2007-07-24 20:17:18 +00:00
Michael Snyder f6eea5aed8 2007-07-23 Michael Snyder <msnyder@access-company.com>
* opncls.c (bfd_make_writable): Check return from bfd_malloc.
2007-07-24 19:58:06 +00:00
Michael Snyder d0f16d5ece 2007-07-24 Michael Snyder <msnyder@access-company.com>
* elflink.c (bfd_elf_final_link): Avoid redundant frees -- return
	on bfd_malloc error rather than goto error_return.
2007-07-24 19:54:01 +00:00
Nick Clifton 9b9966104b * pep.sc: Correct ctor/dtor sentinels for 64-bit targets. 2007-07-24 14:47:44 +00:00
Ulrich Weigand 69ae91d311 * regformats/reg-spu.dat: Fix order of npc, id registers. 2007-07-24 12:51:51 +00:00
Ulrich Weigand 98646950ba * target.c (memory_xfer_partial): Accesses to unmapped overlay
sections should always go to the executable file.
2007-07-24 12:49:24 +00:00
Nick Clifton 94226e8246 * ld-arm/arm-elf.exp: Move EABI attribute tests into EABI only section. 2007-07-24 12:45:58 +00:00
Nick Clifton 9ce0cf5607 * config/tc-mep.h (skip_whitespace): Remove definition. 2007-07-24 12:38:35 +00:00
Nick Clifton 60bca95a91 * readelf.c (NUM_ELEM): Remove redundant macro; replace references to it
with references to ARRAY_SIZE.
  Add support for CR16.
  Fix formatting.
2007-07-24 12:32:49 +00:00
Alan Modra 4d269e42e3 * elflink.c (_bfd_elf_link_just_syms, merge_sections_remove_hook,
_bfd_elf_merge_sections, _bfd_elf_link_hash_newfunc,
	_bfd_elf_link_hash_copy_indirect, _bfd_elf_link_hash_hide_symbol,
	_bfd_elf_link_hash_table_init, _bfd_elf_link_hash_table_create,
	bfd_elf_set_dt_needed_name, bfd_elf_get_dyn_lib_class,
	bfd_elf_set_dyn_lib_class, bfd_elf_get_needed_list,
	bfd_elf_get_runpath_list, bfd_elf_get_dt_soname,
	bfd_elf_get_bfd_needed_list, struct elf_symbuf_symbol,
	struct elf_symbuf_head, struct elf_symbol, elf_sort_elf_symbol,
	elf_sym_name_compare, elf_create_symbuf,
	bfd_elf_match_symbols_in_sections,
	_bfd_elf_match_sections_by_type): Move to here..
	* elf.c: ..from here.
2007-07-24 08:09:20 +00:00
gdbadmin f3c7bcacb1 *** empty log message *** 2007-07-24 00:00:33 +00:00
Alan Modra 685b3d2680 daily update 2007-07-24 00:00:06 +00:00
Kevin Buettner 2b97317d48 * lib/mi-support.exp (mi_gdb_target_load): Do a "kill" prior
to restarting SID.
2007-07-23 22:53:27 +00:00
H.J. Lu 4b91b5ac43 Don't remove gas/i386/x86-64-nops-1-k8.d. 2007-07-23 20:25:46 +00:00
H.J. Lu 76bc74dc40 gas/
2007-07-23  H.J. Lu  <hongjiu.lu@intel.com>

	* config/tc-i386.c (cpu_arch): Change i386 to PROCESSOR_I386.
	(f32_15): Removed.
	(jump_31): New.
	(f32_patt): Remove f32_15.
	(f16_patt): Likewise.
	(i386_align_code): Updated to alt_long_patt for 64bit by
	default.

	* config/tc-i386.h (processor_type): Add PROCESSOR_I386.

2007-07-23  Evandro Menezes  <evandro.menezes@amd.com>

	* config/tc-i386.c (i386_align_code): Enable alignment up to
	MAX_MEM_FOR_RS_ALIGN_CODE bytes.  Remove special treatment
	for K8.

	* config/tc-i386.h (MAX_MEM_FOR_RS_ALIGN_CODE): Changed to
	31.

gas/testsuite/

2007-07-23  H.J. Lu  <hongjiu.lu@intel.com>

	* gas/i386/i386.exp: Run nops16-1, nops-1-i386-i686, nops-1-k8,
	nops-3-i386, nops-4, nops-4-i386, x86-64-nops-2, x86-64-nops-3,
	x86-64-nops-4, x86-64-nops-4-core2 and x86-64-nops-4-k8.

	* gas/i386/nops-1-i386-i686.d: New.
	* gas/i386/nops-1-k8.d: Likewise.
	* gas/i386/nops-3-i386.d : Likewise.
	* gas/i386/nops-3-i686.d: Likewise.
	* gas/i386/nops-4-i386.d: Likewise.
	* gas/i386/nops-4.d: Likewise.
	* gas/i386/nops16-1.d: Likewise.
	* gas/i386/nops16-1.s: Likewise.
	* gas/i386/x86-64-nops-1-k8.d: Likewise.
	* gas/i386/x86-64-nops-2.d: Likewise.
	* gas/i386/x86-64-nops-3.d: Likewise.
	* gas/i386/x86-64-nops-4-core2.d: Likewise.
	* gas/i386/x86-64-nops-4-k8.d: Likewise.
	* gas/i386/x86-64-nops-4.d: Likewise.

	* gas/i386/nops-1-i386.d: Updated.
	* gas/i386/nops-1-i686.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/nops-3.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/x86-64-nops-1.s: Removed.

2007-07-23  Evandro Menezes  <evandro.menezes@amd.com>
	    H.J. Lu  <hongjiu.lu@intel.com>

	* gas/i386/i386.exp: Don't run x86-64-nops-1-k8. Run
	nops-3-i686 and nops-4-i686.

	* gas/i386/nops-3-i686.d: New.
	* gas/i386/nops-4-i686.d: Likewise.
	* gas/i386/nops-4.s: Likewise.

	* gas/i386/x86-64-nops-1-k8.d: Removed.
2007-07-23 20:03:23 +00:00
DJ Delorie acf3a81396 merge from gcc 2007-07-23 18:01:25 +00:00
Richard Sandiford dc89df6af0 gas/testsuite/
* lib/gas-defs.exp (run_list_test): Make the options optional.
	* gas/cr16/cr16.exp (run_list_test): Delete.
2007-07-23 14:03:33 +00:00
Richard Sandiford eb07545517 Remove unnecessary symbols from last commit. 2007-07-23 10:04:01 +00:00
Richard Sandiford a26587bab5 bfd/
* elflink.c (_bfd_elf_fix_symbol_flags): Only assert the type
	of weakdef->root.type if weakdef has no regular definition.

ld/testsuite/
	* ld-elf/weak-dyn-1a.s, ld-elf/weak-dyn-1b.s, ld-elf/weak-dyn-1.ld,
	* ld-elf/weak-dyn-1.rd: New test.
	* ld-elf/elf.exp: Run it.
2007-07-23 09:56:19 +00:00
Alan Modra 07a5aea53e daily update 2007-07-23 00:00:06 +00:00
gdbadmin 77998c0ee0 *** empty log message *** 2007-07-23 00:00:03 +00:00
Adam Nemet 0e53d9daab * elfxx-mips.c (struct mips_elf_link_hash_table): Add new field
small_data_overflow_reported.
	(_bfd_mips_elf_link_hash_table_create): Initialize it.
	(_bfd_mips_elf_relocate_section) <bfd_reloc_overflow>: Report
	small-data section overflow.
2007-07-22 16:45:06 +00:00
Alan Modra 9516781d06 daily update 2007-07-22 00:00:05 +00:00
gdbadmin f884085217 *** empty log message *** 2007-07-22 00:00:02 +00:00
Nick Clifton 60b8eb3127 * sha1.h: Change to use version 3 of the GNU General Public License and tidy up formatting.
* sha1.c: Likewise.
2007-07-21 08:55:49 +00:00
gdbadmin 07446469bc *** empty log message *** 2007-07-21 00:00:33 +00:00
Alan Modra 8dcdf3b7aa daily update 2007-07-21 00:00:05 +00:00
Maciej W. Rozycki 193774b320 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
prologue instructions.
2007-07-20 17:29:59 +00:00