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
H.J. Lu
97ecf3226d
2004-10-26 H.J. Lu <hongjiu.lu@intel.com>
...
PR 475
* elfxx-ia64.c (elfNN_ia64_relocate_section): Correct
R_IA64_SECREL32MSB, R_IA64_SECREL32LSB, R_IA64_SECREL64MSB
and R_IA64_SECREL64LSB.
2004-10-27 00:46:05 +00:00
Alan Modra
6cb7e1ce46
daily update
2004-10-27 00:00:06 +00:00
Paul Brook
3e3b46e5c8
bfd/
...
* elflink.c (elf_finalize_dynstr): Skip shared aux structure.
(bfd_elf_size_dynamic_sections): Create default version definition.
(elf_link_output_extsym): Adjust for default symbol version.
include/
* bfdlink.h (struct bfd_link_info): Add create_default_symver.
ld/
* ld.texinfo: Document --default-symver.
* ldmain.c (main): Set link_info.create_default_symver.
* lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
(ld_options): Add default-symver.
(parse_args): Handle OPTION_DEFAULT_SYMVER.
ld/testsuite/
* ld-elfvers/vers.exp (build_binary): Add ldargs parameter.
(build_vers_lib_pic_flags): New function.
Add vers29 test.
* ld-elfvers/vers29.c: New file.
* ld-elfvers/vers29.dsym: New file.
* ld-elfvers/vers29.ver: New file.
2004-10-26 13:46:05 +00:00
Alan Modra
1c24292617
daily update
2004-10-26 00:00:06 +00:00
Alan Modra
b2a7b577d1
daily update
2004-10-25 00:00:05 +00:00
Hans-Peter Nilsson
278b46236c
* mmo.c: Adjust to ISO C.
2004-10-24 22:50:43 +00:00
Hans-Peter Nilsson
aa69fe43dd
* mmo.c (mmo_write_section_description): New function broken out
...
of mmo_internal_write_section.
(mmo_internal_write_section): For each of .text and .data, call
mmo_write_section_description before outputting contents if it has
nontrivially deducible vma or contents.
(mmo_has_leading_or_trailing_zero_tetra_p): New function.
(mmo_canonicalize_symtab): Adjust absolute symbols to .data
symbols if found within the .data address range.
2004-10-24 21:40:36 +00:00
Daniel Jacobowitz
ed0403211c
* opncls.c (bfd_close): Return TRUE for BFD_IN_MEMORY.
2004-10-24 18:45:38 +00:00
Hans-Peter Nilsson
830866afa5
* mmo.c (File Layout): Correct place of misplaced blurb about
...
special data.
2004-10-24 14:09:16 +00:00
Alan Modra
7153fe4e5f
daily update
2004-10-24 00:00:06 +00:00
Mark Kettenis
5f417ca318
* config.bfd: Add mips64*-*-openbsd.
2004-10-23 12:23:15 +00:00
Alan Modra
95706ff588
daily update
2004-10-23 00:00:06 +00:00
Alan Modra
052d973636
daily update
2004-10-22 00:00:07 +00:00
Bob Wilson
823fc61f00
* elf32-xtensa.c (ebb_propose_action): Put declarations before
...
statements.
2004-10-21 16:29:11 +00:00
H.J. Lu
8697aafb0c
2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
...
* configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.94.
* configure: Regenerate.
2004-10-21 15:32:41 +00:00
H.J. Lu
dfeffb9fe1
bfd/
...
2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
PR 463
* aoutx.h (aout_link_input_section_std): Pass proper hash entry
to linker reloc_overflow callback.
(aout_link_input_section_ext): Likewise.
(aout_link_reloc_link_order): Likewise.
* coff-a29k.c (coff_a29k_relocate_section): Likewise.
* coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
Likewise.
(alpha_relocate_section): Likewise.
* coff-arm.c (coff_arm_relocate_section): Likewise.
* coff-h8300.c (h8300_reloc16_extra_cases): Likewise.
* coff-h8500.c (extra_case): Likewise.
* coff-i960.c (coff_i960_relocate_section): Likewise.
* coff-mcore.c (coff_mcore_relocate_section): Likewise.
* coff-mips.c (mips_relocate_section): Likewise.
* coff-or32.c (coff_or32_relocate_section): Likewise.
* coff-ppc.c (coff_ppc_relocate_section): Likewise.
* coff-rs6000.c (xcoff_ppc_relocate_section): Likewise.
* coff-sh.c (sh_relocate_section): Likewise.
* coff-tic80.c (coff_tic80_relocate_section): Likewise.
* coff-w65.c (w65_reloc16_extra_cases): Likewise.
* coff-z8k.c (extra_case): Likewise.
* coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
* cofflink.c (_bfd_coff_reloc_link_order): Likewise.
(_bfd_coff_generic_relocate_section): Likewise.
* ecoff.c (ecoff_reloc_link_order): Likewise.
* elf-hppa.h (elf_hppa_relocate_section): Likewise.
* elf-m10200.c (mn10200_elf_relocate_section): Likewise.
* elf-m10300.c (mn10300_elf_relocate_section): Likewise.
* elf32-arm.h (elf32_arm_relocate_section): Likewise.
* elf32-avr.c (elf32_avr_relocate_section): Likewise.
* elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
* elf32-cris.c (cris_elf_relocate_section): Likewise.
* elf32-crx.c (elf32_crx_relocate_section): Likewise.
* elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
* elf32-fr30.c (fr30_elf_relocate_section): Likewise.
* elf32-frv.c (elf32_frv_relocate_section): Likewise.
* elf32-h8300.c (elf32_h8_relocate_section): Likewise.
* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
* elf32-i370.c (i370_elf_relocate_section): Likewise.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf32-i860.c (elf32_i860_relocate_section): Likewise.
* elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
* elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
* elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
* elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
* elf32-openrisc.c (openrisc_elf_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-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf32-v850.c (v850_elf_relocate_section): Likewise.
* elf32-vax.c (elf_vax_relocate_section): Likewise.
* elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf64-mmix.c (mmix_elf_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-sh64.c (sh_elf64_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elflink.c (elf_reloc_link_order): Likewise.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
* elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
(_bfd_elf_mips_get_relocated_section_contents): Likewise.
* linker.c (_bfd_generic_reloc_link_order): Likewise.
* pdp11.c (pdp11_aout_link_input_section): Likewise.
(aout_link_reloc_link_order): Likewise.
* reloc.c (bfd_generic_get_relocated_section_contents):
Likewise.
* xcofflink.c (xcoff_reloc_link_order): Likewise.
* simple.c (simple_dummy_reloc_overflow): Updated.
include/
2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
PR 463
* bfdlink.h (bfd_link_callbacks): Add a pointer to struct
bfd_link_hash_entry to reloc_overflow.
ld/
2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
PR 463
* ldmain.c (reloc_overflow): Accept a pointer to struct
bfd_link_hash_entry. Report symbol location for relocation
overflow.
2004-10-21 15:28:33 +00:00
Alan Modra
a6b6b87b69
daily update
2004-10-21 00:00:07 +00:00
Andreas Schwab
1715e0e33e
* elf32-m68k.c (elf_m68k_plt_sym_val): New function.
...
(elf_backend_plt_sym_val): Define.
2004-10-20 21:29:45 +00:00
Danny Smith
db3d41a858
* config.bfd: Set targ_underscore=yes for PE COFF targets.
2004-10-20 01:58:47 +00:00
Alan Modra
3d7e772352
daily update
2004-10-20 00:00:06 +00:00
Alan Modra
4b85d634bf
* elf64-ppc.c (opd_entry_value): Handle --just-symbols objects.
...
(ppc64_elf_edit_opd): Likewise.
2004-10-19 12:00:58 +00:00
Mark Mitchell
6df4d94c68
* elfarm-nabi.c (ELF_DYNAMIC_SEC_FLAGS): Add comment.
...
* elflink.c (_bfd_elf_create_dynamic_sections): For a loaded PLT,
set SEC_ALLOC and SEC_LOAD.
2004-10-19 06:02:46 +00:00
Alan Modra
1c5a9c8047
daily update
2004-10-19 00:00:05 +00:00
Nick Clifton
00d962d155
Compute 'name' for relocs against both local and global symbols.
2004-10-18 08:06:31 +00:00
Alan Modra
40d98813d0
daily update
2004-10-18 00:00:06 +00:00
Alan Modra
e814958604
daily update
2004-10-17 00:00:06 +00:00
Daniel Jacobowitz
b58f81aef6
bfd/
...
* bfd-in2.h: Regenerate.
* bfd.c (struct bfd): Add no_export.
* elflink.c (elf_link_add_object_symbols): Handle no_export.
ld/
* ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
(check_excluded_libs): New.
(load_symbols): Call check_excluded_libs.
* ldlang.h (add_excluded_libs): New prototype.
* emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
(gld${EMULATION_NAME}_add_options): Add --exclude-libs.
(gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
* ld.texinfo (Command Line Variables): Document --exclude-libs.
(Options Specific to i386 PE Targets): Remove --exclude-libs.
ld/testsuite/
* ld-elf/exclude1.s, ld-elf/exclude2.s, ld-elf/exclude.exp: New.
2004-10-16 18:13:54 +00:00
Alan Modra
a872aebf0a
daily update
2004-10-16 00:00:07 +00:00
Alan Modra
7d3f158fa8
* config.bfd: Whitespace cleanup.
...
* Makefile.am: Run "make dep-am"
* Makefile.in: Regenerate.
2004-10-15 05:47:11 +00:00
Jakub Jelinek
6d2cd2108d
* elflink.c (struct already_linked_section): Removed.
...
(try_match_symbols_in_sections, already_linked): Removed.
(_bfd_elf_section_already_linked): Skip ^\.gnu\.linkonce\.[^.]*\.
prefix of section names when finding already_linked_table
chain. Compare section names. Instead of calling already_linked,
do it inline and only for sections in the same already_linked_list.
2004-10-15 05:19:19 +00:00
Alan Modra
e25e99ac83
daily update
2004-10-15 00:00:05 +00:00
Alan Modra
92e4ec35d9
* elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Add "info"
...
parameter. If called after _bfd_elf_write_section_eh_frame,
don't allow a -2 return unless need_* bit is already set, and
handle offsets adjusted for output_offset.
* elf-bfd.h (_bfd_elf_eh_frame_section_offset): Update prototype.
* elf.c (_bfd_elf_section_offset): Update call.
2004-10-14 23:38:08 +00:00