Commit Graph

51752 Commits

Author SHA1 Message Date
Nick Clifton 9d7cbccda0 PR binutils/2983
* bfd/elf64-x86-64.c: Add FreeBSD support.
  (elf64_x86_64_fbsd_post_process_headers): New function.
* bfd/targets.c (_bfd_target_vector): Add bfd_elf64_x86_64_freebsd_vec.
* bfd/config.bfd (x64_64-*-freebsd*): Add bfd_elf64_x86_64_freebsd_vec to the targ_selvecs.
* bfd/configure.in: Add entry for bfd_elf64_x86_64_freebsd_vec.
* bfd/configure: Regenerate.
* gas/config/tc-i386.c (md_parse_option): Treat any target starting with elf64_x86_64 as a viable target for the -64 switch.
  (i386_target_format): For 64-bit ELF flavoured output use ELF_TARGET_FORMAT64.
* gas/config/tc-i386.h (ELF_TARGET_FORMAT64): Define.
* ld/emulparams/elf_x86_64_fbsd.sh (OUTPUT_FORMAT): Define as elf64-x86-64-freebsd.
2006-08-02 16:25:14 +00:00
Nick Clifton c973bc5cd4 PR gas/2991
* acinclude.m4 (BFD_BINARY_FOPEN): Import this function from bfd/aclocal.m4.
* configure.in: Run BFD_BINARY_FOPEN.
* configure: Regenerate.
* as.h: Look at USE_BINARY_FOPEN to decide which fopen-*.h header file to include.
2006-08-02 14:26:07 +00:00
Thiemo Seufer 8717790563 * linux-thread-db.c (thread_db_get_thread_local_address): Fix type
mismatch.
	* tui/tui-stack.c (tui_show_frame_info): Likewise.
2006-08-02 10:24:00 +00:00
Thiemo Seufer 172553c733 * readelf.c (dump_relocations): Handle MIPS-specific
SHN_MIPS_SCOMMON and SHN_MIPS_SUNDEFINED.
	(get_symbol_index_type): Similarly.
2006-08-02 09:45:12 +00:00
Daniel Jacobowitz 0cbfa4ee32 * stabs.texinfo (Member Type Descriptor): Correct example for
pointer to member types.
2006-08-02 03:31:21 +00:00
Daniel Jacobowitz a22229c4cd * c-exp.y (type): Remove incorrect pointer to member case.
* objc-exp.y (type): Likewise.
	* p-exp.y (type): Likewise.
2006-08-02 03:13:20 +00:00
gdbadmin 02c21251a2 *** empty log message *** 2006-08-02 00:00:36 +00:00
Alan Modra ea1d80f35a daily update 2006-08-02 00:00:06 +00:00
Daniel Jacobowitz 837c599de6 * gdb.base/cursal.exp: Add "" to gdb_load call. 2006-08-01 22:57:49 +00:00
Mark Kettenis 7c00367c28 * arm-tdep.h (enum struct_return): New.
(struct gdbarch_tdep): Add struct_return member.
* arm-tdep.c (arm_return_value): Return
RETURN_VALUE_STRUCT_CONVENTION for aggregates when the ABI uses
pcc_struct_return.
(arm_gdbarch_init): Default to reg_struct_return.
* armobsd-tdep.c (armobsd_init_abi): Set pcc_struct_return.
2006-08-01 18:27:52 +00:00
H.J. Lu cfde7f7078 gas/
2006-08-01  H.J. Lu  <hongjiu.lu@intel.com>

	* config/tc-i386.c (md_assemble): Don't update
	cpu_arch_isa_flags.

gas/testsuite/

2006-08-01  H.J. Lu  <hongjiu.lu@intel.com>

	* gas/i386/nops-2-i386.d: Updated.
	* gas/i386/nops-2-merom.d: Likewise.
	* gas/i386/nops-2.d: Likewise.
2006-08-01 17:54:28 +00:00
H.J. Lu 12d814e1a0 ld/
2006-08-01  H.J. Lu  <hongjiu.lu@intel.com>

	* ldlang.c (init_os): Add flags. Replace bfd_make_section with
	bfd_make_section_with_flags.
	(exp_init_os): Updated.
	(lang_add_section): Call init_os with flags.
	(map_input_to_output_sections): Likewise.

ld/testsuite/

2006-08-01  H.J. Lu  <hongjiu.lu@intel.com>

	* ld-elf/noload-1.d: New.
	* ld-elf/noload-1.s: Likewise.
	* ld-elf/noload-1.t: Likewise.
