Commit Graph

3876 Commits

Author SHA1 Message Date
Alan Modra 747a5874e5 daily update 2004-09-12 00:00:05 +00:00
Andreas Schwab 2444313964 bfd/:
* acinclude.m4: Fix spelling of ACX_NONCANONICAL_*.
	* aclocal.m4: Rebuild.
	* configure: Rebuild.

opcodes/:
	* configure: Rebuild.
2004-09-11 20:22:51 +00:00
Alan Modra 52e08514ab daily update 2004-09-11 00:00:06 +00:00
Joel Brobecker f4eae89cf7 * section.c (bfd_sections_find_if): Fix parameter name in
comment to match code.
2004-09-10 21:16:27 +00:00
Alan Modra e0638f7007 * elf.c (assign_file_positions_except_relocs): Assign relocs
stored in a bfd section.
2004-09-10 00:27:10 +00:00
Alan Modra 04c6f462e0 daily update 2004-09-10 00:00:07 +00:00
Alan Modra a9bdad90d2 daily update 2004-09-09 00:00:05 +00:00
Alan Modra 365b3d742d daily update 2004-09-08 00:00:14 +00:00
Hans-Peter Nilsson 5e0f5ae3dc * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Reset
h->gotplt_refcount to 0, not -1.
2004-09-07 22:37:52 +00:00
Hans-Peter Nilsson ada1953ecd * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
case R_CRIS_32_GOTPLT>: For internal error message, handle NULL
	symname.
	(cris_elf_check_relocs) <case R_CRIS_32_PLT_PCREL>: Don't try to
	handle symbol visibility here.
2004-09-07 18:33:22 +00:00
Alan Modra ee75fd9567 * elf64-ppc.c (struct ppc_link_hash_table): Add stub_globals.
(is_ppc64_elf_target): Rename from is_ppc64_target.  Update all
	callers.
	(ppc_stub_name): Remove trailing "+0" on stub name.
	(create_linkage_sections): Create relocations for
	branch lookup table when --emit-relocs as well as when --shared.
	(ppc_build_one_stub): Emit relocs for long branch stubs.  Adjust
	relbrlt test.  For --emit-stub-syms, always output a sym even when
	one already exists on a plt call stub.  Put stub type in the stub
	symbol name.
	(ppc_size_one_stub): Size long branch stub relocs.  Adjust relbrlt
	test.
	(ppc64_elf_size_stubs): Count global sym stubs added.  Zero
	reloc_count in stub sections.  Adjust relbrlt test.
	(ppc64_elf_build_stubs): Adjust relbrlt test.  Tweak stats output.
	* elflink.c (bfd_elf_size_dynamic_sections): Fix comment typo.
	(elf_link_input_bfd): Ignore symbol index zero relocs when checking
	for relocs against discarded symbols.  Fix comments.
2004-09-07 13:40:37 +00:00
Alan Modra dc140b898d daily update 2004-09-07 00:00:06 +00:00
Mark Mitchell 229fcec570 * elf-bfd.h (_bfd_elf_make_dynamic_segment): Declare it.
* elf.c (_bfd_elf_make_dynamic_segment): New function, split out
	from ...
	(map_sections_to_segments): ... here.  Use it.  Assign a file
	position to the .dynamic section if it is not loadable, but part
	of the PT_DYNAMIC segment.
	* elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
	offsets, not VMAs, for the BPABI.  Do not fill in the header in
	the .got.plt section for the BPABI.
	* elfarm-nabi.c (elf32_arm_symbian_modify_segment_map): Add a
	PT_DYNAMIC segment.
	(elf_backend_want_got_plt): Define to zero for Symbian OS.

	* emulparams/armsymbian.sh: Use armbpabi script.
	* scripttempl/armbpabi.sc: New script.
2004-09-06 20:55:23 +00:00
Nick Clifton 9a0789ec7d (elf_link_add_object_symbols): Set the error code to bfd_error_wrong_format when
the input format does not match the output format.
2004-09-06 17:24:32 +00:00
Alan Modra 7b53ace3e9 * elf64-ppc.c (is_ppc64_target): New function, extracted from..
(ppc64_elf_check_directives): ..here.
	(ppc64_elf_size_dynamic_sections): Use it here to check bfd type
	before accessing ppc64_elf_tdata.
	(ppc64_elf_finish_dynamic_sections): And here too.
