Commit Graph

47804 Commits

Author SHA1 Message Date
Alan Modra
31d20a2167 * read.c (assign_symbol): Remove const from parm. Fix xcalloc
call.  Don't do the COFF hacks for multi-emulation gas.  Move
	demand_empty_rest_of_line back to caller.
	(s_set, equals): demand_empty_rest_of_line here.
2005-04-09 06:21:19 +00:00
Alan Modra
be95a9c15d PR gas/827
* as.h (rs_dummy): Define.
	* symbols.c (symbol_X_add_number): New function.
	* symbols.h (symbol_X_add_number): Declare.
	* stabs.c (aout_process_stab): Tidy symbol frag setting.
	* read.c (assign_symbol): New function, split out from s_set.
	Use symbol_find_or_make.  Leave fr_type of dummy frag as rs_dummy.
	Fix COFF hacks for multi-emulation gas.
	(s_set): Call assign_symbol.  Remove "register" keyword.
	(set_zero_frag): New function.
	(pseudo_set): Always check for assignment to section syms.
	Always set segment and frag of symbol, and likewise extern for
	aout/bout.  Handle assignment of sym=sym+/-const specially.  Don't
	special case exp.X_add_number non-zero for O_symbol expressions.
	(equals): Use assign_symbol.
2005-04-09 03:48:09 +00:00
Andrew Cagney
f0885a038a Dropping mi. 2005-04-09 02:36:06 +00:00
Andrew Cagney
06e819e3ca 2005-04-08 Andrew Cagney <cagney@gnu.org>
* MAINTAINERS (GDB/MI): Andrew Cagney, Elena Zannoni, and Fernando
	Nasser have decided to step back from GDB/MI.
2005-04-09 00:29:37 +00:00
Alan Modra
a5fb67e34a daily update 2005-04-09 00:00:09 +00:00
gdbadmin
ae70735a18 *** empty log message *** 2005-04-09 00:00:07 +00:00
Bob Wilson
6624cbdeed * config/tc-xtensa.c (xtensa_create_xproperty_segments): Skip
SEC_MERGE sections.
2005-04-08 17:26:42 +00:00
Daniel Jacobowitz
6f8eac0e51 gdb/testsuite/
* Makefile.in (ALL_SUBDIRS): Add gdb.gdbserver.
	* configure.ac: Create gdb.gdbserver/Makefile.
	* configure: Regenerated.
	* lib/gdbserver-support.exp: New file, derived from
	config/gdbserver.exp.
	* config/gdbserver.exp: Use gdbserver-support.exp.
	* gdb.gdbserver/Makefile.in: New file.
	* gdb.gdbserver/server.c: New file.
	* gdb.gdbserver/server-run.exp: New file.
gdb/
	* config/fnchange.lst: Add testsuite/gdb.gdbserver entries.
2005-04-08 12:57:00 +00:00
Daniel Jacobowitz
0228dfb97d * dwarf2-frame.c (struct dwarf2_frame_cache): New field
undefined_retaddr.
	(dwarf2_frame_cache): Initialize undefined_retaddr.
	(dwarf2_frame_this_id): Return an invalid frame ID if
	undefined_retaddr.
2005-04-08 12:10:21 +00:00
Paul Brook
8f6277f5c0 2005-04-08 Paul Brook <paul@codesourcery.com>
* elf32-arm.c (ARM2THUMB_GLUE_SIZE): Rename...
	(ARM2THUMB_STATIC_GLUE_SIZE): ... to this.
	(ARM2THUMB_PIC_GLUE_SIZE): Define.
	(a2t1p_ldr_insn, a2t2p_add_pc_insn, a2t3p_bx_r12_insn): Add.
	(elf32_arm_to_thumb_stub): Create PIC stubs.
	(record_arm_to_thumb_glue): Use different stub size for relocatable
	images.
