Commit Graph

5708 Commits

Author SHA1 Message Date
Alan Modra b58c1539ac daily update 2006-12-06 23:00:06 +00:00
Alan Modra 747ffa7b00 * elf64-alpha.c (elf64_alpha_merge_symbol_attribute): New function.
(elf_backend_merge_symbol_attribute): Define.
2006-12-06 07:25:29 +00:00
Alan Modra 2bb5b437d4 daily update 2006-12-05 23:00:08 +00:00
Alan Modra 6029d36813 daily update 2006-12-04 23:00:09 +00:00
Jan Beulich eb3d5f3b94 bfd/
2006-12-04  Jan Beulich  <jbeulich@novell.com>

	* elflink.c (_bfd_elf_link_create_dynamic_sections): Don't create
	.eh_frame_hdr section from here anymore.
	(bfd_elf_size_dynamic_sections): Call _bfd_elf_maybe_strip_eh_frame_hdr
	a little earlier.

ld/
2006-12-04  Jan Beulich  <jbeulich@novell.com>

	* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Create
	.eh_frame_hdr section here.

ld/testsuite/
2006-12-04  Jan Beulich  <jbeulich@novell.com>

	* ld-elf/eh-frame-hdr.d: New.
	* ld-elf/eh-frame-hdr.s: New.
	* ld-ia64/tlsbin.dd, ld-ia64/tlsbin.sd: Don't depend on exact linkage
	table layout.
2006-12-04 08:57:09 +00:00
Alan Modra a0bf3e8a28 daily update 2006-12-03 23:00:08 +00:00
Alan Modra ddae5004ad daily update 2006-12-02 23:00:06 +00:00
Alan Modra 451bcc0a96 daily update 2006-12-01 23:00:09 +00:00
H.J. Lu 945c025aaf 2006-12-01 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/3609
	* elf.c (rewrite_elf_program_header): Preserve segment physical
	address in the output segment if the first section in the
	corresponding input segment is null.
2006-12-01 15:55:29 +00:00
Nick Clifton 55d55ac712 PR 3609
* elf.c (rewrite_elf_program_header): Do not use the first_section pointer if it is null.
2006-12-01 12:28:18 +00:00
Alan Modra 2621033b5d daily update 2006-11-30 23:00:12 +00:00
Alan Modra 9ae0b229c8 daily update 2006-11-29 23:00:08 +00:00
Paul Brook 0eaedd0eb6 2006-11-29 Paul Brook <paul@codesourcery.com>
bfd/
	* elf32-arm.c (elf32_arm_to_thumb_export_stub): Assert that output
	section is present.
	(allocate_dynrelocs): Only add export stub for symbols defined in
	this object.
2006-11-29 17:40:29 +00:00
Paul Brook 004ae5266b 2006-11-29 Paul Brook <paul@codesourcery.com>
Julian Brown  <julian@codesourcery.com>

	bfd/
	* elf32-arm.c (copy_eabi_attributes): Correct starting offset.
	(elf32_arm_merge_eabi_attributes): Mark output as initialized.
	Only set Tag_CPU_name and Tag_ABI_PCS_R9_use if input attribute
	is present.
2006-11-29 15:50:06 +00:00
Alan Modra 3cbbd48c8a daily update 2006-11-28 23:00:07 +00:00
Alan Modra eb1a93576a daily update 2006-11-27 23:00:08 +00:00
Bob Wilson 2caa7ca0aa bfd/
* elf32-xtensa.c (elf_xtensa_special_sections): Add .xtensa.info.
gas/
	* config/tc-xtensa.c (XSHAL_ABI): Add default definition.
	(directive_state): Disable scheduling by default.
	(xtensa_add_config_info): New.
	(xtensa_end): Call xtensa_add_config_info.
gas/testsuite/
	* gas/elf/section2.e-xtensa: New file.
	* gas/elf/elf.exp: Use it.