2004-09-06 12:37:12 +00:00
Alan Modra c09f9ec13b daily update 2004-09-06 00:00:05 +00:00
Alan Modra 8acf204224 daily update 2004-09-05 00:00:07 +00:00
Alan Modra 3e540f2516 * bfd.c (_bfd_default_error_handler): Correct loop exit. 2004-09-04 01:30:21 +00:00
Alan Modra c58996d84d daily update 2004-09-04 00:00:06 +00:00
Mark Mitchell e5a52504a5 * config.bfd (arm*-*-symbianelf*): Use OS-specific target vectors.
* configure.in (bfd_elf32_bigarm_symbian_vec): Add it.
	(bfd_elf32_littlearm_symbian_vec): Likewise.
	* configure: Regenerated.
	* elf-bfd.h (elf_backend_data): Add dynamic_sec_flags.
	* elf32-arm.h (PLT_HEADER_SIZE): Do not define.
	(PLT_ENTRY_SIZE): Likewise.
	(bfd_vma_elf32_arm_symbian_plt_entry): New
	variable.
	(elf32_arm_link_hash_table): Add plt_header_size, plt_entry_size,
	and symbian_p.
	(create_got_section): Don't create sections when generating BPABI
	objects.
	(elf32_arm_create_dynamic_sections): Tidy.
	(elf32_arm_link_hash_table_create): Set plt_header_size,
	plt_entry_size, and symbian_p.
	(elf32_arm_check_relocs): Do not mark .rel.dyn as loadable when
	generating BPABI objects.
	(allocate_dynrelocs): Use htab->plt_header_size, not
	PLT_HEADER_SIZE.  Do not add to .got.plt when
	generating BPABI objects.
	(elf32_arm_finish_dynamic_symbol): Generate Symbian OS PLTs.
	* elfarm-nabi.c: Add SymbianOS target vectors.
	* elflink.c (_bfd_elf_create_got_section): Use dynamic_sec_flags.
	(_bfd_elf_link_create_dynamic_sections): Likewise.
	* elfxx-target.h (ELF_DYNAMIC_SEC_FLAGS): New macro.
	(elfNN_bed): Use it.
	* targets.c (bfd_elf32_bigarm_symbian_vec): New variable.
	(bfd_elf32_littlearm_symbian_vec): Likewise.
	(_bfd_target_vector): Add them.

	* Makefile.am (TARG_ENV_HFILES): Add te-symbian.h.
	* Makefile.in: Regenerated.
	* configure.in: Set em for arm*-*-symbianelf*.
	* configure: Regenerated.
	* config/tc-arm.c (elf32_arm_target_format): Use Symbian target
	vectors when appropriate.
	* config/te-symbian.h: New file.

	* Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
	(earmsymbian.c): New target.
	* configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
	* Makefile.in: Regenerated.
	* aclocal.m4: Likewise.
	* configure: Likewise.
	* emulparams/armsymbian.sh: New file.
2004-09-03 17:15:44 +00:00
Nick Clifton 6e3b68350d PR 360
(handle_COMDAT): Replace abort with an warning message and allow the scan to
continue.
2004-09-03 14:11:38 +00:00
Alan Modra da75a93b71 daily update 2004-09-03 00:00:05 +00:00
Alan Modra 595da8c56f * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Use static_syms passed
in when reading relocs, not our sorted syms.  Remove unnecessary
	var.
2004-09-02 04:43:36 +00:00
Alan Modra 21bd10f440 daily update 2004-09-02 00:00:05 +00:00
Alan Modra aa240bf535 daily update 2004-09-01 00:00:05 +00:00
Eric Botcazou 6723a9f4e0 * elf.c (special_sections): Add .gnu.linkonce.b modelled on .bss. 2004-08-31 09:41:11 +00:00
Alan Modra ad58b0d055 daily update 2004-08-31 00:00:07 +00:00
Nathanael Nerode 5464f5a16e 2004-08-30 Nathanael Nerode <neroden@gcc.gnu.org>
* acinclude.m4: Require AC_CANONICAL_TARGET, not AC_CANONICAL_SYSTEM.
	Include ../config/acx.m4 and use ACX_NONCANONICAL_* where appropriate;
	replace uses of *_alias with *_noncanonical.
	* aclocal.m4: Rebuild with aclocal 1.4p6.
	* Makefile.in: Rebuild with automake 1.4p6.
	* doc/Makefile.in: Rebuild with automake 1.4p6.
	* configure.in: Autoupdate with autoupdate 2.59.
	* config.in: Regenerate with autoheader 2.59.
	* configure: Regnerate with autoconf 2.59.