2005-04-08 11:47:59 +00:00
Alan Modra
f8569bd74f daily update 2005-04-08 00:00:06 +00:00
gdbadmin
5b43a50348 *** empty log message *** 2005-04-08 00:00:02 +00:00
Nick Clifton
187ffe9590 Include ldexp.h and ldlang.h so that ldfile.h can use the lang_input_statement
type.
2005-04-07 14:07:33 +00:00
H.J. Lu
dbbaec2634 gas/
2005-04-06  H.J. Lu  <hongjiu.lu@intel.com>

	* config/tc-i386.c (tc_gen_reloc): Don't turn
	BFD_RELOC_X86_64_32S into BFD_RELOC_32.

gas/testsuite/

2005-04-06  H.J. Lu  <hongjiu.lu@intel.com>

	* gas/i386/x86-64-pcrel.s: Test R_X86_64_32S.
	* gas/i386/x86-64-pcrel.d: Updated.
2005-04-07 00:53:22 +00:00
gdbadmin
7a46909329 *** empty log message *** 2005-04-07 00:00:33 +00:00
Alan Modra
23a64347c9 daily update 2005-04-07 00:00:06 +00:00
Paul Gilliam
6e87504dd4 test_compiler_info: Return compiler_info if no arguments are given. 2005-04-06 21:38:48 +00:00
Jim Blandy
21b4b2f28c Move construction of IA-32 vector types to i386-tdep.c.
* gdbtypes.c (build_builtin_type_vec64i,
build_builtin_type_vec128i): Delete functions.
(builtin_type_vec64i, builtin_type_vec128i): Delete variables.
(build_gdbtypes): Don't initialize them.
(_initialize_gdbtypes): Don't register GDBARCH swap entries for
them.
* gdbtypes.h (builtin_type_vec64i, builtin_type_vec128i): Delete
declarations.
(builtin_type_v2_float, builtin_type_v2_int32,
builtin_type_v4_int16, builtin_type_v8_int8,
builtin_type_v2_double, builtin_type_v4_float,
builtin_type_v2_int64, builtin_type_v4_int32,
builtin_type_v8_int16, builtin_type_v16_int8): Add extern
declarations.
* i386-tdep.c (i386_mmx_type, i386_sse_type): New variables.
(i386_build_mmx_type, i386_build_sse_type): New functions.
(i386_register_type): Call them, rather than referring to
builtin_type_vec64i and builtin_type_vec128i.
2005-04-06 17:01:25 +00:00
Nick Clifton
0d6af1ab0d po/rw.po: New translation: Kinyarwanda
configure.in (ALL_LINGUAS): Add rw
2005-04-06 15:42:14 +00:00
Jakub Jelinek
7222318829 2005-04-06 Jakub Jelinek <jakub@redhat.com>
* ldlang.c: Formatting.
	(walk_wild_consider_section): Remember return value from wildcardp.
	(is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
	(wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.

2005-04-06  Robert O'Callahan  <rocallahan@novell.com>

	* ld.h (lean_section_userdata_type): Remove.
	(fat_section_userdata_type): Remove file field.
	(SECTION_USERDATA_SIZE): Remove.
	* ldlang.c (init_os): Eliminate initialization of unused
	lean_section_userdata_type.

	* ldlang.h (callback_t, walk_wild_section_handler_t): New
	typedefs.
	(struct lang_wild_statement_struct): Add walk_wild_section_handler
	and handler_data fields.
	* ldlang.c (callback_t): Removed.
	(walk_wild_consider_section, walk_wild_section_general,
	section_iterator_callback, find_section, is_simple_wild,
	match_simple_wild, walk_wild_section_specs1_wild0,
	walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
	walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
	wild_spec_can_overlap, analyze_walk_wild_section_handler): New
	functions.
	(lang_add_wild): Call analyze_walk_wild_section_handler.
	(walk_wild_section): Renamed to walk_wild_section_general and
	created a wrapper function.
	(section_iterator_callback_data): New typedef.
2005-04-06 15:33:03 +00:00
H.J. Lu
52f3cf45e3 2005-04-06 Nick Clifton <nickc@redhat.com>
H.J. Lu  <hongjiu.lu@intel.com>

	* po/rw.po: New translation: Kinyarwanda.
	* configure.in (ALL_LINGUAS): Add rw.
	* configure: Regenerate.
2005-04-06 14:45:54 +00:00
Paolo Bonzini
a7254363a2 2005-04-06 Paolo Bonzini <bonzini@gnu.org>
* Makefile.tpl (BUILD_CONFIGARGS): Include --with-build-subdir.
	(TARGET_CONFIGARGS): Include --with-target-subdir.
	(configure, all): New macros.  Use them throughout.
2005-04-06 06:23:22 +00:00
gdbadmin
28854a1ee3 *** empty log message *** 2005-04-06 00:00:37 +00:00
Alan Modra
7a481748b8 daily update 2005-04-06 00:00:08 +00:00
Bob Wilson
664df4e44e * config/tc-xtensa.c (branch_align_power): New.
(xtensa_find_unaligned_branch_targets, get_aligned_diff,
	future_alignment_required): Use branch_align_power to check section
	alignment as well as xtensa_fetch_width when aligning branch targets.
2005-04-05 23:37:34 +00:00
Bob Wilson
d77b99c958 * config/tc-xtensa.c: Warning fixes throughout.
(xtensa_fetch_width): Change to unsigned.
	(assemble_nop, xtensa_find_unaligned_branch_targets,
	xtensa_find_unaligned_loops, xg_assemble_vliw_tokens,
	is_narrow_branch_guaranteed_in_range, xtensa_fix_close_loop_end_frags,
	min_bytes_to_other_loop_end, unrelaxed_frag_min_size,
	unrelaxed_frag_max_size, xtensa_fix_short_loop_frags,
	count_insns_to_loop_end, unrelaxed_frag_min_insn_count,
	get_text_align_max_fill_size, get_text_align_nop_count,
	get_text_align_nth_nop_size, get_noop_aligned_address,
	get_aligned_diff, convert_frag_align_next_opcode,
	convert_frag_immed_finish_loop, xtensa_create_property_segments,
	xtensa_create_xproperty_segments, xt_block_aligned_size): Clean up
	types, avoiding size_t and using offsetT and addressT appropriately.
	(get_text_align_power): Clean up types.  Avoid incorrect bound.
	(get_text_align_fill_size): Clean up types.  Restructure for clarity.
2005-04-05 20:55:40 +00:00
Alan Modra
8c1d1bb8a2 * elf64-ppc.c (dec_dynrel_count): New function split out from
ppc64_elf_edit_toc, with additional code from ppc64_elf_edit_opd.
	(ppc64_elf_edit_toc, ppc64_elf_edit_opd): Use it.
	(ppc64_elf_tls_optimize): Likewise.
2005-04-05 12:16:38 +00:00
Paolo Bonzini
a8637a7db7 2005-04-05 Paolo Bonzini <bonzini@gnu.org>
* Makefile.tpl: Sync with gcc.
	* Makefile.in: Regenerate.
2005-04-05 08:16:33 +00:00
Nick Clifton
8c1017202f Provide .wcookie section for OpenBSD/sparc64. 2005-04-05 08:01:18 +00:00
Nick Clifton
429cc0ae05 New translation: Kinyarwanda 2005-04-05 07:58:41 +00:00
Richard Sandiford
cc2e31b90b * elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME_P): New macro.
(_bfd_mips_elf_section_from_shdr): Use it to check for recognized
	SHT_MIPS_OPTIONS names.  Allow all sections with unrecognised
	section flags.
	(_bfd_mips_elf_fake_sections): Use MIPS_ELF_OPTIONS_SECTION_NAME_P
	to check for SHT_MIPS_OPTIONS sections.
	(_bfd_mips_elf_set_section_contents): Likewise.
2005-04-05 07:35:12 +00:00
Eric Christopher
8236346f46 2005-04-04 Eric Christopher <echristo@redhat.com>
* elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents):
	Clean up gp handling code.
