Paul Brook
fc0e6df64d
bfd/
...
* elf-bfd.h (_bfd_elf_slurp_version_tables): Update prototype.
* elf.c (_bfd_elf_print_private_bfd_data): Pass extra argument.
(_bfd_elf_slurp_version_tables): Add extra argument. Create extra
default version definition for unversioned symbols.
* elfcode.h (elf_slurp_symbol_table): Pass extra argument.
* elflink.c (elf_link_add_object_symbols): Pass extra argument to
_bfd_elf_slurp_version_tables. Set default version for unversioned
imported symbols.
include/
* bfdlink.h (bfd_link_info): Add default_imported_symver.
ld/
* ld.texinfo: Document --default-imported-symver.
* ldmain.c (main): Set link_info.default_imported_symver.
* lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
(ld_options): Add --default-imported-symver.
(parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
2004-11-15 23:21:27 +00:00
Alan Modra
2e8d14f482
daily update
2004-11-15 23:00:07 +00:00
Paul Brook
b23e50e23e
* elflink.c (elf_link_add_object_symbols): Don't assume version
...
indices are consecutive.
2004-11-15 12:39:01 +00:00
Richard Sandiford
f4a6705cf8
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Deal with
...
composite relocations against the personality data.
2004-11-15 09:09:13 +00:00
Alan Modra
c87cb54921
daily update
2004-11-14 23:00:04 +00:00
Alan Modra
603e93b5b7
daily update
2004-11-13 23:00:05 +00:00
Paul Brook
ee06dc0791
* bfd/elf32-arm.c (elf32_arm_final_link_relocate): Resolve
...
R_ARM_PREL31 relocations to PLT entries.
(elf32_arm_relocate_section, elf32_arm_gc_sweep_hook): Ditto.
(elf32_arm_check_relocs): Ditto.
2004-11-13 13:38:15 +00:00
Alan Modra
1a0360db88
daily update
2004-11-12 23:00:05 +00:00
Bob Wilson
a1ace8d858
2004-11-12 Bob Wilson <bob.wilson@acm.org>
...
include/ChangeLog
* xtensa-isa-internal.h (xtensa_interface_internal): Add class_id.
* xtensa-isa.h (xtensa_interface_class_id): New prototype.
bfd/ChangeLog
* xtensa-isa.c (xtensa_interface_class_id): New.
gas/ChangeLog
* config/tc-xtensa.c (finish_vinsn): Clear pending instruction if
there is a conflict.
(check_t1_t2_reads_and_writes): Check for both reads and writes to
interfaces that are related as determined by xtensa_interface_class_id.
2004-11-12 21:59:13 +00:00
Bob Wilson
e411546021
* elf32-xtensa.c (property_table_compare): Remove assertion about
...
entries with the same address and non-zero size.
(xtensa_read_table_entries): Report such entries as errors.
2004-11-11 23:09:24 +00:00
Alan Modra
a9516b1d5e
daily update
2004-11-11 23:00:05 +00:00
Mark Mitchell
6366ff1ead
* elf32-arm.c (elf32_arm_final_link_relocate): Correct logic for
...
R_ARM_RELATIVE on Symbian OS.
2004-11-11 18:24:24 +00:00
Alan Modra
6df114aef5
daily update
2004-11-10 23:00:06 +00:00
Alan Modra
194c914474
daily update
2004-11-09 23:00:06 +00:00
Mark Mitchell
e6dc21b695
* som.c (som_bfd_print_private_bfd_data): New function.
...
(som_object_setup): Save the auxiliary header. Don't assume that
zero is an invalid entry point for a shared library.
(som_object_p): Allocate the auxiliary header on the heap.
2004-11-09 17:40:22 +00:00
Mark Mitchell
b34af79cca
* elf32-arm.c (elf32_arm_begin_write_processing): Do not use a K&R
...
declaration.
(elf32_arm_symbian_modify_segment_map): Likewise.
2004-11-09 16:50:38 +00:00
Daniel Jacobowitz
08d1f311bf
From David Poole <daveml@mbuf.com>:
...
* elf32-arm.c (elf32_arm_readonly_dynrelocs): New function.
(elf32_arm_size_dynamic_sections): Call it.
2004-11-09 16:44:31 +00:00
Alan Modra
0306b3bf8d
* Makefile.am (SOURCE_HFILES): Remove elf32-arm.h.
...
(ALL_MACHINES_CFILES): Fix typo.
* Makefile.in: Regenerate.
* po/SRC-POTFILES.in: Regenerate.
2004-11-09 13:29:16 +00:00
Alan Modra
e325f4b4df
daily update
2004-11-08 23:00:08 +00:00
Mark Mitchell
a16385dc25
* elf32-arm.c (elf32_arm_final_link_relocate): When generating an
...
R_ARM_RELATIVE relocation for Symbian OS, mention the section
symbol in the relocation.
2004-11-08 22:08:07 +00:00
Nick Clifton
7499d566bb
Add support fpr MAXQ processor
2004-11-08 13:17:43 +00:00
Nick Clifton
0c429e0711
oops - omitted fom previous delta
2004-11-08 08:51:47 +00:00
Nick Clifton
977cdf5aa7
Fix support for PECOFF weak symbols
2004-11-08 08:12:53 +00:00
Alan Modra
5f7836ba7e
daily update
2004-11-07 23:00:05 +00:00
Andreas Schwab
9dfe873851
* elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Use
...
SYMBOL_CALLS_LOCAL and check for undefweak symbols with
non-default visibility.
2004-11-07 10:51:45 +00:00
Alan Modra
0576292809
daily update
2004-11-06 23:00:05 +00:00
Alan Modra
290085aeab
daily update
2004-11-05 23:00:07 +00:00
Alan Modra
156d775fb2
daily update
2004-11-04 23:00:04 +00:00
Mark Mitchell
c3c766200a
* elf32-arm.c (elf32_arm_symbian_begin_write_processing): Clear
...
D_PAGED.
(elf32_arm_symbian_modify_segment_map): Don't
reset includes_filehdr and includes_phdrs here.
2004-11-04 18:57:34 +00:00
Daniel Jacobowitz
7f266840a2
./
...
* configure.in (arm-*-oabi*, thumb-*-oabi*): Remove.
* configure: Regenerated.
bfd/
* Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace
elfarm-nabi with elf32-arm. Remove elfarm-oabi.
(elf32-arm.lo): Replace elfarm-nabi.lo rule. Remove elf32-arm.h
dependency.
* config.bfd: Move arm-*-oabi* and thumb-*-oabi* from obsolete list
to a new removed list. Remove normal configuration stanzas.
* configure.in: (bfd_elf32_bigarm_vec, bfd_elf32_bigarm_symbian_vec)
(bfd_elf32_littlearm_symbian_vec, bfd_elf32_littlearm_vec): Replace
elfarm-nabi.lo with elf32-arm.lo.
(bfd_elf32_bigarm_oabi_vec, bfd_elf32_littlearm_oabi_vec): Remove.
* elf32-arm.c: Renamed from elfarm-nabi.c. Inline elf32-arm.h.
* elf32-arm.h: Remove.
* elfarm-oabi.c: Remove.
* targets.c (_bfd_target_vector): Remove bfd_elf32_bigarm_oabi_vec
and bfd_elf32_littlearm_oabi_vec.
* aclocal.m4, Makefile.in, configure, doc/Makefile.in: Regenerated.
gas/
* configure.in: Remove arm-*-oabi and thumb-*-oabi.
* config/tc-arm.c (target_oabi): Delete.
(md_apply_fix3, elf32_arm_target_format): Remove target_oabi checks.
(arm_opts): Remove moabi.
* doc/as.texinfo (Overview): Remove documentation of -moabi.
* doc/c-arm.texi (ARM Options): Likewise.
* configure: Regenerated.
ld/
* Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
(earmelf_oabi.c): Remove rule.
* configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
* emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
* Makefile.in: Regenerated.
2004-11-04 15:54:50 +00:00
Hans-Peter Nilsson
bac23f82ae
* config.bfd: Support crisv32-*-* like cris-*-*.
...
* archures.c (bfd_mach_cris_v0_v10, bfd_mach_cris_v32)
(bfd_mach_cris_v10_v32): New macros.
* cpu-cris.c: Tweak formatting.
(get_compatible): New function.
(N): New macro.
(bfd_cris_arch_compat_v10_v32, bfd_cris_arch_v32): New
bfd_arch_info_type:s.
(bfd_cris_arch): Use bfd_mach_cris_v0_v10 for member mach,
get_compatible for member compatible and link bfd_cris_arch_v32 as
next.
* elf32-cris.c (cris_elf_pcrel_reloc)
(cris_elf_set_mach_from_flags): New functions.
(cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL>
<R_CRIS_32_PCREL>: Use cris_elf_pcrel_reloc.
(cris_elf_grok_prstatus, cris_elf_grok_psinfo): Give correct
numbers for bfd_mach_cris_v32.
(PLT_ENTRY_SIZE_V32): New macro.
(elf_cris_plt0_entry): Drop last comma in initializer.
(elf_cris_plt0_entry_v32, elf_cris_plt_entry_v32)
(elf_cris_pic_plt0_entry_v32, elf_cris_pic_plt_entry_v32): New
PLT initializers.
(cris_elf_relocate_section): Change all "%B(%A)" messages to
"%B, section %A".
(elf_cris_finish_dynamic_symbol): Do V32-specific PLT entries.
(elf_cris_finish_dynamic_sections): Similar.
(elf_cris_adjust_dynamic_symbol): Similar.
(cris_elf_check_relocs): Change all "%B(%A)" messages to "%B,
section %A".
<switch with PIC relocs>: Emit error and return FALSE for
bfd_mach_cris_v10_v32.
<case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>:
Emit warning when generating textrel reloc.
(cris_elf_object_p): Call cris_elf_set_mach_from_flags.
(cris_elf_final_write_processing): Set flags according to mach.
(cris_elf_print_private_bfd_data): Display
EF_CRIS_VARIANT_COMMON_V10_V32 and EF_CRIS_VARIANT_V32.
(cris_elf_merge_private_bfd_data): Drop variables old_flags,
new_flags. Don't call cris_elf_final_write_processing. Don't
look at the actual elf header flags at all; use
bfd_get_symbol_leading_char to check ibfd, obfd. Trap difference
in bfd_get_mach for ibfd and obfd and handle merging of compatible
objects.
(bfd_elf32_bfd_copy_private_bfd_data): Define.
* reloc.c (BFD_RELOC_CRIS_SIGNED_8, BFD_RELOC_CRIS_UNSIGNED_8)
(BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_UNSIGNED_16)
(BFD_RELOC_CRIS_LAPCQ_OFFSET): New relocs.
* bfd-in2.h, libbfd.h: Regenerate.
2004-11-04 14:58:13 +00:00
Alan Modra
c5614fa460
bfd/
...
* elf64-ppc.h (ppc64_elf_edit_toc): Declare.
* elf64-ppc.c (struct ppc_link_hash_entry <adjust_done>): Update
comment.
(struct adjust_toc_info): New.
(adjust_toc_syms, ppc64_elf_edit_toc): New functions.
ld/
* emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
(no_opd_opt, no_toc_opt): New static vars.
(ppc_before_allocation): Don't edit opt if no_opd_opt. Call
ppc64_elf_edit_toc.
(OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
(PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
(PARSE_AND_LIST_OPTIONS): Describe new options.
(PARSE_AND_LIST_ARGS_CASES): Handle them.
2004-11-04 11:55:13 +00:00
Bob Wilson
0ebdbb8312
* elf.c (assign_file_positions_for_segments): Set next_file_pos even
...
if there are no segments.
2004-11-04 00:44:23 +00:00
Alan Modra
166ada5802
daily update
2004-11-03 23:00:07 +00:00
Alan Modra
8d09dc2fb0
daily update
2004-11-02 23:00:05 +00:00
Daniel Jacobowitz
675b2ace5d
* config.bfd: Mark arm-*-oabi and thumb-*-oabi as obsolete.
2004-11-02 16:24:35 +00:00
Nick Clifton
58852c2769
Convert to ISO C90
2004-11-02 12:52:32 +00:00
Hans-Peter Nilsson
20288ed68a
Correct last entry: s/SYMBOL/TABLE_/
2004-11-02 05:51:13 +00:00
Hans-Peter Nilsson
e6857c0cd5
* elflink.c (_bfd_elf_create_got_section): Hide _GLOBAL_OFFSET_SYMBOL.
2004-11-02 05:44:34 +00:00
Alan Modra
a2425a5207
daily update
2004-11-01 23:00:05 +00:00
Alan Modra
305d843561
daily update
2004-10-31 23:00:05 +00:00
Alan Modra
aeab9e265f
daily update
2004-10-30 23:00:05 +00:00
Alan Modra
44b4bcc2c9
daily update
2004-10-30 00:00:06 +00:00
Alan Modra
a6b63b08f5
daily update
2004-10-29 00:00:06 +00:00
H.J. Lu
bf71845826
2004-10-28 H.J. Lu <hongjiu.lu@intel.com>
...
* elfxx-ia64.c (elfNN_ia64_relocate_section): Handle weak
undefined symbols for R_IA64_SECREL32MSB, R_IA64_SECREL32LSB,
R_IA64_SECREL64MSB and R_IA64_SECREL64LSB.
2004-10-28 14:55:41 +00:00
Kaz Kojima
044ad7e3d7
* elf32-sh.c (tpoff): Take alignment into account.
2004-10-28 12:00:17 +00:00
Nick Clifton
0d48eab68d
Fix spelling typo
2004-10-28 09:56:14 +00:00
Nick Clifton
d5cb4bb8aa
iq2000_elf_relocate_section): Do nothing when perfoming a relocatable link.
...
(iq2000_elf_object_p): Do not set elf_bad_symtab. This is only for MIPS ports
under Irix.
2004-10-28 09:53:44 +00:00
Alan Modra
e5be0a72e1
daily update
2004-10-28 00:00:10 +00:00
Paul Brook
5b5bb74101
2004-10-27 Richard Earnshaw <rearnsha@arm.com>
...
bfd/
* elf32-arm.h (bfd_elf32_arm_process_before_allocation): Handle
R_ARM_CALL and R_ARM_JUMP24 as aliases of R_ARM_PC24.
(elf32_arm_final_link_relocate): Ditto.
(arm_add_to_rel, elf32_arm_relocate_section): Ditto.
(elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto
(elf32_arm_adjust_dynamic_symbol): Ditto.
* elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_CALL and
R_ARM_JUMP32. Move R_ARM_R{REL32,ABS32,PC24,BASE}...
(elf32_arm_r_howto): ... To here.
(elf32_arm_howto_from_type): Use elf32_arm_r_howto.
include/
* elf/arm.h: Add R_ARM_CALL and R_ARM_JUMP32.
2004-10-27 20:48:22 +00:00