Commit Graph

52525 Commits

Author SHA1 Message Date
Alan Modra 05e7221f06 * symbols.c (symbol_create, symbol_clone): Don't set udata.p. 2006-11-08 06:31:39 +00:00
gdbadmin 499f04a3c1 *** empty log message *** 2006-11-08 00:00:35 +00:00
David Daney df1f3cdab5 gas:
* config/tc-mips.c (pic_need_relax): Return true for section symbols.

gas/testsuite:
	* gas/mips/elf-rel26.s: New test.
	* gas/mips/elf-rel26.d: Ditto.
	* gas/mips/mips.exp: Run it.
2006-11-07 23:55:36 +00:00
Alan Modra 3181e5dc7c daily update 2006-11-07 22:58:54 +00:00
Thiemo Seufer 09d969392e * gentmap.c: Fix compile time warning. 2006-11-07 19:29:59 +00:00
Thiemo Seufer 7e12978101 * sim-base.h (text_start, text_end, start_addr): Use bfd_vma type
for bfd text addresses.
2006-11-07 19:07:41 +00:00
Ian Lance Taylor 645f81233b Add Elf_file interface which can be used by both Sized_relobj and
Sized_dynobj.
2006-11-07 18:51:39 +00:00
Julian Brown 9e59254c41 * floatformat.c (get_field): Fix segfault with little-endian word
order on 64-bit hosts.
	(put_field): Likewise.
	(min): Move definition.
2006-11-07 15:17:40 +00:00
Thiemo Seufer 02f97da761 * dsp.igen (do_w_op): Fix compiler warning. 2006-11-07 14:59:49 +00:00
Daniel Jacobowitz f2a9dd69a9 * elf32-arm.c (find_thumb_glue): Add ERROR_MESSAGE argument; set it
on error.
	(find_arm_glue): Likewise.
	(elf32_thumb_to_arm_stub, elf32_arm_create_thumb_stub)
	(elf32_arm_to_thumb_stub, elf32_arm_final_link_relocate): Add
	ERROR_MESSAGE argument and pass it through.
	(elf32_arm_to_thumb_export_stub): Update.
	(elf32_arm_relocate_section): Use ERROR_MESSAGE and reloc_dangerous.
2006-11-07 14:57:45 +00:00
Ian Lance Taylor f0641a0b38 Rework stringpool and hash tables so that we always generate the same
output regardless of randomize_va_space.
2006-11-07 04:40:46 +00:00
Alan Modra 7c8fe5c480 * elf64-ppc.c (enum _ppc64_sec_type): New.
(struct _ppc64_elf_section_data): Move "t_symndx" into opd union,
	and rename fields.  Add sec_type and has_14bit_branch.
	(struct ppc_link_hash_table): Remove has_14bit_branch.
	(get_opd_info, get_tls_mask, ppc64_elf_edit_opd): Adjust.
	(ppc64_elf_relocate_section): Likewise.
	(ppc64_elf_check_relocs): Likewise.  Set per-section has_14bit_branch.
	(ppc64_elf_size_stubs): Don't set default group size here.
	(group_sections): Instead do so here, and group sections using
	their individual requirements.
2006-11-07 03:34:52 +00:00
Alan Modra b3fac117e3 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Remove "has_dotsym"
and union.
	(struct ppc_link_hash_entry): Add "next_dot_sym".
	(struct ppc_link_hash_table): Add "dot_syms".
	(link_hash_newfunc): Make list of syms starting with a dot.
	(ppc_get_stub_entry, adjust_opd_syms): Adjust.
	(ppc64_elf_add_symbol_hook): Don't set has_dotsym.
	(struct add_symbol_adjust_data): Delete.
	(add_symbol_adjust): Simplify params and return.
	(ppc64_elf_check_directives): Just process the "dot_syms" lists,
	not all syms.
2006-11-07 03:24:13 +00:00
gdbadmin 2f23e1502e *** empty log message *** 2006-11-07 00:00:33 +00:00
Jim Blandy e5192dd81c 2006-11-06 Jim Blandy <jimb@codesourcery.com>
* (dwarf_expr_read_reg): Use frame_register_read, not frame_register.
	* dwarf2loc.c (dwarf_expr_read_reg): Use frame_register_read
	instead of frame_register.  Doc fix.