2006-08-01 17:50:52 +00:00
Thiemo Seufer b4c71f5629 * config/tc-mips.c (md_section_align): Check ELF-ness at runtime. 2006-08-01 07:58:22 +00:00
Thiemo Seufer 54f4ddb3c6 * config/tc-mips.c (macro_build_lui): Fix comment formatting.
(md_apply_fix): Likewise. Unify handling of BFD_RELOC_RVA,
	BFD_RELOC_32 and BFD_RELOC_16.
	(s_align, s_cpload, s_cplocal, s_cprestore, s_mips_stab,
	md_convert_frag, md_obj_end): Fix comment formatting.
2006-08-01 05:49:02 +00:00
gdbadmin ae55530d3d *** empty log message *** 2006-08-01 00:00:33 +00:00
Alan Modra 8ff61369d0 daily update 2006-08-01 00:00:06 +00:00
Mark Kettenis 4816ec693b * alpha-tdep.h (ALPHA_S0_REGNUM): New define.
* alphabsd-nat.c: Include <sys/types.h>, <sys/signal.h>,
<machine/pcb.h> and "bsd-kvm.h".
(alphabsd_supply_pcb): New function.
(_initialize_alphabsd_nat): Enable libkvm interface.
* Makefile.in (alphabsd-nat.o): Update dependencies.
* config/alpha/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
(LOADLIBES): New variable.
* config/alpha/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
(LOADLIBES): New variable.
2006-07-31 20:15:50 +00:00
Fred Fish 35d5d4ee3d Reviewed by Daniel Jacobowitz <drow@false.org>
2006-07-31  Fred Fish  <fnf@specifix.com>
	* arm-tdep.c (arm_make_prologue_cache): Use FRAME_OBSTACK_ZALLOC
	instead of calling frame_obstack_zalloc directly.
	(arm_make_stub_cache): Ditto.
	* frame-unwind.h: Ditto.
	* frame.c (create_new_frame): Ditto.
2006-07-31 17:33:30 +00:00
Thiemo Seufer d103cf6117 * config/tc-mips.c (md_apply_fix, tc_gen_reloc): Remove special
handling for BFD_RELOC_MIPS16_JMP.
2006-07-31 17:23:31 +00:00
gdbadmin 4b65dc6e93 *** empty log message *** 2006-07-31 00:00:33 +00:00
Alan Modra 8030bc2458 daily update 2006-07-31 00:00:05 +00:00
Alan Modra ceae135c3d daily update 2006-07-30 00:00:05 +00:00
gdbadmin 0429061277 *** empty log message *** 2006-07-30 00:00:02 +00:00
Mark Kettenis 8dd4540b7d * gdb.asm/asm-source.exp: Add alpha-*-netbsd* to the list of
NetBSD/ELF targets.
2006-07-29 19:15:00 +00:00
Richard Sandiford 777b13b958 opcodes/
* m68k-opc.c (m68k_opcodes): Fix operand specificer in the Coldfire
	"fdaddl" entry.

gas/testsuite/
	* gas/m68k/mcf-fpu.s: Add tests for all addressing modes.
	* gas/m68k/mcf-fpu.d: Update accordingly.
2006-07-29 08:55:38 +00:00
Richard Sandiford 73934d319d ld/
* Makefile.am (eelf32b4300.c): Update dependencies.
	(eelf32bmip.c): Likewise.
	(eelf32bsmip.c): Likewise.
	(eelf32btsmip.c): Likewise.
	(eelf32btsmipn32.c): Likewise.
	(eelf32ltsmip.c): Likewise.
	(eelf32ltsmipn32.c): Likewise.
	(eelf32ebmip.c): Likewise.
	(eelf32ebmipvxworks.c): Likewise.
	(eelf32elmip.c): Likewise.
	(eelf32elmipvxworks.c): Likewise.
	(eelf32bmipn32.c): Likewise.
	(eelf32lmip.c): Likewise.
	(eelf32mipswindiss.c): Likewise.
	(eelf32lsmip.c): Likewise.
	(eelf64bmip.c): Likewise.
	(eelf64btsmip.c): Likewise.
	(eelf64ltsmip.c): Likewise.
	(emipsbig.c): Likewise.  Canonicalize ${GENSCRIPTS} line.
	(emipsbsd.c): Likewise.
	(emipsidt.c): Update dependencies.
	(emipsidtl.c): Likewise.
	(emipslit.c): Likewise.
	(emipslnews.c): Likewise.
	(emipspe.c): Likewise.  Fix ${GENSCRIPTS} invocation.
	* Makefile.in: Regenerate.
	* emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define.
	* emulparams/elf32bmipn32-defs.sh (EXTRA_EM_FILE): Likewise.
	* emultempl/irix.em: Include emultempl/mipself.em.
	* emultempl/mipself.em: New file.

