Alan Modra
dd8de1a32e
daily update
2007-10-22 00:00:05 +00:00
Alan Modra
a190e9e3e6
daily update
2007-10-21 00:00:05 +00:00
Alan Modra
342dae88a7
daily update
2007-10-20 00:00:05 +00:00
Nick Clifton
bfff164249
Add MN10300 linker relaxation support for symbol differences
2007-10-19 17:31:31 +00:00
Nick Clifton
603b72571d
* elf-m10300.c: Convert to ISO C.
...
* tc-mn10300.c: Convert to ISO C.
2007-10-19 11:48:57 +00:00
Alan Modra
00fd39d11f
daily update
2007-10-19 00:00:05 +00:00
Alan Modra
13285a1b2c
PR ld/4424
...
* config.bfd (targ_selvecs): Add bfd_elf64_alpha_vec for
alpha/FreeBSD. Add bfd_elf64_sparc_vec for sparc64/FreeBSD.
Add bfd_elf32_i386_vec and bfd_efi_app_ia32_vec for i386/FreeBSD.
(targ64_selvecs): Set for i386/FreeBSD.
* elf-bfd.h (elf_backend_data): Add relocs_compatible.
(_bfd_elf_default_relocs_compatible): Declare.
(_bfd_elf_relocs_compatible): Declare.
* elfxx-target.h (elf_backend_relocs_compatible): Define.
(elfNN_bed): Init new relocs_compatible field.
* elflink.c (_bfd_elf_default_relocs_compatible): New function.
(_bfd_elf_relocs_compatible): New function.
(elf_link_add_object_symbols): Call bed->relocs_compatible.
* elf32-i386.c (elf_backend_relocs_compatible): Define.
* elf64-alpha.c: Likewise.
* elf64-sparc.c: Likewise.
* elf64-x86-64.c: Likewise.
2007-10-18 09:13:51 +00:00
Alan Modra
51745be133
daily update
2007-10-18 00:00:05 +00:00
Bob Wilson
ae326da8eb
* elf32-xtensa.c (relax_section): Check for a reference to a discarded
...
DWARF section and anticipate its replacement with the kept section.
2007-10-17 00:30:31 +00:00
Alan Modra
bb14a92538
daily update
2007-10-17 00:00:05 +00:00
Bob Wilson
a3ef2d6352
* elf32-xtensa.c (elf_xtensa_discard_info_for_section): Remove
...
unnecessary size variables. Set sec->rawsize.
(relax_section, relax_property_section): Likewise.
2007-10-16 23:57:24 +00:00
Bob Wilson
73c5c7a8d6
* section.c (struct bfd_section): Clarify comment for rawsize field.
...
* bfd-in2.h: Regenerate.
2007-10-16 23:51:55 +00:00
Bob Wilson
1dd2625faa
* elflink.c (_bfd_elf_check_kept_section): Use the section rawsize
...
values if they are set.
2007-10-16 15:51:38 +00:00
Nick Clifton
8bc9c89276
PR 5146
...
* configure.in (AC_CHECK_HEADERS): Add alloca.h
* configure: Regenerate.
* config.in: Regenerate.
* som.c: Replace alloca-conf.h inclusion with code recommended in autoconf documentation.
* elf64-hppa.c: Likewise.
2007-10-16 15:15:50 +00:00
Nick Clifton
504b7d2026
Support the use of the STT_COMMON type. (In source and object files only at the moment)
2007-10-16 14:42:15 +00:00
Alan Modra
a652a49c5f
daily update
2007-10-16 00:00:05 +00:00
Alan Modra
5375ec41be
* chew.c (write_buffer): Check fwrite return value.
2007-10-15 02:00:28 +00:00
Alan Modra
b165715209
* coff-arm.c (arm_emit_base_file_entry): Check fwrite return value.
...
Return status. Adjust callers.
* coff-mcore.c (mcore_emit_base_file_entry): Likewise.
* coff-ppc.c (write_base_file_entry): New function.
(coff_ppc_relocate_section): Use it.
* elf32-arm.c (find_thumb_glue): Check asprintf return status.
(find_arm_glue): Likewise.
* vms-misc.c (_bfd_vms_output_flush): Check fwrite return value.
2007-10-15 02:00:11 +00:00
Alan Modra
a7c7166623
daily update
2007-10-15 00:00:05 +00:00
Alan Modra
0c607b23d8
daily update
2007-10-14 00:00:04 +00:00
Alan Modra
f266c1c5f5
daily update
2007-10-13 00:00:05 +00:00
Nick Clifton
4b93929bf9
PR 5160
...
* elflink.c (eval_symbol): Remove bufsz variable and use sizeof(symbuf) where necessary.
2007-10-12 16:25:21 +00:00
Nick Clifton
e9deb29d4f
* elf32-cr16.c (elf32_cr16_relax_section): Fix condition check typo.
...
* config/tc-cr16.c: Update the md_relax_table for 1 word b<cc> instruction range information.
2007-10-12 16:11:02 +00:00
Daniel Jacobowitz
720199d64e
* elfxx-mips.c (mips_elf_sort_hash_table_f): Handle forced
...
local symbols specially.
(mips_elf_set_global_got_offset): Skip forced local symbols.
2007-10-12 15:59:19 +00:00
Alan Modra
971d4640d2
* elf.c (elfcore_grok_prxfpreg): Fix comment typo.
2007-10-12 03:34:45 +00:00
Alan Modra
ed4c31f254
daily update
2007-10-12 00:00:05 +00:00
H.J. Lu
f210dcff90
2007-10-10 H.J. Lu <hongjiu.lu@intel.com>
...
* elf.c (get_program_header_size): Always add a PT_GNU_RELRO
segment for -z relro.
(_bfd_elf_map_sections_to_segments): Make a PT_GNU_RELRO
segment only when needed.
2007-10-11 05:03:07 +00:00
Alan Modra
53f1d09b83
daily update
2007-10-11 00:00:05 +00:00
Alan Modra
cf0d1c8e4d
daily update
2007-10-10 00:00:05 +00:00
Alan Modra
444e9b58b8
daily update
2007-10-09 00:00:05 +00:00
Alan Modra
13f9d64916
daily update
2007-10-08 00:00:05 +00:00
Alan Modra
43b11a637f
daily update
2007-10-07 00:00:05 +00:00
Alan Modra
15bed04447
daily update
2007-10-06 00:00:07 +00:00
Bob Wilson
9b7f5d2048
* elf32-xtensa.c (relax_section): Call pin_internal_relocs when
...
changing a relocation's offset. Adjust call to translate_reloc. Do
not add a fix record for a DIFF reloc. For other relocs, only add a
fix record if the translated target is in a different object file;
otherwise, just update the relocation. Call pin_internal_relocs when
updating a reloc but not when adding a fix record.
(translate_reloc): Get the target section from a new argument, not
from the relocation. Change check for relaxable sections to an
assertion. Compute separate offset adjustments for the base symbol
and the addend, and set the new relocation's addend correctly. Return
the new target section.
2007-10-05 19:05:35 +00:00
Bob Wilson
768a5a741d
* elf32-xtensa.c (elf_xtensa_relocate_section): Remove updates of
...
r_type and howto after calling do_fix_for_relocateable_link and
do_fix_for_final_link.
2007-10-05 18:18:23 +00:00
Bob Wilson
03669f1c02
* elf32-xtensa.c (removed_by_actions): New.
...
(offset_with_removed_text): Reimplement using removed_by_actions.
(offset_with_removed_text_before_fill): Delete.
(relax_property_section): Use removed_by_actions. Rearrange logic.
(relax_section_symbols): Likewise.
2007-10-05 18:09:57 +00:00
Alan Modra
6f9e08d5a1
daily update
2007-10-05 00:00:05 +00:00
Bob Wilson
0f5f163810
* elf32-xtensa.c (reloc_bfd_fix_struct): Delete target_abfd field.
...
(reloc_bfd_fix_init): Remove target_abfd argument.
(relax_section, move_literal): Adjust calls to reloc_bfd_fix_init.
2007-10-04 17:15:29 +00:00
Nick Clifton
1f7a4e4204
PR linker/5099
...
* elf64-x86-64.c (elf64_x86_64_check_relocs): Add missing apostrophe to error message.
2007-10-04 13:41:29 +00:00
Alan Modra
4638dbaa96
daily update
2007-10-04 00:00:06 +00:00
Alan Modra
66247fc744
daily update
2007-10-03 00:00:05 +00:00
Alan Modra
1f8e37112f
daily update
2007-10-02 00:00:01 +00:00
Nick Clifton
7fac7ff4ae
Various CR16 fixes
2007-10-01 15:55:44 +00:00
Alan Modra
42c4197104
daily update
2007-10-01 00:00:05 +00:00
Alan Modra
a0c8462faf
* elflink.c: Formatting.
2007-09-30 13:43:23 +00:00
Alan Modra
0f02bbd9f8
bfd/
...
* elflink.c (resolve_symbol): Handle symbols in SEC_MERGE
sections. Don't test symbol st_shndx. Don't bother with
bfd_link_hash_common symbols. Print longs rather than ints
in debug messages.
(eval_symbol): Replace "sym" and "advanced" params with "symp".
Replace "addr" and "section_offset" params with "dot". Don't
cast bfd_vma values to signed, cast them to bfd_signed_vma.
(bfd_elf_perform_complex_relocation): Delete "output_bfd", "info",
"local_syms" and "local_sections" params. Add "relocation".
Delete code calculating relocation value.
(evaluate_complex_relocation_symbols): Delete function. Fold into..
(elf_link_input_bfd): ..existing code examining relocs.
* elf-bfd.h (bfd_elf_perform_complex_relocation): Update prototype.
* elf32-mep.c (mep_elf_check_relocs): Delete function.
(mep_elf_gc_sweep_hook, mep_elf_gc_mark_hook): Likewise.
(mep_elf_object_p): Don't set elf_bad_symtab.
(elf_backend_check_relocs): Don't define.
(elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook): Likewise.
(elf_backend_can_gc_sections, USE_RELA): Likwise.
(mep_elf_relocate_section): Move bfd_elf_perform_complex_relocation
call after we have calculated reloc value. Delete local sym
debug code. Use RELOC_FOR_GLOBAL_SYMBOL. Delete addend
adjusting code..
(elf_backend_rela_normal): ..instead define this.
ld/testsuite/
* ld-selective/sel-dump.exp: Add am33, m88k, mep to xfails.
* ld-selective/selective.exp: Don't run for same target list
we xfail sel-dump.
2007-09-30 13:33:04 +00:00
Alan Modra
844cacac6e
daily update
2007-09-30 00:00:05 +00:00
Alan Modra
dccfc3eba1
daily update
2007-09-29 00:00:05 +00:00
Alan Modra
5582a08852
* elf-m10300.c (mn10300_elf_check_relocs): Delete dead code.
...
* elf32-arm.c (elf32_arm_check_relocs): Likewise.
* elf32-avr.c (elf32_avr_check_relocs): Likewise.
* elf32-bfin.c (bfinfdpic_check_relocs): Likewise.
* elf32-cris.c (cris_elf_check_relocs): Likewise.
* elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
* elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
* elf32-fr30.c (fr30_elf_check_relocs): Likewise.
* elf32-frv.c (_frvfdpic_check_discarded_relocs): Likewise.
(elf32_frv_check_relocs): Likewise.
* elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
* elf32-m32c.c (m32c_elf_check_relocs): Likewise.
* elf32-m32r.c (m32r_elf_check_relocs): Likewise.
* elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
* elf32-mcore.c (mcore_elf_check_relocs): Likewise.
* elf32-msp430.c (elf32_msp430_check_relocs): Likewise.
* elf32-mt.c (mt_elf_check_relocs): Likewise.
* elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
* elf32-sh.c (sh_elf_check_relocs): Likewise.
* elf64-mmix.c (mmix_elf_check_relocs): Likewise.
* elf64-sh64.c (sh_elf64_check_relocs): Likewise.
* elf32-score.c (_bfd_score_elf_check_relocs): Likewise.
(score_elf_local_relocation_p): Likewise.
(_bfd_score_elf_relocate_section): Likewise.
(score_elf_final_link_relocate): Likewise.
2007-09-28 08:43:45 +00:00
Alan Modra
78a273176b
daily update
2007-09-27 00:00:05 +00:00