2006-11-06 23:20:12 +00:00
Alan Modra fd034a2f3f daily update 2006-11-06 22:58:55 +00:00
Ian Lance Taylor f6ce93d6e9 Split Object into Dynobj and Relobj, incorporate elfcpp swapping changes. 2006-11-06 22:46:08 +00:00
Ian Lance Taylor 8d9455b422 Rework swapping code. 2006-11-06 22:45:08 +00:00
Daniel Jacobowitz 000ef4f0ec * server.c (handle_query): Correct error handling for read_auxv. 2006-11-06 21:50:32 +00:00
Thiemo Seufer 821001857f * doc/c-mips.texi (-march): Document sb1a. 2006-11-06 15:05:40 +00:00
Thiemo Seufer a360e743fb * config/tc-mips.c (mips_cpu_info_table): Remove 24k/24ke aliases.
34k always has DSP ASE.
2006-11-06 14:28:21 +00:00
Vladimir Prus 7d0317c40f 2006-11-06 Vladimir Prus <vladimir@codesourcery.com>
* testsuite/ld-elf/symbol1ref.s: Use ".dc.a" instead
       of ".long".
2006-11-06 12:15:35 +00:00
Vladimir Prus bc251d509b * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Don't prepend "warning" to the message.
	* testsuite/ld-elf/warn2.d: New.
	* testsuite/ld-elf/symbol2w.s: New.
	* testsuite/ld-elf/symbol2ref.s: New.
2006-11-06 10:39:17 +00:00
Alan Modra a9353e608e * ppc-opc.c: Restore COM to mfcr wrongly removed 2003-07-04. 2006-11-06 00:46:07 +00:00
gdbadmin f09801072e *** empty log message *** 2006-11-06 00:00:04 +00:00
Alan Modra c996113b94 daily update 2006-11-05 22:58:55 +00:00
Hans-Peter Nilsson c70cf8c0a1 * ld-cris/ldsym1.d: Adjust for semi-recent ld changes. 2006-11-05 19:15:32 +00:00
gdbadmin 8a3b477701 *** empty log message *** 2006-11-05 00:00:02 +00:00
Alan Modra 583b392675 daily update 2006-11-04 22:58:57 +00:00
Vladimir Prus 8b9e3a1523 2006-11-04 Vladimir Prus <vladimir@codesourcery.com>
* serial.c (serial_open): Strip leading spaces from program
       name when opening pipe.
2006-11-04 08:37:24 +00:00
gdbadmin f4f5eb403f *** empty log message *** 2006-11-04 00:00:32 +00:00
Alan Modra e5bab8fed6 daily update 2006-11-03 22:58:59 +00:00
Jim Blandy 4bc9efe119 2006-11-03 Jim Blandy <jimb@codesourcery.com>
* dwarf2loc.c (dwarf_expr_read_reg): Use frame_unwind_register
        instead of frame_register.  Doc fix.
2006-11-03 22:09:28 +00:00
Ian Lance Taylor 652ec9bd89 Ignored the -m option, for old linker compatibility. 2006-11-03 18:48:03 +00:00
Ian Lance Taylor dd32f77868 Update for line number changes. 2006-11-03 18:41:59 +00:00
Ian Lance Taylor 593f47df45 gcc 3.2.2 portability hacks. 2006-11-03 18:38:43 +00:00
Ian Lance Taylor ead1e4244a Can now do a full static link of hello, world in C or C++ 2006-11-03 18:26:11 +00:00
Thiemo Seufer 58ea3d6a2f Fix typo in comment. 2006-11-03 16:32:04 +00:00
Thiemo Seufer 648178740a * config/tc-mips.c (md_pcrel_from_section): Disallow PC relative
MIPS16 instructions referencing other sections, unless they are
	external branches.
2006-11-03 16:27:41 +00:00
Thiemo Seufer 7764b3958e * config/tc-mips.c (mips_cpu_info_table): The 25Kf is a MIPS64
release 1 CPU.
2006-11-03 12:36:40 +00:00
Jakub Jelinek 9b8ae42e78 * dw2gencfi.c (struct fde_entry): Add per_encoding, lsda_encoding,
personality and lsda.
	(struct cie_entry): Add per_encoding, lsda_encoding and personality.
	(alloc_fde_entry): Initialize per_encoding and lsda_encoding.
	(cfi_pseudo_table): Handle .cfi_personality and .cfi_lsda.
	(dot_cfi_personality, dot_cfi_lsda, encoding_size): New functions.
	(output_cie): Output personality including its encoding and LSDA encoding.
	(output_fde): Output LSDA.
	(select_cie_for_fde): Don't share CIE if personality, its encoding or
	LSDA encoding are different.  Copy the 3 fields from fde_entry to
	cie_entry.
	* doc/as.texinfo (.cfi_personality, .cfi_lsda): Document.

	* gas/cfi/cfi-common-6.d: New test.
	* gas/cfi/cfi-common-6.s: New.
	* gas/cfi/cfi.exp: Add cfi-common-6 test.