ld/testsuite/
	* ld-mips-elf/hash1.s, ld-mips-elf/hash1a.d,
	* ld-mips-elf/hash1b.d, ld-mips-elf/hash1c.d: New tests.
	* ld-mips-elf/mips-elf.exp: Run them.
2006-07-29 08:48:15 +00:00
Alan Modra 07082420d7 daily update 2006-07-29 00:00:10 +00:00
gdbadmin e1eaa37962 *** empty log message *** 2006-07-29 00:00:02 +00:00
gdbadmin 07115db979 *** empty log message *** 2006-07-28 00:00:33 +00:00
Alan Modra a7e7686c6a daily update 2006-07-28 00:00:11 +00:00
Bob Wilson 0f9e5f32ca * MAINTAINERS (Write After Approval): Add myself. 2006-07-27 23:02:56 +00:00
Daniel Jacobowitz e896d70e97 * main.c (captured_main): Print a newline after calling
print_gdb_version instead of waiting until after the symbol file
	has been read.  Adjust error_pre_print, quit_pre_print, and
	warning_pre_print values.
2006-07-27 21:31:40 +00:00
Daniel Jacobowitz f58b68aaee * irix5-nat.c (fetch_core_registers): Simplify and correct logic. 2006-07-27 21:27:12 +00:00
Daniel Jacobowitz 159f81f32f * target.h (target_read_stralloc): New prototype.
* target.c (target_read_alloc_1): Renamed from target_read_alloc.
	Take new PADDING argument.
	(target_read_alloc): Use it.
	(target_read_stralloc): New function.
2006-07-27 21:23:42 +00:00
DJ Delorie a7d421b815 merge from gcc 2006-07-27 18:05:31 +00:00
Daniel Jacobowitz 9f2e1e6389 * server.c (handle_query): Correct qPart to qXfer. 2006-07-27 00:06:12 +00:00
Daniel Jacobowitz 40e57cf227 * remote.c (remote_protocol_features): Correct qPart to qXfer. 2006-07-27 00:06:02 +00:00
gdbadmin ee5bb91ef1 *** empty log message *** 2006-07-27 00:00:35 +00:00
Alan Modra 5961aae260 daily update 2006-07-27 00:00:06 +00:00
Andreas Schwab f72c3e6bda * elfxx-ia64.c (elfNN_ia64_choose_gp): Use rawsize if set. 2006-07-26 19:56:16 +00:00
Alan Modra 252e386ec7 * elf.c (elf_modify_segment_map): Delete empty PT_LOAD segments.
* elf32-xtensa.c (elf_xtensa_modify_segment_map): Delete.
	(define elf_backend_modify_segment_map): Don't define.
2006-07-26 12:32:27 +00:00
Alan Modra 00bb149b28 * emultempl/elf-generic.em (map_segments): Reorganise loop so that
layout happens before segment map.  Don't do segment map on
	relocatable link.
2006-07-26 12:27:12 +00:00
Alan Modra a7f651f7f2 * ld-scripts/overlay-size-map.d: Update. 2006-07-26 05:10:05 +00:00
Alan Modra 66e28d60cb * ldexp.c (fold_name <LOADADDR>): Use the lma.
* ldlang.h (lang_memory_region_type): Delete old_length.  Add
	last_os.
	* ldlang.c (lang_memory_region_lookup): Init new field.
	(lang_reset_memory_regions): Reset new field.
	(lang_insert_orphan): Don't set load_base.
	(lang_leave_overlay): Likewise.
	(lang_size_sections_1): Delete unnecessary code setting lma_region
	to region.  Correct lma region check.
	(lang_do_assignments_1): Rename output_section_statement parm
	to current_os.  Set lma from previous section in region.
2006-07-26 05:05:52 +00:00
Alan Modra 329c1c8685 * ldlang.c: Formatting. 2006-07-26 00:42:33 +00:00
Bob Wilson b2f2897591 * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections):
Set discarded section's output_section to bfd_abs_section_ptr.
2006-07-26 00:10:26 +00:00
Alan Modra 8bfba64fd7 daily update 2006-07-26 00:00:05 +00:00
gdbadmin 5c998c53f5 *** empty log message *** 2006-07-26 00:00:02 +00:00
Thiemo Seufer 6085129af6 * ld-mips-elf/mips16-call-global-2.s,
ld-mips-elf/mips16-call-global-3.s, ld-mips-elf/mips16-call-global.d:
	Improve test robustness.
2006-07-25 16:45:55 +00:00
Alan Modra 7544697a28 * ldlang.c (analyze_walk_wild_section_handler): Init handler_data
earlier.
2006-07-25 14:45:17 +00:00