2004-08-30 18:58:14 +00:00
Alan Modra 8703f9377c daily update 2004-08-30 00:00:06 +00:00
Alan Modra 47e35c11d6 daily update 2004-08-29 00:00:06 +00:00
Alan Modra a7535cf331 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Copy input
symbol pointer arrays before modifying.
2004-08-28 08:54:34 +00:00
Alan Modra b91e2ae21e corrected version 2004-08-28 03:29:18 +00:00
Alan Modra c9727e01b5 bfd/
* bfd.c (bfd_get_synthetic_symtab): Pass counts and both symbol tables.
	* elf-bfd.h (_bfd_elf_get_synthetic_symtab): Adjust.
	* elf.c (_bfd_elf_get_synthetic_symtab): Adjust.
	* libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Adjust.
	* targets.c (struct bfd_target <_bfd_get_synthetic_symtab>): Adjust.
	* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't read symbols.
	Use both symbol tables on non-relocatable objects.  Use a common
	error exit.  Fix "mid" warning.
	* libbfd.h: Regenerate.
	* bfd-in2.h: Regenerate.
binutils/
	* objdump.c (dump_bfd): Pass both symbol tables to
	bfd_get_synthetic_symtab.
2004-08-28 03:05:18 +00:00
Alan Modra 0756fc5506 daily update 2004-08-28 00:00:06 +00:00
Alan Modra 699733f62e * elf64-ppc.c (ppc64_elf_branch_reloc): Check .opd is in a regular
object file.
	(struct sfpr_def_parms): Save some space.
	(sfpr_define): Here too.

	* elf64-ppc.c (compare_symbols): Put section syms first.
	(sym_exists_at): New function.
	(ppc64_elf_get_synthetic_symtab): Use relocs to find code entry
	points only for relocatable files.  Use .opd section contents
	otherwise.  Generally clean up the code.
2004-08-27 14:54:41 +00:00
Alan Modra deb0e27291 * elf64-ppc.c (STD_R0_0R1, STD_R0_0R12, LD_R0_0R1, LD_R0_0R12,
LI_R12_0, STVX_VR0_R12_R0, LVX_VR0_R12_R0, MTLR_R0, SFPR_MAX): Define.
	(struct sfpr_def_parms): New.
	(sfpr_define): New function.
	(savegpr0, savegpr0_tail, restgpr0, restgpr0_tail): New functions.
	(savegpr1, savegpr1_tail, restgpr1, restgpr1_tail): New functions.
	(savefpr, savefpr0_tail, restfpr, restfpr0_tail): New functions.
	(savefpr1_tail, restfpr1_tail): New functions.
	(savevr, savevr_tail, restvr, restvr_tail): New functions.
	(MIN_SAVE_FPR, MAX_SAVE_FPR): Don't define.
	(ppc64_elf_func_desc_adjust): Use sfpr_define in place of existing
	code.  Define all ABI mandated _save and _rest functions.
2004-08-27 07:54:00 +00:00
Alan Modra b039949775 daily update 2004-08-27 00:00:06 +00:00
Paul Brook 85a84e7a87 * INTERWORK_FLAG: Return true for EABIv3 objects. 2004-08-26 16:18:37 +00:00
Alan Modra 2605216ead daily update 2004-08-26 00:00:05 +00:00
Alan Modra 688c58f359 bfd/
* elf32-m32r.c (m32r_elf_relocate_section): Don't compare with
	TRUE or FALSE.
ld/
	* ldlang.c (lang_init): Don't compare with TRUE.
2004-08-25 23:40:56 +00:00
Alan Modra 3e95eabc2c * elf32-i386.c (elf_i386_relocate_section): Tweak last change so
that pcrel correction is applied for R_386_PC32.
2004-08-25 23:20:37 +00:00
Alan Modra f855931bbd * elf32-i386.c (elf_i386_relocate_section): Zero section contents
for R_386_32 and R_386_PC32 relocs against symbols defined in
	discarded sections.
2004-08-25 14:35:58 +00:00
Nick Clifton b18c562e39 Apply Dmitry Diky's patches to add relaxation to msp430. 2004-08-25 12:54:15 +00:00
Alan Modra 9028eebd04 daily update 2004-08-25 00:00:06 +00:00
Nick Clifton af705ba8f0 (m32r_elf_relocate_section): Handle R_M32R_SDA16_RELA in the same way as
R_M32R_SDA16.
2004-08-24 08:21:25 +00:00
Alan Modra 05b51840d8 daily update 2004-08-24 00:00:07 +00:00
Alan Modra d2a7154afd daily update 2004-08-23 00:00:07 +00:00
Alan Modra 8f52ca94af daily update 2004-08-22 00:00:05 +00:00
Daniel Jacobowitz ea5158d820 * elflink.c (_bfd_elf_section_already_linked): Handle
SEC_LINK_DUPLICATES_SAME_CONTENTS.
2004-08-21 01:13:22 +00:00
Alan Modra d64e52d5a6 daily update 2004-08-21 00:00:07 +00:00