2006-11-03 07:29:37 +00:00
Jakub Jelinek ae424f8246 * subsegs.h (struct frchain): Add frch_cfi_data field.
* dw2gencfi.c: Include subsegs.h.
	(cur_fde_data, last_address, cur_cfa_offset, cfa_save_stack): Removed.
	(struct frch_cfi_data): New type.
	(unused_cfi_data): New variable.
	(alloc_fde_entry): Move cur_fde_data, last_address, cur_cfa_offset
	and cfa_save_stack static vars into a structure pointed from
	each frchain.
	(alloc_cfi_insn_data, cfi_new_fde, cfi_end_fde, cfi_set_return_column,
	cfi_add_advance_loc, cfi_add_CFA_def_cfa, cfi_add_CFA_def_cfa_offset,
	cfi_add_CFA_remember_state, cfi_add_CFA_restore_state, dot_cfi,
	dot_cfi_escape, dot_cfi_startproc, dot_cfi_endproc, cfi_finish):
	Likewise.

	* gas/cfi/cfi-common-5.d: New test.
	* gas/cfi/cfi-common-5.s: New.
	* gas/cfi/cfi.exp: Add cfi-common-5 test.
2006-11-03 07:27:39 +00:00
Daniel Jacobowitz b1e24c0220 bfd/
* libbfd-in.h (_bfd_clear_contents): New prototype.
	* reloc.c (_bfd_clear_contents): New.
	* libbfd.h: Regenerated.

	* elf32-arm.c (elf32_arm_final_link_relocate): Use
	_bfd_clear_contents.
	* elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
	* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
	* elf32-i386.c (elf_i386_relocate_section): Likewise.
	* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
	* elf32-s390.c (elf_s390_relocate_section): Likewise.
	* elf32-sh.c (sh_elf_relocate_section): Likewise.
	* elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
	* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
	* elf64-s390.c (elf_s390_relocate_section): Likewise.
	* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
	* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.

	* elfxx-ia64.c (elfNN_ia64_relocate_section): Set value to
	zero for discarded symbols.
	* elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
ld/testsuite/
	* ld-discard/zero-rel.d, ld-discard/zero-rel.s: New files.
2006-11-03 00:58:10 +00:00
gdbadmin 5c38167b2c *** empty log message *** 2006-11-03 00:00:33 +00:00
Alan Modra 22d55fa78f daily update 2006-11-02 22:59:00 +00:00
Daniel Jacobowitz d1e50f8a7e * config/tc-h8300.c (build_bytes): Fix const warning. 2006-11-02 21:39:56 +00:00
Daniel Jacobowitz 31ffec4870 * dwarf2read.c (struct dwarf2_per_cu_data): Update comment.
(load_full_comp_unit): Take OBJFILE argument and use it.
	(dwarf2_build_psymtabs_hard): Skip partial units.
	(process_queue): Pass OBJFILE to load_full_comp_unit.  Check
	type_hash for read in CUs.  Test psymtab for NULL.
2006-11-02 21:34:07 +00:00
Daniel Jacobowitz 625b50039a * arm-tdep.c (arm_gdbarch_init): Handle EF_ARM_EABI_VER5. 2006-11-02 21:32:22 +00:00
Thiemo Seufer b9d58d7191 [ bfd/ChangeLog ]
* elf-bfd.h (local_call_stubs): New member.
	* elfxx-mips.c (FN_STUB_P, CALL_STUB_P, CALL_FP_STUB_P): New macros.
	(mips_elf_calculate_relocation): Handle local mips16 call stubs.
	(mips16_stub_section_p): Rename from mips_elf_stub_section_p, use
	the new stub macros.
	(_bfd_mips_elf_check_relocs): Handle call stubs for code which
	mixes mips16 and mips32 functions. Use mips16_stub_section_p. Mark
	used stubs with SEC_KEEP. Use the new stub macros.

	[ gas/testsuite/ChangeLog ]
	* gas/mips/mips16-intermix.d, gas/mips/mips16-intermix.s: New
	testcase.
	* gas/mips/mips.exp: Run new testcase.

	[ ld/testsuite/ChangeLog ]
	* ld-mips-elf/mips16-intermix-1.s, ld-mips-elf/mips16-intermix-2.s,
	ld-mips-elf/mips16-intermix.d: New testcase.
	* ld-mips-elf/mips-elf.exp (mips16_intermix_test): Run new testcases.
2006-11-02 15:20:31 +00:00
gdbadmin 325a4b61ce *** empty log message *** 2006-11-02 00:00:02 +00:00