2005-04-05 06:58:46 +00:00
H.J. Lu
da9f89d4e2 bfd/
2005-04-04  H.J. Lu  <hongjiu.lu@intel.com>

	* elf.c (bfd_elf_set_group_contents): Ignore linker created
	group section.
	(assign_section_numbers): Accept link_info. Check SHT_GROUP
	sections for relocatable files only. Remove the linker created
	group sections.
	(_bfd_elf_compute_section_file_positions): Pass link_info to
	assign_section_numbers.

	* elfxx-ia64.c (elfNN_ia64_object_p): New.
	(elf_backend_object_p): Defined.

gas/

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

	* config/tc-ia64.c (start_unwind_section): Undo the change
	of 2004-08-18.
	(generate_unwind_image, dot_endp): Likewise.
2005-04-05 04:01:12 +00:00
H.J. Lu
7e4111adb2 2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
* elf.c (bfd_elf_set_group_contents): Ignore linker created
	group section.
2005-04-05 02:47:18 +00:00
gdbadmin
87a89b235f *** empty log message *** 2005-04-05 00:00:33 +00:00
Alan Modra
794406d6bf daily update 2005-04-05 00:00:05 +00:00
DJ Delorie
6e933b4716 merge from gcc 2005-04-04 21:00:49 +00:00
Nick Clifton
ae99769bfc Condense the two tests into one and add a "-M entry:" for the second label. 2005-04-04 17:20:29 +00:00
H.J. Lu
96982dc91f 2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
* elf-bfd.h (elf_section_data): Use (sec) instead of sec.
2005-04-04 16:11:02 +00:00
Andreas Schwab
418a8fcaa2 Fix typo. 2005-04-04 16:06:26 +00:00
Maciej W. Rozycki
a8b683fc5e * readelf.c (debug_apply_rela_addends): Reorder r_info as
necessary for 64-bit MIPS.
2005-04-04 15:07:18 +00:00
Maciej W. Rozycki
470e4bd1c2 * doc/binutils.texi (readelf): Remove a duplicate paragraph. 2005-04-04 14:56:12 +00:00
Nick Clifton
34875e6487 Add a check for <unistd.h> providing a prototype for getopt() which is compatible
with the one in	include/getopt.h.  If so then define HAVE_DECL_GETOPT.
2005-04-04 11:27:16 +00:00
Nick Clifton
661f7c357e Add a check to see if the section for the symbol is chosen using
process_section_p.
2005-04-04 10:32:28 +00:00
Nick Clifton
9494d73902 Initialise value to zero to avoid a compile time warning. 2005-04-04 10:09:52 +00:00
Alan Modra
ec74bb7502 daily update 2005-04-04 00:00:05 +00:00
gdbadmin
c79ce99e72 *** empty log message *** 2005-04-04 00:00:02 +00:00
Fred Fish
a13afe8eb5 Apply patch for binutils bug 806, approved by nickc@redhat.com.
2005-04-03  Fred Fish  <fnf@specifixinc.com>
	* dwarf2.c (struct dwarf2_debug): Add dwarf_ranges_buffer and
	dwarf_ranges_size members.
	(struct comp_unit): Add base_address member.
	(struct funcinfo): Replace low/high members with an arange.
	(arange_add): Replace incoming "unit" parameter with "abfd" and
	"first_arange" pointers.  Reorganize/rewrite function body.
	(decode_line_info): Change arange_add call to pass bfd and arange
	pointers.
	(lookup_address_in_line_info_table): Use arange list instead of
	individual low/high members.  Walk function's arange list to find
	lowest PC in list, to test for overlapping functions.
	(read_debug_ranges): New function, reads the debug_ranges section.
	(lookup_address_in_function_table): Use arange list instead of
	individual low/high members.  Rewrite to find smallest range that
	matches.
	(read_rangelist): Read a given rangelist from debug_ranges.
	(scan_unit_for_functions): Use arange list instead of individual
	low/high members.  Handle a DW_AT_ranges attribute.
	(parse_comp_unit): Use arange list instead of individual low/high
	members.  Save comp unit base address.  Handle a DW_AT_ranges
	attribute.
2005-04-03 20:36:37 +00:00
DJ Delorie
14a88c496b merge from gcc 2005-04-03 04:41:10 +00:00
Alan Modra
26dae57f14 daily update 2005-04-03 00:00:05 +00:00