include/
	* xtensa-config.h (XSHAL_ABI): New.
	(XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New.
ld/
	* emultempl/xtensaelf.em (XSHAL_ABI): Add default definition.
	(replace_insn_sec_with_prop_sec): Use bfd_make_section_with_flags.
	Delete redundant code to set sections flags and alignment.
	(xt_config_info_unpack_and_check, check_xtensa_info): New.
	(elf_xtensa_after_open): Iterate over input statements instead of
	link_info.input_bfds.
	(elf_xtensa_before_allocation): Likewise.  Call check_xtensa_info for
	each input, and write a new .xtensa.info section in the output.
2006-11-27 20:14:53 +00:00
Alan Modra 11ad3c50b3 daily update 2006-11-26 23:00:07 +00:00
Alan Modra 281e524f11 daily update 2006-11-25 23:00:08 +00:00
H.J. Lu 9f17e2a6cd 2006-11-24 H.J. Lu <hongjiu.lu@intel.com>
* elf.c (IS_SECTION_IN_INPUT_SEGMENT): New.
	(INCLUDE_SECTION_IN_SEGMENT): Use IS_SECTION_IN_INPUT_SEGMENT.
	(rewrite_elf_program_header): Don't preserve segment physical
	address in the output segment if the first section in the
	corresponding input segment is removed.
2006-11-25 00:38:14 +00:00
Alan Modra 486ca4a420 daily update 2006-11-24 23:00:05 +00:00
Alan Modra cdc276993b daily update 2006-11-23 23:00:06 +00:00
Alan Modra 666571e8fe daily update 2006-11-22 23:00:06 +00:00
Alan Modra 833fb04eb8 * pef.c (bfd_pef_make_empty_symbol): Delete function. Define instead.
* xsym.c (bfd_sym_make_empty_symbol): Likewise.
	* xsym.h (bfd_sym_make_empty_symbol): Delete.
2006-11-22 03:33:51 +00:00
Greg McGary 4fe5ca5b13 * elf32-ppc.c (ppc_elf_relocate_section): Fixup D field
at proper offset in little-endian mode.
	* elf64-ppc.c (ppc_elf_relocate_section): Likewise.
2006-11-22 00:12:30 +00:00
Alan Modra 19a3a98b69 daily update 2006-11-21 23:00:07 +00:00
Jakub Jelinek bce613b9bf * elf-eh-frame.c (struct cie): New type.
(cie_compare): Removed.
	(cie_eq, cie_hash, cie_compute_hash): New functions.
	(_bfd_elf_discard_section_eh_frame): Rewrite not to rely on FDEs
	pointing only to last CIE and allow merging of any duplicate CIEs,
	not just duplicate consecutive CIEs.
	(_bfd_elf_discard_section_eh_frame_hdr): Delete cies hash table.
	* elf-bfd.h (struct cie_header, struct cie): Removed.
	(struct eh_frame_sec_info): Remove alloced field.
	(struct eh_frame_hdr_info): Remove last_cie, last_cie_sec
	and last_cie_inf fields.  Add cies field.

	* ld-elf/eh5.d: New test.
	* ld-elf/eh5.s: New file.
	* ld-elf/eh5a.s: New file.
	* ld-elf/eh5b.s: New file.
2006-11-21 11:25:17 +00:00
Alan Modra 344b021b85 daily update 2006-11-20 23:00:07 +00:00
Alan Modra 74633dd074 * bfd-in.h (struct stat): Don't typedef.
* bfdio.c (bfd_get_size): Return a file_ptr.
	* cisco-core.c (cisco_core_file_validate): Use bfd_size_type for nread.
	* mmo.c (mmo_scan): Use file_ptr for curpos.
	* trad-core.c (trad_unix_core): Don't cast statbuf.st_size to
	unsigned long.
	* bfd-in2.h: Regenerate.
2006-11-20 02:09:56 +00:00
Alan Modra 98f0b6ab8c PR 3532
* bfd-in.h (struct bfd_hash_table): Reorganize.  Add "frozen".
	* hash.c (bfd_hash_table_init_n): Init frozen.
	(bfd_hash_lookup): Don't grow if frozen.
	(bfd_hash_traverse): Freeze hash table during traversal.
	* bfd-in2.h: Regenerate.
2006-11-20 01:38:38 +00:00
Alan Modra 478a2350ed daily update 2006-11-19 23:00:07 +00:00
Alan Modra 7f762562fe daily update 2006-11-18 23:00:06 +00:00
Alan Modra 3218c4ac02 daily update 2006-11-17 23:00:08 +00:00
Alan Modra c2370991ed * elflink.c (_bfd_elf_check_kept_section): Test for kept group
section.  Save result of checks in kept_section.
	(_bfd_elf_section_already_linked): Tidy.  Correct comments.
	Ignore all group member sections.  Handle special matching of
	single-member groups against linkonce sections via their group
	section.  When such a match is found, set kept_section to the
	group member section rather than to the group.
2006-11-17 13:55:41 +00:00
Alan Modra 50ad8cbf69 daily update 2006-11-16 23:00:10 +00:00
Alan Modra 90ed2bd7fc daily update 2006-11-15 22:58:48 +00:00
Nick Clifton b9c3a42a93 Add changelog entry for previous delta 2006-11-15 15:18:04 +00:00
Alan Modra 866dcbf333 daily update 2006-11-14 22:58:48 +00:00
Nick Clifton 6c73cbb1d9 * peXXigen.c: Updates for PE/COFF V8.0, and clarification
(dir_names): Added CLR Runtime Header to dir_names[].
  (_bfd_XX_print_private_bfd_data_common): Added EFI_ROM and XBOX subsystem names
  (_bfd_XXi_swap_aouthdr_in, _bfd_XXi_swap_aouthdr_out)
  (pe_print_idata, pe_print_edata)
  (_bfd_XX_bfd_copy_private_bfd_data_common)
  (_bfd_XXi_final_link_postscript): Use #DEFINEs for index into DataDirectory.
* pe.h: Added defines for IMAGE_SUBSYSTEM_EFI_ROM and IMAGE_SUBSYSTEM_XBOX.
* internal.h: Added defines for PE directory entry types.
  NB: in internal.h because IMAGE_NUMBEROF_DIRECTORY_ENTRYIES is in pe.h
2006-11-14 19:03:32 +00:00
Alan Modra 19f567f268 daily update 2006-11-13 22:58:48 +00:00
Daniel Jacobowitz d504ffc851 bfd/
* bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
	prototype.
	(bfd_elf32_arm_set_byteswap_code): New prototype.
	* bfd-in2.h: Regenerate.
	* elf32-arm.c (bfd_elf32_arm_process_before_allocation): Don't take
	byteswap_code as an argument.  Revert 2006-11-01 change.
	(bfd_elf32_arm_set_byteswap_code): New.
	(elf32_arm_size_dynamic_sections): Call
	bfd_elf32_arm_process_before_allocation.
ld/
	* emultempl/armelf.em (arm_elf_before_allocation): Only call
	bfd_elf32_arm_process_before_allocation if no dynamic sections.
2006-11-13 20:39:21 +00:00
Alan Modra 677059afb4 daily update 2006-11-12 22:58:49 +00:00
Alan Modra 0664753622 daily update 2006-11-11 22:58:50 +00:00
Alan Modra 5c1c05aecb daily update 2006-11-10 22:58:51 +00:00
Thiemo Seufer 73ca250004 * config.bfd (mips*el-sde-elf*, mips*-sde-elf*): Drop ECOFF support
for SDE configs.
2006-11-10 14:37:33 +00:00
Nick Clifton 0285182bf2 * config.bfd: Move previously obsoleted targets to the REMOVED list.
Add maxq-*-coff to the obsolete list.
2006-11-10 07:53:33 +00:00
Nick Clifton d66dff9480 * pe-arm-wince.c (LOCAL_LABEL_PREFIX): Define as ".".
* pei-arm-wince.c (LOCAL_LABEL_PREFIX): Likewise.
 * coff-arm.c (LOCAL_LABEL_PREFIX): Only define if not defined before.
 * gas/arm/undefined.d: Run test on Windows CE.
 * gas/arm/undefined_coff.d: Don't run test on Windows CE.
2006-11-10 07:35:20 +00:00
Alan Modra 18abb17182 daily update 2006-11-09 22:58:52 +00:00
Alan Modra cba94f9ccb daily update 2006-11-08 22:58:53 +00:00
Alan Modra 3181e5dc7c daily update 2006-11-07 22:58:54 +00:00