Daniel Jacobowitz
6f2f2c9d16
* elf-bfd.h (struct elf_backend_data): Remove plt_header_size.
...
* elf-m10300.c (elf_backend_plt_header_size): Don't define.
* elf32-arm.h (elf_backend_plt_header_size): Don't define.
* elf32-cris.c (elf_backend_plt_header_size): Don't define.
* elf32-i386.c (elf_backend_plt_header_size): Don't define.
* elf32-mips.c (elf_backend_plt_header_size): Don't define.
* elf32-ppc.c (elf_backend_plt_header_size): Don't define.
* elf32-s390.c (elf_backend_plt_header_size): Don't define.
* elf32-sh.c (elf_backend_plt_header_size): Don't define.
* elf32-sparc.c (elf_backend_plt_header_size): Don't define.
* elf64-alpha.c (elf_backend_plt_header_size): Don't define.
* elf64-hppa.c (elf_backend_plt_header_size): Don't define.
* elf64-mips.c (elf_backend_plt_header_size): Don't define.
* elf64-ppc.c (elf_backend_plt_header_size): Don't define.
* elf64-s390.c (elf_backend_plt_header_size): Don't define.
* elf64-sh64.c (elf_backend_plt_header_size): Don't define.
* elf64-sparc.c (elf_backend_plt_header_size): Don't define.
* elf64-x86-64.c (elf_backend_plt_header_size): Don't define.
* elfn32-mips.c (elf_backend_plt_header_size): Don't define.
* elfxx-ia64.c (elf_backend_plt_header_size): Don't define.
* elfxx-target.h (elf_backend_plt_header_size): Don't define
or include in target initializer.
2003-11-03 15:17:40 +00:00
Andrew Cagney
8530209598
2003-11-03 Andrew Cagney <cagney@redhat.com>
...
* section.c (bfd_set_section_contents): Make the "location" buffer
constant.
* bfd-in2.h: Re-generate.
Index: gdb/ChangeLog
2003-11-03 Andrew Cagney <cagney@redhat.com>
* exec.c (xfer_memory): Eliminate xfer_fn.
2003-11-03 14:44:08 +00:00
Andrew Cagney
fc0a224429
Index: sim/frv/ChangeLog
...
2003-10-30 Andrew Cagney <cagney@redhat.com>
* traps.c: Replace "struct symbol_cache_entry" with "struct
bfd_symbol".
Index: sim/d10v/ChangeLog
2003-10-30 Andrew Cagney <cagney@redhat.com>
* simops.c: Replace "struct symbol_cache_entry" with "struct
bfd_symbol".
Index: sim/common/ChangeLog
2003-10-30 Andrew Cagney <cagney@redhat.com>
* sim-trace.c, sim-base.h: Replace "struct symbol_cache_entry"
with "struct bfd_symbol".
Index: ld/ChangeLog
2003-10-30 Andrew Cagney <cagney@redhat.com>
* emultempl/pe.em, pe-dll.c: Replace "struct symbol_cache_entry"
with "struct bfd_symbol".
Index: bfd/ChangeLog
2003-10-30 Andrew Cagney <cagney@redhat.com>
* syms.c: Replace "struct symbol_cache_entry" with "struct
bfd_symbol".
* vms.h, targets.c, section.c, reloc.c, peicode.h: Ditto.
* mipsbsd.c, elf.c, linker.c, elf-bfd.h, ecoff.c: Ditto.
* cpu-z8k.c, cpu-ns32k.c, cpu-h8500.c, bfd.c, bfd-in.h: Ditto.
* bfd-in2.h: Re-generate.
2003-10-31 05:32:46 +00:00
Jakub Jelinek
0aa92b58af
* elfxx-ia64.c: Include objalloc.h, hashtab.h.
...
(struct elfNN_ia64_local_hash_entry): Remove root. Add id and r_sym
fields.
(struct elfNN_ia64_local_hash_table): Remove.
(struct elfNN_ia64_link_hash_table): Change loc_hash_table's type
to htab_t. Add loc_hash_memory field.
(elfNN_ia64_local_hash_table_init, elfNN_ia64_new_loc_hash_entry):
Removed.
(elfNN_ia64_local_htab_hash, elfNN_ia64_local_htab_eq): New
functions.
(elfNN_ia64_hash_table_create): Use hashtab.h hashtable for
loc_hash_table. Initialize loc_hash_memory.
(elfNN_ia64_hash_table_free): New function.
(elfNN_ia64_local_hash_lookup): Remove.
(elfNN_ia64_local_dyn_sym_thunk): Change into htab_traverse
callback.
(elfNN_ia64_dyn_sym_traverse): Use htab_traverse.
(get_local_sym_hash): Use hashtab.h hashtable for loc_hash_table.
(bfd_elfNN_bfd_link_hash_table_free): Define.
2003-10-30 14:41:37 +00:00
Alan Modra
68b6ddd08f
* elflink.c (_bfd_elf_link_record_dynamic_symbol): Modify versioned
...
symbol string in place.
2003-10-30 14:13:50 +00:00
Nick Clifton
3f8b3ef37b
Check the correct arch_info object's mach field: all PowerPC machines are
...
supersets of the original rs6000, but not later rs6000 machines.
2003-10-30 12:01:08 +00:00
Alan Modra
482e2e3726
* dwarf2.c (struct attribute): Delete "unsnd", "snd" and "addr".
...
Add "val" and "sval" fields.
(DW_STRING, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR): Delete.
(read_attribute_value): Expand and adjust DW_* occurrences.
(scan_unit_for_functions, parse_comp_unit): Likewise.
2003-10-30 09:50:02 +00:00
Nick Clifton
257e20bc32
Remove separate vxworks stanza; merge withother common ELF triples.
2003-10-30 09:05:14 +00:00
Alan Modra
ddb2b44229
* merge.c (struct sec_merge_sec_info): Update comment.
...
(struct sec_merge_hash_entry): Remove entsize.
(sec_merge_hash_lookup): Only adjust alignment when creating.
(sec_merge_emit): Remove register keyword.
(cmplengthentry, last4_eq, last_eq): Delete.
(strrevcmp, strrevcmp_align, is_suffix): New.
(merge_strings): Use them to implement fast suffix merging.
* elf-strtab.c (struct elf_strtab_hash_entry): Update comments.
Make "len" signed.
(_bfd_elf_strtab_add): Lose on >2G strings.
(_bfd_elf_strtab_emit): Don't emit strings with len < 0.
(cmplengthentry, last4_eq): Delete.
(strrevcmp, is_suffix): New.
(_bfd_elf_strtab_finalize): Rework to implement fast suffix merging.
2003-10-29 22:59:37 +00:00
Phil Blundell
5e681ec414
2003-10-29 Daniel Jacobowitz <drow@mvista.com>
...
* elf32-arm.h (elf32_arm_final_link_relocate): Move check for
SEC_ALLOC.
2003-10-29 Philip Blundell <philb@gnu.org>
* elf32-arm.h (elf32_arm_plt0_entry, elf32_arm_plt_entry): New
code sequence.
(PLT_HEADER_SIZE): New.
(struct elf32_arm_pcrel_relocs_copied): Rename to ...
(struct elf32_arm_relocs_copied): ... this. Count both
pcrel and non-pcrel relocs. All uses updated.
(struct elf32_arm_link_hash_table): Add pointers to dynamic linker
sections and symbol/section mapping cache.
(create_got_section): New.
(elf32_arm_create_dynamic_sections): New.
(elf_backend_create_dynamic_sections): Use it.
(elf32_arm_final_link_relocate): Support garbage collection of relocs.
(elf32_arm_check_relocs): Likewise.
(elf32_arm_adjust_dynamic_symbol): Likewise.
(elf32_arm_copy_indirect_symbol): New.
(elf32_arm_link_hash_table_create): Initialise new fields.
(elf32_arm_gc_sweep_hook): Implement.
(elf32_arm_discard_copies): Delete.
(elf32_arm_finish_dynamic_symbol): Use new PLT code.
(elf32_arm_finish_dynamic_sections): Likewise.
(elf_backend_can_refcount): Define.
(elf_backend_copy_indirect_symbol): Likewise.
(elf_backend_plt_header_size): Set to PLT_HEADER_SIZE.
2003-10-29 22:33:26 +00:00
Alan Modra
d37c89e56f
* elf64-ppc.c (elf_backend_grok_prstatus): Define.
...
(elf_backend_grok_psinfo): Define.
(ppc64_elf_grok_prstatus, ppc64_elf_grok_psinfo): New functions.
2003-10-29 13:06:06 +00:00
Alan Modra
62f3bb11d4
* elf.c (_bfd_elfcore_make_pseudosection): Allow multiple
...
sections with the same name.
(elfcore_grok_lwpstatus): Likewise.
(elfcore_grok_win32pstatus): Likewise.
(elfcore_grok_note): Likewise.
(elfcore_grok_nto_status): Likewise.
(elfcore_grok_nto_gregs): Likewise.
2003-10-29 11:15:24 +00:00
Daniel Jacobowitz
35a0f41580
* elf32-arm.h (elf32_arm_merge_private_bfd_data): Never skip dynamic
...
objects.
2003-10-27 17:33:44 +00:00
Richard Sandiford
e3d54347fe
* elfxx-mips.c (mips_elf_create_got_section): Initialize global_gotno.
2003-10-24 15:18:29 +00:00
H.J. Lu
5e35cbc224
bfd/
...
2003-10-24 H.J. Lu <hongjiu.lu@intel.com>
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Look up
hash table for real symbols.
include/
2003-10-24 H.J. Lu <hongjiu.lu@intel.com>
* bfdlink.h (bfd_elf_version_expr): Add "symbol" and remove
"wildcard".
ld/
2003-10-24 H.J. Lu <hongjiu.lu@intel.com>
* ldlang.c (lang_vers_match): Check "symbol" instead of
"wildcard" and "pattern". Fix a typo.
(lang_finalize_version_expr_head): Likewise.
(lang_register_vers_node): Likewise.
(realsymbol): New function.
(lang_new_vers_pattern): Set "symbol" and remove "wildcard".
* ldlex.l (V_IDENTIFIER): Allow '\\'.
2003-10-24 14:55:14 +00:00
Michael Snyder
9c3ed942dd
2003-10-23 Michael Snyder <msnyder@redhat.com>
...
* section.c (asection): Fix typo in comment.
2003-10-23 18:27:41 +00:00
Alan Modra
0d4792f716
* elf64-ppc.c (get_tls_mask): Add toc_symndx param, save toc
...
reloc symbol index to it. Don't allow gd syms in shared libs
to be optimized.
(ppc64_elf_tls_optimize): Adjust get_tls_mask call.
(ppc64_elf_size_stubs): Likewise.
(ppc64_elf_relocate_section): Check that tls relocs are only used
with tls syms, and similarly for non-tls. Correct symbol used
when optimizing toc tls code.
2003-10-23 09:02:33 +00:00
Nick Clifton
c9ac89782d
(coff_swap_scnhdr_in): Only remove padding when processing an executable.
2003-10-22 15:12:58 +00:00
Jakub Jelinek
108ba30509
bfd/
...
* elflink.c (_bfd_elf_export_symbol): Adjust for globals and locals
field changes.
(_bfd_elf_link_assign_sym_version): Likewise.
* elflink.h (size_dynamic_sections): Likewise.
include/
* bfdlink.h (struct bfd_elf_version_expr): Remove match field.
Add wildcard and mask fields.
(BFD_ELF_VERSION_C_TYPE): Define.
(BFD_ELF_VERSION_CXX_TYPE): Likewise.
(BFD_ELF_VERSION_JAVA_TYPE): Likewise.
(struct bfd_elf_version_expr_head): New.
(struct bfd_elf_version_tree): Add match field.
Change type of globals and locals fields
to struct bfd_elf_version_expr_head.
ld/
* ldlang.c: Include hashtab.h.
(lang_vers_match_lang_c, lang_vers_match_lang_cplusplus,
lang_vers_match_lang_java): Remove.
(lang_vers_match): New function.
(lang_new_vers_pattern): Initialize wildcard and mask
fields, don't initialize match.
(lang_new_vers_node): Use xcalloc. Adjust for globals and
locals field type changes. Set match field.
(version_expr_head_hash, version_expr_head_eq): New functions.
(lang_finalize_version_expr_head): New function.
(lang_register_vers_node): Call lang_finalize_version_expr_head.
Search in hash table if not wildcard when looking for duplicates.
* emultempl/ppc64elf.em (new_vers_pattern): Don't bother with
duplicate checking. Initialize all fields of dot_entry from entry
with the exception of pattern and next.
2003-10-22 06:58:17 +00:00
Corinna Vinschen
af9ba62190
* archures.c (bfd_mach_sh4a, bfd_mach_sh4al_dsp, bfd_mach_sh4_nofpu,
...
bfd_mach_sh4a_nofpu): New machine types.
* bfd-in2.h: Rebuilt.
* cpu-sh.c (compatible): Remove unused function.
(SH4A_NEXT, SH4AL_DSP_NEXT, SH4_NOFPU_NEXT, SH4A_NOFPU_NEXT): New.
(arch_info_struct): Add sh4a, sh4al_dsp, sh4-nofpu and sh4a-nofpu.
* elf32-sh.c (sh_elf_set_mach_from_flags): Handle them.
2003-10-21 15:49:45 +00:00
Nick Clifton
5a21e886d0
Fix up error messages for Maverick.
2003-10-21 14:20:40 +00:00
Nick Clifton
b749473bc4
Set the machine number as well as the architecture when converting from a
...
binary file to another file type.
2003-10-21 14:08:12 +00:00
Nick Clifton
3e60263266
Add ColfFire v4 support
2003-10-21 13:28:59 +00:00
Andrew Cagney
198beae2cf
2003-10-19 Andrew Cagney <cagney@redhat.com>
...
* targets.c: Replace "struct sec" with "struct bfd_section"
* syms.c, sparclynx.c, section.c, opncls.c: Ditto.
* libcoff-in.h, libbfd-in.h, elfxx-target.h: Ditto.
* elf.c, coffgen.c, bfd.c, bfd-in.h, aoutf1.h: Ditto.
* aout-tic30.c, aout-target.h:
* bfd-in2.h, libcoff.h, libbfd.h: Regenerate.
Index: binutils/ChangeLog
2003-10-19 Andrew Cagney <cagney@redhat.com>
* coffgrok.h (coff_section): Replace 'struct sec" with "struct
bfd_section".
Index: gdb/ChangeLog
2003-10-19 Andrew Cagney <cagney@redhat.com>
* symtab.c: Replace "struct sec" with "struct bfd_section".
* objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
Index: ld/ChangeLog
2003-10-19 Andrew Cagney <cagney@redhat.com>
* pe-dll.c: Replace "struct sec" with "struct bfd_section".
Index: sim/common/ChangeLog
2003-10-19 Andrew Cagney <cagney@redhat.com>
* sim-base.h: Replace "struct sec" with "struct bfd_section".
2003-10-20 14:38:46 +00:00
Hans-Peter Nilsson
f60ebe1430
Support linker relaxation of new R_MMIX_PUSHJ_STUBBABLE relocs.
...
* elf64-mmix.c (MAX_PUSHJ_STUB_SIZE): New macro.
(struct _mmix_elf_section_data): New member pjs.
(mmix_set_relaxable_size, mmix_elf_get_section_contents): New
functions.
(elf_mmix_howto_table): New entry for R_MMIX_PUSHJ_STUBBABLE.
(mmix_reloc_map): Ditto.
(mmix_elf_relocate_section): Handle R_MMIX_PUSHJ_STUBBABLE.
(mmix_final_link_relocate, mmix_elf_check_common_relocs): Ditto.
(mmix_elf_perform_relocation): Ditto. Don't mark parameter addr
unused.
(mmix_elf_check_relocs): Move early return to after
mmix_elf_check_common_relocs call.
(mmix_elf_symbol_processing): Fix cut-and-pasto in head comment.
(_bfd_mmix_before_linker_allocation): Rename from
_bfd_mmix_prepare_linker_allocated_gregs. All referers changed.
Arrange to set the initial relaxable size of sections.
(_bfd_mmix_after_linker_allocation): Rename from
_bfd_mmix_finalize_linker_allocated_gregs.
(mmix_elf_relax_section): Relax a R_MMIX_PUSHJ_STUBBABLE reloc.
(bfd_elf64_get_section_contents): Define.
* reloc.c: Add ENUMX for BFD_RELOC_MMIX_PUSHJ_STUBBABLE.
* libbfd.h, bfd-in2.h: Regenerate.
2003-10-18 15:42:40 +00:00
Hans-Peter Nilsson
4e2147ff81
* reloc.c (bfd_generic_relax_section): Default-set
...
section->_cooked_size here.
(bfd_generic_get_relocated_section_contents): Don't set it here.
Explain why.
2003-10-17 23:03:44 +00:00
Dave Anglin
4b71bec021
* elf32-hppa.c (elf32_hppa_relocate_section): Skip relocation if
...
output section has been discarded.
2003-10-17 16:43:14 +00:00
Nick Clifton
d4e2de6bc2
Fix normal operation for h8300-coff target
2003-10-17 10:23:33 +00:00
Christopher Faylor
98a96df7f5
* peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't calculate image size for
...
sections which lack size info.
2003-10-17 03:30:27 +00:00
Danny Smith
2cefff799c
* configure.host: Add __USE_MINGW_FSEEK to HDEFINES for
...
mingw32.
2003-10-17 02:15:53 +00:00
H.J. Lu
3e0e1ef196
2003-10-16 H.J. Lu <hongjiu.lu@intel.com>
...
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also warn
undefined patterns with '*'.
2003-10-16 21:05:32 +00:00
H.J. Lu
9da84788da
2003-10-16 H.J. Lu <hongjiu.lu@intel.com>
...
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't
use the last CIE from a different section.
(_bfd_elf_write_section_eh_frame): Don't pad beyond the raw
size of the output section.
2003-10-16 21:04:04 +00:00
Roland McGrath
ac39399582
.
2003-10-16 18:55:52 +00:00
H.J. Lu
7aaa0689cc
2003-10-16 H.J. Lu <hongjiu.lu@intel.com>
...
* elf32-xtensa.c (xtensa_read_table_entries): The external size
of entry is 8 bytes.
2003-10-16 15:25:54 +00:00
Andrew Cagney
6cee3f79e4
Index: doc/ChangeLog
...
2003-10-15 Andrew Cagney <cagney@redhat.com>
* bfdint.texi (BFD target vector symbols): Rename _get_symtab to
_canonicalize_symtab.
2003-10-15 Andrew Cagney <cagney@redhat.com>
* targets.c (BFD_JUMP_TABLE_SYMBOLS): Replace NAME##_get_symtab
with NAME##_canonicalize_symtab.
* libcoff-in.h (coff_canonicalize_symtab): Update.
* xsym.h (bfd_sym_canonicalize_symtab): Update.
* elf-bfd.h (_bfd_elf_canonicalize_symtab): Update.
* coffgen.c (coff_canonicalize_symtab): Update.
* libbfd-in.h (_bfd_nosymbols_canonicalize_symtab): Update.
* libnlm.h (nlmNAME(canonicalize_symtab)): Update.
* ieee.c (ieee_vec): Update comment.
* libecoff.h (_bfd_ecoff_canonicalize_symtab): Update.
* mmo.c (mmo_canonicalize_symtab): Update.
* nlm-target.h (nlm_canonicalize_symtab): Update.
* nlmcode.h (nlm_canonicalize_symtab): Update.
* i386msdos.c (msdos_canonicalize_symtab): Update.
* hp300hpux.c (MY (canonicalize_symtab)): Update.
* oasys.c (oasys_canonicalize_symtab): Update.
* som.c (som_canonicalize_symtab): Update.
* pef.c (bfd_pef_canonicalize_symtab): Update.
* nlmcode.h (nlm_canonicalize_symtab): Update.
* xsym.c (bfd_sym_canonicalize_symtab): Update.
* vms.c (vms_canonicalize_symtab): Update.
* versados.c (versados_canonicalize_symtab): Update.
* mach-o.c (bfd_mach_o_canonicalize_symtab): Update.
* ieee.c (ieee_canonicalize_symtab): Update.
* pdp11.c (NAME(aout,canonicalize_symtab)): Update.
* reloc.c: Update comment.
* libaout.h (NAME(aout,canonicalize_symtab)): Update.
* coff64-rs6000.c (aix5coff64_vec): Update.
* coff64-rs6000.c (bfd_xcoff_aix5_backend_data): Update.
* coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update.
* aoutx.h (NAME(aout,canonicalize_symtab)): Update.
* elfxx-target.h (bfd_elfNN_canonicalize_symtab): Update.
* hp300hpux.c (MY_canonicalize_symtab): Update.
* ecoff.c (_bfd_ecoff_canonicalize_symtab): Update.
* aout-tic30.c (MY_canonicalize_symtab): Update.
* aout-target.h (MY_canonicalize_symtab): Update.
* ppcboot.c (ppcboot_canonicalize_symtab): Update.
* elf.c (_bfd_elf_canonicalize_symtab): Update.
* elfcode.h (elf_canonicalize_symtab): Update.
* ihex.c (ihex_canonicalize_symtab): Update.
* tekhex.c (tekhex_canonicalize_symtab): Update.
* binary.c (binary_canonicalize_symtab): Update.
* srec.c (srec_canonicalize_symtab): Update.
2003-10-16 04:11:10 +00:00
Kazu Hirata
6288878d4b
* elf32-h8300.c (elf_reloc_map): Fix a comment typo.
2003-10-15 19:08:10 +00:00
Kaz Kojima
46e993b970
[bfd]
...
* elf32-sh.c (sh_elf_relocate_section): Handle R_SH_IMM_*_PCREL
relocations.
(sh_elf_check_relocs): Likewise.
* elf32-sh64.c (elf_backend_merge_symbol_attribute): Define.
(sh64_elf_merge_symbol_attribute): New.
* elf64-sh64.c (elf_backend_merge_symbol_attribute): Define.
(sh64_elf64_merge_symbol_attribute): New.
[ld/testsuite]
* ld-sh/sh64/rd-sh64.exp: If the test matches *-dso.d, copy
the output of linker to the file tmpdir/*-dso.so.
* ld-sh/sh64/stobin-0-dso.d: New.
* ld-sh/sh64/stobin-1.d: New.
* ld-sh/sh64/stobin.s: New.
* ld-sh/sh64/stolib.s: New.
2003-10-15 06:23:55 +00:00
Kaz Kojima
9bf7216d00
* elf-bfd.h (struct elf_backend_data): New function pointer member
...
elf_backend_merge_symbol_attribute.
* elflink.h (elf_link_add_object_symbols): Adjust call to
elf_backend_merge_symbol_attribute if the backend defined it.
* elfxx-target.h (elf_backend_merge_symbol_attribute): New macro.
(elfNN_bed): Add that to the initializer.
2003-10-14 22:43:10 +00:00
Bob Wilson
b614a7028d
bfd ChangeLog:
...
2003-10-14 Bob Wilson <bob.wilson@acm.org>
* elf32-xtensa.c (get_is_linkonce_section): Delete.
(xtensa_is_property_section, xtensa_is_littable_section): Use
XTENSA_INSN_SEC_NAME and XTENSA_LIT_SEC_NAME macros. Do not recognize
linkonce sections containing ".xt.insn" and ".xt.lit" substrings.
(xtensa_get_property_section_name): Check section name instead of
calling get_is_linkonce_section. Remove unused bfd parameter. Use
XTENSA_INSN_SEC_NAME and XTENSA_LIT_SEC_NAME macros. Never generate
linkonce section names by appending ".xt.insn" or ".xt.lit".
(xtensa_read_table_entries): Remove bfd argument in call to
xtensa_get_property_section_name. Free section name when done.
(elf_xtensa_combine_prop_entries): Free leaking table.
gas ChangeLog:
2003-10-14 Bob Wilson <bob.wilson@acm.org>
* config/tc-xtensa.c (xtensa_create_property_segments): Remove bfd
argument in call to xtensa_get_property_section_name. Formatting.
include ChangeLog:
2003-10-14 Bob Wilson <bob.wilson@acm.org>
* elf/xtensa.h: Formatting. Fix comments about property section
names for linkonce sections.
2003-10-14 22:28:28 +00:00
Richard Sandiford
98a8deaf8a
* elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Don't add
...
DT_MIPS_LIBLIST or DT_MIPS_CONFLICT entries.
(_bfd_mips_elf_finish_dynamic_symbol): Don't handle them. Don't
handle DT_MIPS_MSYM. Set DT_RELSZ based on the number of relocations
that were needed.
(_bfd_mips_elf_modify_segment_map): Fix placement of PT_MIPS_OPTIONS.
(_bfd_mips_elf_merge_private_bfd_data): Ignore EF_MIPS_UCODE.
2003-10-13 19:51:10 +00:00
H.J. Lu
3f7deb8a34
bfd/
...
2003-10-10 H.J. Lu <hongjiu.lu@intel.com>
* bfd-in.h (bfd_elf32_ia64_after_parse): New prototype.
(bfd_elf64_ia64_after_parse): Likewise.
* bfd-in2.h: Regenerated.
* elfxx-ia64.c (oor_ip): New.
(oor_branch_size): Likewise.
(bfd_elfNN_ia64_after_parse): Likewise.
(elfNN_ia64_relax_section): Use oor_ip if oor_branch_size
equals sizeof (oor_ip).
ld/
2003-10-10 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.am (eelf64_ia64.c): Also depend on
$(srcdir)/emultempl/ia64elf.em.
* Makefile.in: Regenerated.
* emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Set to ia64elf.
* emultempl/ia64elf.em: New.
2003-10-13 15:55:51 +00:00
Kaz Kojima
0c72ffe04b
* elf64-sh64.c (sh_elf64_relocate_section): Tidy up for the
...
renumbering of some relocation numbers.
2003-10-13 05:11:30 +00:00
Alan Modra
8d6ad26e17
* coff-sh.c: Move definition of MAP and guard more code with
...
COFF_IMAGE_WITH_PE.
2003-10-11 13:08:44 +00:00
Alan Modra
16b79bec1d
Oops. missed a line.
2003-10-11 12:33:50 +00:00
Alan Modra
a7f49d812f
* section.c (bfd_get_section_size_before_reloc): Ignore reloc_done.
...
* bfd-in2.h: Regenerate.
2003-10-11 12:32:18 +00:00
H.J. Lu
ede6aaf391
2003-10-10 H.J. Lu <hongjiu.lu@intel.com>
...
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* doc/Makefile.in: Likewise.
2003-10-10 15:29:50 +00:00
H.J. Lu
a3aa444856
2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
...
* cofflink.c: Include "safe-ctype.h".
(coff_link_add_symbols): Use ISDIGIT instead of isdigit.
2003-10-09 18:15:59 +00:00
Dave Brolley
9c8ee6396f
2003-10-08 Dave Brolley <brolley@redhat.com>
...
On behalf of Michael Snyder <msnyder@redhat.com>
* archures.c: Add FRV fr550 machine.
* cpu-frv.c: Ditto.
* elf32-frv.c: Ditto.
* bfd-in2.h: Regenerate.
2003-10-08 17:57:59 +00:00
Thiemo Seufer
6a69177919
* elfxx-mips.c (STUB_MOVE,STUB_LI16): Fix stub code
...
for non-SGI N64 ABI. Improve code consitency.
2003-10-08 17:36:19 +00:00
Nick Clifton
afa105f875
Include bfd_elf64_sparc_vec if BFD64 is enabled.
2003-10-08 13:50:23 +00:00
Alexandre Oliva
b15b52efa3
* elf32-frv.c (elf32_frv_howto_table): Set R_FRV_LABEL16's
...
rightshift to 2.
2003-10-07 19:17:23 +00:00
Nathan Sidwell
29ca8dc5bb
bfd/Changelog:
...
* libbfd-in.h (_bfd_link_section_stabs): Add string offset
parameter.
* cofflink.c (coff_link_add_symbols): Deal with split stab
sections.
* elflink.h (elf_link_add_object_symbols): Deal with split stab
sections.
* stabs.c (_bfd_link_section_stabs): Add string offset parameter.
* libbfd.h: Regenerated.
ld/ChangeLog:
* ldwrite.c (unsplittable_name): New.
(clone_section): Strip existing numeric suffix. Only truncate names
for coff targets.
(split_sections): Use unsplittable_name.
binutils/ChangeLog:
* objdump.c (read_section_stabs): Just read one section, return
pointer to it. Add size parameter.
(print_section_stabs): Add string offset parameter. Adjust.
(struct stab_section_names): Add string offset member.
(find_stabs_sections): Correct check for split section suffix,
adjust read_section_stabs and print_section_stabs calls.
(dump_stabs_section): Clear string_offset, free string table.
2003-10-07 08:53:42 +00:00
Nathan Sidwell
cd339148de
* coffcode.h (coff_set_alignment_hook): With PE_COFF reloc
...
overflow, set reloc start position to after the count
reloc. Subtract one from num relocs. Give error on 0xffff relocs
and no overflow.
* cofflink.c (_bfd_coff_final_link): Deal with PE_COFF reloc
overflow.
* peXXigen.c (_bfd_XXi_swap_scnhdr_out): Do overflow if >=
0xffff.
2003-10-07 08:49:11 +00:00
H.J. Lu
10cf14ea3d
2003-10-06 H.J. Lu <hongjiu.lu@intel.com>
...
* elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Pad the
last CIE/FDE if needed.
2003-10-06 18:10:48 +00:00
Nick Clifton
85cf2a8a15
Change target of hppa-netbsd port
2003-10-06 11:01:36 +00:00
Nick Clifton
4615568e51
Add i386-knetbsd-gnu triplet.
2003-10-06 09:12:39 +00:00
Christian Groessler
8b7cf393a5
2003-10-04 Christian Groessler <chris@groessler.org>
...
* coff-z8k.c (extra_case): Fix displacement length check for R_JR
and R_CALLR.
2003-10-04 21:09:29 +00:00
Stephane Carrez
0a6a3ebe97
* elf32-m68hc1x.c: Update to ISO C90; replace PTR with void*.
...
* elf32-m68hc11.c: Likewise.
* elf32-m68hc12.c: Likewise.
* elf32-m68hc1x.h: Likewise.
2003-10-04 21:02:53 +00:00
Stephane Carrez
17e58af002
* elf32-m68hc1x.c (_bfd_m68hc11_elf_merge_private_bfd_data): Fix merge
...
of flags between HC12 and HCS12.
2003-10-04 20:07:24 +00:00
Nick Clifton
27c630ba7a
Set SEC_EXCLUDE flag on sections which become empty after merging.
2003-10-04 10:19:26 +00:00
Jakub Jelinek
1fc0d17365
* elfxx-ia64.c (ia64_howto_table): Fix size of R_IA64_TPREL64[LM]SB,
...
R_IA64_DTPREL{32,64}[LM]SB and R_IA64_DTPMOD64[LM]SB.
2003-09-30 21:18:46 +00:00
Chris Demetriou
5f74bc130d
[ bfd/ChangeLog ]
...
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* archures.c (bfd_mach_mipsisa64r2): New define.
* bfd-in2.h: Regenerate.
* aoutx.h (NAME(aout,machine_type)): Handle bfd_mach_mipsisa64r2.
* cpu-mips.c (I_mipsisa64r2): New enum value.
(arch_info_struct): Add entry for I_mipsisa64r2.
* elfxx-mips.c (_bfd_elf_mips_mach)
(_bfd_mips_elf_print_private_bfd_data): Handle E_MIPS_ARCH_64R2.
(mips_set_isa_flags): Add bfd_mach_mipsisa64r2 case.
(mips_mach_extensions): Add entry for bfd_mach_mipsisa64r2.
[ binutils/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* readelf.c (get_machine_flags): Handle E_MIPS_ARCH_64R2.
[ gas/Changelog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* configure.in (mipsisa64r2, mipsisa64r2el, mipsisa64r2*): New CPUs.
* configure: Regenerate.
* config/tc-mips.c (imm2_expr): New variable.
(md_assemble, mips16_ip): Initialize imm2_expr.
(ISA_HAS_64BIT_REGS, ISA_HAS_DROR, ISA_HAS_ROR): Add ISA_MIPS64R2.
(macro_build): Handle +A, +B, +C, +E, +F, +G, and +H format operands.
(macro): Handle M_DEXT and M_DINS.
(validate_mips_insn): Handle +E, +F, +G, +H, and +I format operands.
(mips_ip): Likewise.
(OPTION_MIPS64R2): New define.
(md_longopts): New entry for -mips64r2 (OPTION_MIPS64R2).
OPTION_ASE_BASE): Increase to compensate for OPTION_MIPS64R2.
(md_parse_option): Handle OPTION_MIPS64R2.
(s_mipsset): Handle setting "mips64r2" ISA.
(mips_cpu_info_table): Add mips64r2.
(md_show_usage): Document -mips64r2 option.
* doc/as.texinfo: Docuemnt -mips64r2 option.
* doc/c-mips.texi: Likewise.
[ gas/testsuite/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* gas/mips/cp0-names-mips64r2.d: New file.
* gas/mips/cp0sel-names-mips64r2.d: New file.
* gas/mips/elf_arch_mips64r2.d: New file.
* gas/mips/hwr-names-mips64r2.d: New file.
* gas/mips/mips32r2-ill-fp64.l: New file.
* gas/mips/mips32r2-ill-fp64.s: New file.
* gas/mips/mips64r2-ill.l: New file.
* gas/mips/mips64r2-ill.s: New file.
* gas/mips/mips64r2.d: New file.
* gas/mips/mips64r2.s: New file.
* gas/mips/mips.exp: Define "mips64r2" arch, and run new tests.
[ include/elf/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* mips.h (E_MIPS_ARCH_64R2): New define.
[ include/opcode/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* mips.h: Document +E, +F, +G, +H, and +I operand types.
Update documentation of I, +B and +C operand types.
(INSN_ISA64R2, ISA_MIPS64R2, CPU_MIPS64R2): New defines.
(M_DEXT, M_DINS): New enum values.
[ ld/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* ldmain.c (get_emulation): Ignore "-mips64r2".
[ ld/testsuite/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* ld-mips-elf/mips-elf-flags.exp: Add tests for combinations
with MIPS64r2.
[ opcodes/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* mips-dis.c (mips_arch_choices): Add entry for "mips64r2"
(print_insn_args): Add handing for +E, +F, +G, and +H.
* mips-opc.c (I65): New define for MIPS64r2.
(mips_builtin_opcodes): Add "dext", "dextm", "dextu", "dins",
"dinsm", "dinsu", "drotl", "drotr", "drotr32", "drotrv", "dsbh",
and "dshd" for MIPS64r2. Adjust "dror", "dror32", and "drorv" to
be supported on MIPS64r2.
2003-09-30 16:17:15 +00:00
H.J. Lu
b59dd4a540
2003-09-29 H.J. Lu <hongjiu.lu@intel.com>
...
* elfxx-ia64.c (elfNN_hpux_backend_symbol_processing): New.
Handle SHN_IA_64_ANSI_COMMON.
(elf_backend_section_from_bfd_section): Defined.
2003-09-29 23:25:08 +00:00
H.J. Lu
243ef1e0a5
2003-09-26 H.J. Lu <hongjiu.lu@intel.com>
...
* elflink.c (elf_link_read_relocs_from_section): Add an argument
of a pointer to section. Check bad symbol index.
(_bfd_elf_link_read_relocs): Modify calls to
elf_link_read_relocs_from_section.
2003-09-25 07:10:42 +00:00
DJ Delorie
d38eb334b6
* sh.h (R_SH_SWITCH8, R_SH_GNU_VTINHERIT, R_SH_GNU_VTENTRY,
...
R_SH_LOOP_START,R_SH_LOOP_END): Move to "reserved" spaces.
(R_SH_DIR16, R_SH_DIR8, R_SH_DIR8UL, R_SH_DIR8UW, R_SH_DIR8U,
R_SH_DIR8SW, R_SH_DIR8S, R_SH_DIR4UL, R_SH_DIR4UW, R_SH_DIR4U,
R_SH_PSHA, R_SH_PSHL): New.
* elf32-sh.c (sh_elf_howto_table): R_SH_SWITCH8,
R_SH_GNU_VTINHERIT, R_SH_GNU_VTENTRY,
R_SH_LOOP_START,R_SH_LOOP_END moved to "reserved" spaces,
R_SH_DIR16, R_SH_DIR8, R_SH_DIR8UL, R_SH_DIR8UW, R_SH_DIR8U,
R_SH_DIR8SW, R_SH_DIR8S, R_SH_DIR4UL, R_SH_DIR4UW, R_SH_DIR4U,
R_SH_PSHA, R_SH_PSHL added.
(sh_reloc_map): Add R_SH_DIR16 and R_SH_DIR8.
(sh_elf_relocate_section): Support new relocs.
2003-09-24 02:27:57 +00:00
Bob Wilson
f0578e28d6
* elf32-xtensa.c (elf_xtensa_relocate_section): Fix typo that clobbered
...
dynamic relocation offsets.
2003-09-23 20:23:55 +00:00
Alan Modra
010b84c1d3
* simple.c (bfd_simple_get_relocated_section_contents): Free the
...
hash table using _bfd_generic_link_hash_table_free.
2003-09-23 03:59:25 +00:00
Alan Modra
7dcb9820ee
* elf-bfd.h (struct bfd_elf_special_section): Remove "suffix". Change
...
type of prefix_length and suffix_length to int. Rename "attributes"
to "attr". Comment.
(_bfd_elf_get_sec_type_attr): Update prototype.
* elf.c (get_special_section): Rewrite.
(_bfd_elf_get_sec_type_attr): Return struct rather than passing in
attr and type pointers.
(_bfd_elf_new_section_hook): Adjust for above.
(special_sections): Merge suffix with prefix. Set
prefix_length for all entries. Set suffix_length appropriately.
* elf32-m32r.c (m32r_elf_special_sections): Likewise.
* elf32-m68hc11.c (elf32_m68hc11_special_sections): Likewise.
* elf32-m68hc12.c (elf32_m68hc12_special_sections): Likewise.
* elf32-mcore.c (mcore_elf_special_sections): Likewise.
* elf32-sh64.c (sh64_elf_special_sections): Likewise.
* elf32-v850.c (v850_elf_special_sections): Likewise.
* elf32-xtensa.c (elf_xtensa_special_sections): Likewise.
* elf64-alpha.c (elf64_alpha_special_sections): Likewise.
* elf64-hppa.c (elf64_hppa_special_sections): Likewise.
* elf64-ppc.c (ppc64_elf_special_sections): Likewise.
* elf64-sh64.c (sh64_elf64_special_sections): Likewise.
* elfxx-ia64.c (elfNN_ia64_special_sections): Likewise.
* elfxx-mips.c (_bfd_mips_elf_special_sections): Likewise.
* elf32-ppc.c (ppc_elf_special_sections): Likewise. Fix .plt flags.
2003-09-23 00:40:49 +00:00
Daniel Jacobowitz
61bcf37398
* elf64-alpha.c (elf64_alpha_create_got_section): Initialize
...
->got if the section already exists.
2003-09-21 19:24:52 +00:00
Nathan Sidwell
8bfd78b3d0
* dwarf2.c (decode_line_info): Cope with an initially empty
...
filename table.
2003-09-19 09:01:53 +00:00
H.J. Lu
6726e1ea5d
2003-09-18 H.J. Lu <hongjiu.lu@intel.com>
...
* acinclude.m4: Include ../config/accross.m4.
* aclocal.m4: Regenerated.
* configure.host (HOST_64BIT_TYPE): Remove if it is set to long
or long long.
(HOST_U_64BIT_TYPE): Remove if it is set to unsigned long long.
(host64): Remove if HOST_64BIT_TYPE is set to long.
* configure.in (HOST_64BIT_TYPE): Set according to the size of
long and long long.
(HOST_U_64BIT_TYPE): Likewise.
(host64): Likewise.
* configure: Regenerated.
2003-09-19 03:55:40 +00:00
Alan Modra
5de3bf9096
* elf.c (elfcore_write_note): Don't use sizeof(Elf_External_note)
...
since some ABIs round up the size of the struct.
2003-09-19 02:08:35 +00:00
H.J. Lu
9e4d8df340
2003-09-18 H.J. Lu <hongjiu.lu@intel.com>
...
* elflink.c (_bfd_elf_merge_symbol): Allow type change if
the old symbol is undefined and the new symbol is defined.
2003-09-18 19:01:46 +00:00
Andreas Schwab
228ce06419
* simple.c (bfd_simple_get_relocated_section_contents): Use
...
_bfd_generic_link_hash_table_create instead of
bfd_link_hash_table_create.
2003-09-18 09:10:41 +00:00
H.J. Lu
fdbdabdda5
2003-09-10 H.J. Lu <hongjiu.lu@intel.com>
...
* elfxx-ia64.c (elfNN_ia64_special_sections): Mark all sections
started with ".sbss" or "".sdata" as SHF_IA_64_SHORT.
2003-09-10 20:48:32 +00:00
Dave Anglin
a252afa4cd
* elf32-hppa.c (struct elf32_hppa_link_hash_entry,
...
hppa_link_hash_newfunc, hppa_build_one_stub,
elf32_hppa_adjust_dynamic_symbol, mark_PIC_calls, allocate_plt_static,
allocate_dynrelocs, elf32_hppa_size_dynamic_sections,
elf32_hppa_finish_dynamic_symbol): Remove pic_call field and all code
for generating import stubs for calls to statically linked PIC
functions.
(hppa_type_of_stub): Don't generate an import stub for calls to
statically linked pic functions. Generate import stubs for calls
in a shared object, to functions not in a regular file, and to
defined weak functions. Add new argument INFO.
(hppa_build_one_stub): Don't undef ADDIL_DP.
(elf32_hppa_check_relocs): Don't set SEC_HAS_GOT_REF flag.
(elf32_hppa_size_stubs): Pass info to hppa_type_of_stub.
(final_link_relocate): Change all DLTIND relocs to DPREL relocs in a
non-shared link. Convert instructions that use the the linkage table
pointer, or a facsimile thereof, to use the global data pointer when
the reloc has been changed.
2003-09-10 18:46:08 +00:00
Joel Brobecker
42acdc7c30
* archures.c: Add new machine names for hppa.
...
* bfd-in2.h: Regenerate.
* cpu-hppa.c: Use the new machine names.
2003-09-08 16:46:02 +00:00
Stephane Carrez
2a0e29b406
* elf32-m68hc1x.h (struct m68hc11_elf_link_hash_table): Remove
...
all_local_syms member.
* elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Use bfd_elf_get_elf_syms
to get the local symbols.
2003-09-06 21:09:40 +00:00
Stephane Carrez
3f533aa9ec
* elf32-m68hc12.c (elf32_m68hc12_special_sections): New for hc11.
...
(elf_backend_special_sections): Define.a
PR savannah/4950:
* elf32-m68hc11.c (elf32_m68hc11_special_sections): The .vectors
section is read-only.
2003-09-06 20:55:50 +00:00
Nick Clifton
8ad30312ff
Add binutils support for v850e1 processor
2003-09-04 11:04:38 +00:00
Nick Clifton
3922a8c154
Do not skip section symbols that are used in relocs.
2003-09-03 16:06:12 +00:00
Nick Clifton
13dfd2d039
Add *kfreebsd-gnu configuration support
2003-09-03 09:32:21 +00:00
Christian Groessler
1c0881ddd9
* elf32-i860.c (i860_howto_pc26_reloc): Finish relocation here
...
instead of returning bfd_reloc_continue.
2003-08-31 18:22:06 +00:00
Andreas Jaeger
ac0e732ef3
* merge.c: Update to ISO C90.
2003-08-31 10:07:47 +00:00
Ian Lance Taylor
49c97a80e3
* configure.in: Check for strtoull.
...
* bfd.c (bfd_scan_vma): Use strtoull when available.
* configure, config.in: Regenerate.
2003-08-27 17:57:33 +00:00
Ian Lance Taylor
ec317fb157
* configure.in: Define and substitute BFD_HOST_LONG_LONG.
...
* bfd-in.h: Define BFD_HOST_LONG_LONG. Test it rather than
__GNUC__ when deciding whether to use long long for
BFD_HOST_64_BIT.
* configure, Makefile.in, doc/Makefile.in, bfd-in2.h: Regenerate.
2003-08-27 17:43:39 +00:00
Christian Groessler
d539b3aa78
2003-08-27 Christian Groessler <chris@groessler.org>
...
* elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
i860_howto_splitn_reloc, i860_howto_highadj_reloc): New
functions.
(elf32_i860_howto_table): Insert the new functions as
'special_function's in the proper reloc type entries.
2003-08-27 13:28:42 +00:00
Richard Sandiford
73052b5e96
* elf32-frv.c (elf32_frv_relocate_section): Use
...
_bfd_elf_rela_local_sym.
2003-08-27 09:21:15 +00:00
Michael Snyder
2c848f79e9
2003-08-26 Michael Snyder <msnyder@redhat.com>
...
* cpu-frv.c: Remove unused enum.
2003-08-26 17:13:18 +00:00
Maciej W. Rozycki
980491e6d5
2003-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
...
* reloc.c: Fix documentation for MIPS ELF relocations.
libbfd.h: Regenerate.
bfd-in2.h: Regenerate.
2003-08-25 12:39:14 +00:00
Jason Eckhardt
6d1227b86c
2003-08-24 Jason Eckhardt <jle@rice.edu>
...
* coff-i860.c (CALC_ADDEND): Define to be a no-op.
2003-08-24 20:54:05 +00:00
Jason Eckhardt
f680ea79cc
2003-08-24 Jason Eckhardt <jle@rice.edu>
...
* elf32-i860.c (elf32_i860_relocate_pc16): Subtract 4 and
shift by 2 before storing the relocated value.
2003-08-24 18:16:46 +00:00
Jason Eckhardt
c28b1c2869
2003-08-23 Jason Eckhardt <jle@rice.edu>
...
[bfd/ChangeLog]
* coff-i860.c (coff_i860_reloc_nyi): New function.
(howto_table): Add entries for relocations PAIR, HIGHADJ, HIGH,
LOWn, SPLITn, and BRADDR.
(RTYPE2HOWTO): Check that the r_type is within the howto_table
before trying to access the entry.
(coff_i860_rtype_to_howto): Likewise.
(coff_i860_reloc_type_lookup): New function.
(i860_reloc_processing): New function.
(coff_bfd_reloc_type_lookup): Define macro.
(RELOC_PROCESSING): Define macro.
Minor formatting adjustments.
[include/coff/ChangeLog]
* coff/i860.h (COFF860_R_PAIR, COFF860_R_LOW0, COFF860_R_LOW1,
COFF860_R_LOW2, COFF860_R_LOW3, COFF860_R_LOW4, COFF860_R_SPLIT0,
COFF860_R_SPLIT1, COFF860_R_SPLIT2, COFF860_R_HIGHADJ,
COFF860_R_BRADDR): Define new relocation constants and document.
Minor formatting adjustments.
2003-08-23 23:00:09 +00:00
Alan Modra
40a0491a90
* elflink.h (elf_link_add_object_symbols): Don't crash on NULL owner.
2003-08-23 04:10:34 +00:00
H.J. Lu
69bbc4c090
2003-08-22 H.J. Lu <hongjiu.lu@intel.com>
...
* elfxx-ia64.c (elfNN_ia64_create_dynamic_sections): Align the
.got section at 8 bytes.
2003-08-22 23:35:59 +00:00
Nick Clifton
85db1db4b9
Fix spelling typo.
2003-08-21 16:26:20 +00:00
Nick Clifton
8b9561304c
Convert to ISO C90. Tidy up formatting.
2003-08-21 16:20:39 +00:00
Nick Clifton
6c21aa7634
For elf32-hppa-linux, objects can have OSABI=Linux or OSABI=SysV; check for
...
both.
2003-08-21 14:00:06 +00:00
Nick Clifton
3673a93e66
Updated translations
2003-08-21 13:52:58 +00:00
Richard Sandiford
427b80f4a9
* elf64-mips.c (elf_backend_copy_indirect_symbol): Define.
2003-08-20 13:53:42 +00:00
Nick Clifton
560e09e9cc
Better handking for unresolved symbols
2003-08-20 08:37:19 +00:00
H.J. Lu
4091ea4e21
2003-08-18 Andreas Schwab <schwab@suse.de>
...
* libpei.h (bfd_pe_executable_p): Also recognize efi-app
executables.
2003-08-18 18:26:56 +00:00
Hans-Peter Nilsson
b0cdc7bcb0
* simple.c (bfd_simple_get_relocated_section_contents): Move
...
reloc_done hack to before first bfd_section_size call. Change all
returns to use new wrapper macro RETURN, restoring sec->reloc_done.
2003-08-17 07:37:33 +00:00
Alan Modra
c1993d0493
* elf64-ppc.c: Don't include elf/ppc.h.
2003-08-16 13:42:43 +00:00
Richard Sandiford
792b4a532f
* elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Fix PT_DYNAMIC
...
code to work with 64-bit bfds.
2003-08-14 09:30:34 +00:00
Alan Modra
fdc09da8b5
* dep-in.sed: Remove libintl.h.
...
* Makefile.am (SRC-POTFILES.in, BLD-POTFILES.in): Unset LC_COLLATE.
(POTFILES.in): Remove target.
* Makefile.in: Regenerate.
2003-08-14 07:03:00 +00:00
Alan Modra
ee87f2dab8
* elf64-ppc.c (ppc64_elf_next_input_section): Update comment.
...
(ppc64_elf_relocate_section): For zero sym R_PPC64_TOC relocs,
use the function sym from the previous reloc.
2003-08-12 05:58:10 +00:00
Jakub Jelinek
15f40dfc73
* elf32-i386.c (elf_i386_relocate_section): Make undefined symbols
...
fatal if -pie.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
(ppc_elf_relocate_section) <case R_PPC_RELAX32>: Issue fatal error
on undefined symbols if -pie.
* elf32-sh.c (sh_elf_relocate_section): Likewise.
2003-08-11 14:26:11 +00:00
Alan Modra
6ab189d5a4
* elf64-ppc.c (ppc64_elf_relocate_section): Add special case for crt1.o
...
branch to __libc_start_main.
2003-08-11 11:31:01 +00:00
Nick Clifton
3b260895e3
Add MSP430 variants
2003-08-08 10:14:52 +00:00
Alan Modra
9c5bfbb7fd
* elfxx-target.h: Remove PTR cast.
...
* targets.c (bfd_target): Make backend_data const void *.
* elf-bfd.h: Constify all occurrences of struct elf_backend_data.
* elf-m10300.c: Likewise.
* elf.c: Likewise.
* elf32-hppa.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-m68hc1x.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-s390.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-sh64.c: Likewise.
* elf32-sparc.c: Likewise.
* elf32-xtensa.c: Likewise.
* elf64-mips.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.
* elf64-sh64.c: Likewise.
* elf64-sparc.c: Likewise.
* elf64-x86-64.c: Likewise.
* elfcode.h: Likewise.
* elfcore.h: Likewise.
* elflink.c: Likewise.
* elflink.h: Likewise.
* elfxx-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
* elfxx-mips.h: Likewise.
* elf.c (prep_headers): Remove useless check for null backend_data.
* bfd-in2.h: Regenerate.
2003-08-07 08:38:11 +00:00
Alan Modra
c39a58e6ff
* elf-bfd.h: Remove PARAMS macro. Replace PTR with void *.
...
(NAME): Use ## rather than CONCAT4 macro.
* elfcode.h: Remove one remaining PARAMS macro.
* elf-eh-frame.c: Convert to C90, remove unneeded casts and prototypes.
* elf-strtab.c: Likewise.
* elf-hppa.h: Likewise.
* elf32-hppa.h: Likewise.
* elf32-hppa.c: Likewise.
(elf32_hppa_add_symbol_hook): Delete.
(elf_backend_add_symbol_hook): Don't define.
* libhppa.h: Convert to C90. Replace INLINE with inline.
2003-08-07 07:25:34 +00:00
Alan Modra
97b639ba81
* elf64-ppc.c (ppc_stub_name): Tweak names for better readability.
...
(ppc64_elf_adjust_dynamic_symbol): Allow copy relocs against
function descriptors, but warn.
(ppc_build_one_stub): Remove a couple of vars. Move code creating
stub syms so that we can avoid a stub sym if we already have a
plt sym. Do not redefine an existing symbol.
(ppc64_elf_build_stubs): When --emit-stub-syms, print a symbol for
glink.
2003-08-06 12:23:37 +00:00
Nick Clifton
9e7d479d74
Updated French translations
2003-08-06 10:15:16 +00:00
Nick Clifton
4a21a4925a
Fix typo
2003-08-06 09:02:50 +00:00
Alan Modra
77f3d02765
* elflink.c (_bfd_elf_create_dynamic_sections): Mark .dynbss with
...
SEC_LINKER_CREATED.
2003-08-06 01:27:11 +00:00
Daniel Jacobowitz
50d6c87817
* elf32-arm.h (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
...
(elf32_arm_final_link_relocate, elf32_arm_relocate_section): Use it.
2003-08-05 16:24:12 +00:00
Nick Clifton
14abcef98a
Detect and issue a warning message if the line number table could not be read.
2003-08-05 08:25:17 +00:00
Nick Clifton
8c6756949e
Prefix .gnu.warning section messages with "warning: ".
2003-08-04 11:32:52 +00:00
Alan Modra
268b6b3931
* elfcode.h: Convert to C90, remove unneeded casts and prototypes.
...
* elfcore.h: Likewise.
* elflink.c: Likewise.
* elflink.h: Likewise.
* elf.c (sym_is_global): Remove INLINE.
(align_file_position): Replace INLINE with inline.
* elfcode.h (elf_swap_dyn_in, elf_swap_dyn_out): Remove INLINE.
(elf_file_p): Replace INLINE with inline.
2003-08-04 09:39:46 +00:00
Kaz Kojima
866f48b717
* elf32-sh.c (sh_elf_check_relocs): Don't set DF_TEXTREL here.
...
* ld-sh/shared-2.d, ld-sh/textrel1.s, ld-sh/textrel2.s: New test.
2003-08-02 13:46:44 +00:00
H.J. Lu
8651fcf94c
2003-08-01 H.J. Lu <hongjiu.lu@intel.com>
...
* elfxx-ia64.c (get_got): Align the .got section at 8 bytes.
2003-08-01 22:46:16 +00:00
H.J. Lu
37cd262974
2003-08-01 H.J. Lu <hongjiu.lu@intel.com>
...
* elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Use
ElfNN_External_Rela instead of Elf64_External_Rela.
2003-08-01 22:42:26 +00:00
Nick Clifton
91fb2a9d47
Add code to catch obsolete configurations and warn about them unless
...
--enable-obsolete is used. Use this to mark vax-vms port as obsolete.
2003-08-01 08:35:04 +00:00
Alan Modra
e656e36976
* elf32-ppc.c (ppc_elf_install_value): Tidy.
...
(ppc_elf_relax_section): Remove dead code. Remove unnecessary casts.
Formatting.
* elfxx-target.h: Remove PARAMS macro. Formatting.
2003-07-31 14:38:15 +00:00
Alan Modra
50bc79368a
* elf.c (bfd_section_from_r_symndx): Test for SHN_UNDEF.
...
* elf64-ppc.c (get_fdh): New function, split out from
ppc64_elf_edit_opd.
(ppc64_elf_check_relocs): Use get_fdh.
(func_desc_adjust): Likewise. Tidy.
(ppc64_elf_edit_opd): Tighten reloc checks. Free local_syms on error
exit. Use get_fdh. Account for superfluous dynamic relocs.
(ppc64_elf_relocate_section): Warning fix.
2003-07-31 14:34:13 +00:00
Jason Eckhardt
a62d170c66
2003-07-30 Jason Eckhardt <jle@rice.edu>
...
* coff-i860.c: Convert to ISO C90. Remove superflous prototypes.
2003-07-30 21:37:35 +00:00
Jason Eckhardt
7734b6e923
bfd:
...
2003-07-30 Jason Eckhardt <jle@rice.edu>
* elf32-i860.c: Convert to ISO C90. Remove superflous prototypes.
gas:
2003-07-30 Jason Eckhardt <jle@rice.edu>
* config/tc-i860.c: Convert to ISO C90.
2003-07-30 20:24:55 +00:00
Alan Modra
37f4508be1
* elf-hppa.h (elf_hppa_relocate_section): Look up dyn_h for undefweak.
...
* elf64-hppa.c (elf64_hppa_finalize_dlt): Check h->root.type.
2003-07-30 02:15:07 +00:00
Alan Modra
217aa764fc
* elf.c: Convert to C90, remove unnecessary prototypes and casts.
...
Replace PTR with void *. Formatting.
(_bfd_elf_assign_file_position_for_section): Remove INLINE.
(make_mapping): Likewise.
2003-07-30 02:08:06 +00:00
Alan Modra
494dac0c9f
* elf64-ppc.c (func_desc_adjust): Give linker created function
...
descriptor symbols a size and type.
(ppc64_elf_relocate_section): Correct lq insn test.
2003-07-29 06:47:10 +00:00
Eric Christopher
deaaf2f370
2003-07-28 Eric Christopher <echristo@redhat.com>
...
* elf32-ppc.c (R_PPC_RELAX32): New relocation.
(ppc_elf_install_value): New function.
(ppc_elf_sort_rela): Remove.
(ppc_elf_relax_section): Rewrite. Remove old relaxation
and replace with out of range branch stubs.
(ppc_elf_relocate_section): Handle R_PPC_RELAX32.
2003-07-28 Eric Christopher <echristo@redhat.com>
* ppc.h (R_PPC_RELAX32): New. Fake relocation.
2003-07-29 06:42:51 +00:00
Alexandre Oliva
709e685dff
* elf-m10300.c (mn10300_elf_relax_section): Take symbol hash table
...
from input_bfd.
2003-07-29 06:18:40 +00:00
Alan Modra
36c506c536
* elf.c (special_sections): Set attributes for .got and .plt.
2003-07-28 14:21:44 +00:00
Alan Modra
5d35169e36
* elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Ensure no copy relocs
...
on function descriptors.
(ELIMINATE_COPY_RELOCS): Expand comment.
(ppc64_elf_special_sections): Move. Don't include non-ppc64 sections.
Do include ".toc1".
2003-07-27 09:05:08 +00:00
H.J. Lu
3cddba1e54
bfd/
...
2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
* elf.c (_bfd_elf_new_section_hook): Set the default section
type to SHT_NULL.
(elf_fake_sections): Set the section type based on asect->flags
if it is SHT_NULL. Don't abort on processor specific section
types.
gas/
2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
* config/obj-elf.c (obj_elf_change_section): Update
elf_section_type and elf_section_flags only when they are
specified.
2003-07-26 01:06:27 +00:00
H.J. Lu
d622ef4b20
2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
...
* bfd-in2.h: Regenerated.
2003-07-25 14:55:16 +00:00
H.J. Lu
2f89ff8d8e
bfd/
...
2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
* elf-bfd.h (bfd_elf_special_section): New.
(elf_backend_data): Add special_sections, a pointer to
bfd_elf_special_section.
(elf_section_type). New.
(elf_section_flags): New.
(_bfd_elf_get_sec_type_attr): New.
* elf.c (_bfd_elf_make_section_from_shdr): Always use the
real section type/flags.
(special_sections): New.
(get_special_section): New.
(_bfd_elf_get_sec_type_attr): New.
(_bfd_elf_new_section_hook): Check special_section to set
elf_section_type and elf_section_flags.
(elf_fake_sections): Don't use section name to set ELF section
data.
* elf32-m32r.c (m32r_elf_special_sections): New.
(elf_backend_special_sections): Defined.
* elf32-m68hc11.c (elf32_m68hc11_special_sections): New.
(elf_backend_special_sections): Defined.
* elf32-mcore.c (mcore_elf_special_sections): New.
(elf_backend_special_sections): Defined.
* elf32-ppc.c (ppc_elf_special_sections): New.
(elf_backend_special_sections): Defined.
* elf32-sh64.c (sh64_elf_special_sections): New.
(elf_backend_special_sections): Defined.
* elf32-v850.c (v850_elf_special_sections): New.
(elf_backend_special_sections): Defined.
* elf32-xtensa.c (elf_xtensa_special_sections): New.
(elf_backend_special_sections): Defined.
* elf64-alpha.c (elf64_alpha_special_sections): New.
(elf_backend_special_sections): Defined.
* elf64-hppa.c (elf64_hppa_special_sections): New.
(elf_backend_special_sections): Defined.
* elf64-ppc.c (ppc64_elf_special_sections): New.
(elf_backend_special_sections): Defined.
* elf64-sh64.c (sh64_elf64_special_sections): New.
(elf_backend_special_sections): Defined.
* elfxx-ia64.c (elfNN_ia64_special_sections): New.
(elf_backend_special_sections): Defined.
* elfxx-mips.c (_bfd_mips_elf_special_sections): New.
* elfxx-mips.h (_bfd_mips_elf_special_sections): New.
(elf_backend_special_sections): Defined.
* elfxx-target.h (elf_backend_special_sections): New. Default
to NULL.
(elfNN_bed): Initialize special_sections.
* section.c (bfd_abs_section): Remove const.
(bfd_und_section): Likewise.
(bfd_com_section): Likewise.
(bfd_ind_section): Likewise.
gas/
2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
* config/obj-elf.c (special_sections): Removed.
(obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
elf_section_type and elf_section_flags.
(elf_frob_file): Set SHT_GROUP.
* config/obj-elf.h (obj_sec_set_private_data): New.
* config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): Removed.
* config/tc-ia64.h: Likewise.
* config/tc-m32r.h: Likewise.
* config/tc-m68hc11.h: Likewise.
* config/tc-mcore.h: Likewise.
* config/tc-mips.h: Likewise.
* config/tc-ppc.h: Likewise.
* config/tc-sh64.h: Likewise.
* config/tc-v850.h: Likewise.
* config/tc-xtensa.h: Likewise.
* config/tc-v850.h (SHF_V850_GPREL): Removed.
(SHF_V850_EPREL): Likewise.
(SHF_V850_R0REL): Likewise.
* subsegs.c (subseg_get): Call obj_sec_set_private_data if it
is defined.
include/elf/
2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
* v850.h (SHF_V850_GPREL): New.
(SHF_V850_EPREL): Likewise.
(SHF_V850_R0REL): Likewise.
2003-07-25 14:35:56 +00:00
Nick Clifton
2065057979
Include SEC_CODE so that code sections are assigned the LOAD attribute.
2003-07-25 10:50:03 +00:00
Kaz Kojima
09fd220b8e
* elf32-sh.c: Convert to C90. Replace PTR with void *.
...
* elf32-sh64-com.c: Likewise.
* elf32-sh64.c: Likewise.
* elf32-sh64.h: Likewise.
* elf64-sh64.c: Likewise.
2003-07-25 06:19:20 +00:00
Kaz Kojima
3d85aebe2a
* elf32-sh.c (sh_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
...
(allocate_dynrelocs): Likewise.
(sh_elf_relocate_section): Likewise. Use SYMBOL_REFERENCES_LOCAL.
(sh_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2003-07-24 11:37:02 +00:00
Nick Clifton
834d807bb8
Updated French translations
2003-07-24 11:16:05 +00:00
Bob Wilson
571b5725d5
* elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Make inline and move
...
near the beginning of the file. Swap order of arguments. Call
_bfd_elf_dynamic_symbol_p with "ignore_protected" set to 0.
(elf_xtensa_fix_refcounts): Adjust xtensa_elf_dynamic_symbol_p call.
(elf_xtensa_relocate_section): Likewise.
(shrink_dynamic_reloc_sections): Likewise.
2003-07-24 00:24:00 +00:00
Bob Wilson
b536dc1e25
* elf32-xtensa.c (plt_reloc_count): Fix typo in comment.
...
(elf_xtensa_size_dynamic_sections): Use elf_discarded_section.
(elf_xtensa_combine_prop_entries): Avoid returning non-zero without
first printing an error message.
(elf_xtensa_finish_dynamic_sections): Likewise.
(elf_xtensa_discard_info_for_section): Adjust size of .got.loc when
discarding literal table entries.
(elf_xtensa_merge_private_bfd_data): Remove newline from error message.
(elf_xtensa_do_asm_simplify): Likewise.
2003-07-24 00:13:42 +00:00
Stephane Carrez
7f88833084
* elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Avoid crash when
...
we have a local symbol in common section.
2003-07-23 19:40:23 +00:00
H.J. Lu
ecc27c311f
2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
...
* elflink.c (_bfd_elf_dynamic_symbol_p): Don't return TRUE for
weak symbols.
2003-07-22 15:52:44 +00:00
Nick Clifton
f9f3cf656a
Add C_TCSYM and C_ECOML to expected RS6000 storage classes.
2003-07-22 09:06:49 +00:00
H.J. Lu
bb32e54ff4
2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
...
* elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Mark
output_bfd unused to silence gcc.
2003-07-21 23:00:22 +00:00
Nick Clifton
796f2a93d1
Updated Swedish translation
2003-07-21 09:36:39 +00:00
Alan Modra
f6c52c1368
* elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Use..
...
(_bfd_elf_symbol_refs_local_p): ..this. Declare.
* elflink.c (_bfd_elf_symbol_refs_local_p): New function.
* elf32-i386.c (elf_i386_relocate_section): Remove h NULL test
now done in _bfd_elf_symbol_refs_local_p.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2003-07-21 00:24:10 +00:00
H.J. Lu
aa37626c9e
2003-07-18 H.J. Lu <hongjiu.lu@intel.com>
...
* elflink.c (_bfd_elf_dynamic_symbol_p): Undo the last change.
2003-07-19 06:41:42 +00:00
H.J. Lu
1e364ec981
2003-07-18 H.J. Lu <hongjiu.lu@intel.com>
...
* elf-bfd.h (SYMBOL_REFERENCES_LOCAL): Fix a typo.
(SYMBOL_CALLS_LOCAL): Likewise.
* elflink.c (_bfd_elf_dynamic_symbol_p): Return TRUE
immediately if symbol isn't defined locally.
2003-07-19 04:12:22 +00:00
Richard Henderson
986a241f8b
* elflink.c (_bfd_elf_dynamic_symbol_p): New.
...
* elf-bfd.h (_bfd_elf_dynamic_symbol_p): Declare it.
(SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Use it.
* elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Likewise.
* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
* elf64-hppa.c (elf64_hppa_dynamic_symbol_p): Likewise.
* elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Likewise.
Update all callers to provide the relocation being resolved.
2003-07-18 21:09:28 +00:00
Nick Clifton
ac4b3dd8ca
Define ARM_COFF_BUGFIX for arm-wince-pe targets
2003-07-17 14:27:38 +00:00
Nick Clifton
6c37ac4d15
Update translations
2003-07-17 14:22:45 +00:00
Richard Henderson
02e6ad56bf
* config.bfd, configure.host, configure.in: Remove ia64-aix support.
...
* elfxx-ia64.c, targets.c: Likewise.
2003-07-16 22:48:59 +00:00
Richard Henderson
5686517c77
* elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Properly return false
...
for symbols defined locally plus -Bsymbolic. Tidy logic.
2003-07-16 21:47:36 +00:00
Richard Sandiford
5a7ea74950
include/opcode/
...
* mips.h (CPU_RM7000): New macro.
(OPCODE_IS_MEMBER): Match CPU_RM7000 against 4650 insns.
bfd/
* archures.c (bfd_mach_mips7000): New.
* bfd-in2.h: Regenerated.
* cpu-mips.c (arch_info_struct): Add an entry for mips:7000.
* elfxx-mips.c (mips_set_isa_flags): Handle bfd_mach_mips7000.
(mips_mach_extensions): Add an entry for it.
opcodes/
* mips-dis.c (mips_arch_choices): Add rm7000 and rm9000 entries.
gas/
* config/tc-mips.c (hilo_interlocks): True for CPU_RM7000.
(mips_cpu_info_table): Add rm7000 and rm9000 entries.
gas/testsuite/
* gas/mips/rm7000.[sd]: New test.
* gas/mips/mips.exp: Run it.
2003-07-15 07:50:39 +00:00
Nick Clifton
76bff7057c
Update Turkish translation files for bfd, gas and opcodes
2003-07-14 11:18:13 +00:00
Nick Clifton
d0facd1b42
Set maxpagesize for NTO targets to 4k
2003-07-12 11:16:46 +00:00
Nick Clifton
bcb9b88db6
Set the IMAGE_FILE_32BIT_MACHINE flag for PE targets.
2003-07-12 10:55:05 +00:00
Richard Sandiford
7a9823f1a9
bfd/
...
* bfd-in.h (bfd_h8300_pad_address): Declare.
* bfd-in2.h: Regenerate.
* cpu-h8300.c (bfd_h8300_pad_address): New function.
* coff-h8300.c (h8300_reloc16_estimate): Use it to canonicalize
addresses before checking whether they can be relaxed.
(h8300_reloc16_extra_cases): Likewise for the R_MOVL2 sanity check.
Don't complain about overflows in general 8-bit relocations.
* elf32-h8300.c (elf32_h8_relax_section): Use bfd_h8300_pad_address.
Fix handling of R_H8_DIR24A8.
ld/testsuite/
* ld-h8300/relax-3{.s,.d,-coff.d}: New test.
* ld-h8300/h8300.exp: Run it.
2003-07-11 14:59:41 +00:00
Richard Sandiford
c6baf75ed1
* elf32-h8300.c: Convert function prototypes and definitions
...
to C90 syntax.
* coff-h8300.c: Likewise.
* cpu-h8300.c: Likewise.
2003-07-11 11:08:30 +00:00
Alan Modra
fce0080055
Update pot files.
2003-07-11 05:10:21 +00:00
Bob Wilson
e901de8951
bfd ChangeLog:
...
* elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Create new
.got.loc section. Do not set SEC_ALLOC or SEC_LOAD flags for the
.xt.lit.plt section.
(elf_xtensa_size_dynamic_sections): Set size of the .got.loc section
and allocate memory for it.
(elf_xtensa_combine_prop_entries): Copy contents of .xt.lit output
section to the .got.loc section.
(elf_xtensa_finish_dynamic_sections): Fix up call to
elf_xtensa_combine_prop_entries and set DT_XTENSA_GOT_LOC_OFF to
the address of .got.loc.
(relax_property_section): Shrink .got.loc to match changes in any
literal table section.
(xtensa_is_property_section): Change to match
xtensa_get_property_section_name.
(xtensa_is_littable_section): New.
ld ChangeLog:
* emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
with new .got.loc section.
(OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
non-relocating links.
(OTHER_SECTIONS): Add .xt.lit here. Change it to keep linkonce
sections separate for non-relocating links; likewise for .xt.insn.
2003-07-10 19:01:48 +00:00
H.J. Lu
eff26f7814
2003-07-10 H.J. Lu <hongjiu.lu@intel.com>
...
* elfxx-ia64.c (IA64_HOWTO): Set dst_mask to -1 instead of
-1LL.
2003-07-10 14:22:15 +00:00
Alan Modra
942e0f4252
* Makefile.am (BFD32_BACKENDS): Add elf32-am33lin.lo.
...
(BFD32_BACKENDS_CFILES): elf32-am33lin.c not elf32-am33lin.lo.
Run "make dep-am".
* Makefile.in: Regenerate.
2003-07-10 07:48:46 +00:00
Alexandre Oliva
73c3cd1c3d
2001-09-12 Alexandre Oliva <aoliva@redhat.com>
...
* elf32-am33lin.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
(ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
2001-06-02 Nick Clifton <nickc@cambridge.redhat.com>
* elf32-am33lin.c: Rename global functions.
2001-05-09 Alexandre Oliva <aoliva@redhat.com>
* config.bfd (am33_2.0, am33_2.0-*-linux*): Added.
* configure.in (bfd_elf32_am33lin_vec): Added.
* Makefile.am (BFD32_BACKENDS): Added elf32-am33lin.lo.
(elf32-am33lin.lo): List dependencies.
* aclocal.m4, configure, Makefile.in: Rebuilt.
* elf-m10300.c (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME,
ELF_ARCH, ELF_MACHINE_CODE, ELF_MAXPAGESIZE): Define only if
ELF_ARCH was not defined before.
(elf_symbol_leading_char): Define if not defined.
* elf32-am33lin.c: Override the definitions above.
* targets.c (bfd_elf32_am33lin_vec): New.
2003-07-10 04:44:37 +00:00
Alexandre Oliva
03a1283107
2002-12-12 Alexandre Oliva <aoliva@redhat.com>
...
* elf-m10300.c (elf32_mn10300_link_hash_newfunc): Initialize
pcrel_relocs_copied.
2001-12-13 Alexandre Oliva <aoliva@redhat.com>
* elf-m10300.c (ELF_DYNAMIC_INTERPRETER): Renamed from
ld-linux.so.2 to ld.so.1.
2001-10-10 Alexandre Oliva <aoliva@redhat.com>
* elf-m10300.c (elf_mn10300_sizeof_plt0): New macro.
(_bfd_mn10300_elf_adjust_dynamic_symbol): Use it.
(_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
* elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Allocate
.rela.* section contents with bfd_zalloc.
2001-09-25 Alexandre Oliva <aoliva@redhat.com>
* elf-m10300.c: Added declarations for functions missing them.
Merge some shared-library changes from the i386 back-end. Use
R_MN10300_RELATIVE instead of R_MN10300_PCREL32 and
R_MN10300_GLOB_DAT instead of R_MN10300_32 where appropriate.
(struct elf32_mn10300_link_hash_entry): Remove duplicates of
members of elf_link_hash_entry. Adjusted references.
(mn10300_elf_final_link_relocate): dynobj was already loaded
into a local variable, use it.
2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
* elf-m10300.c: Add missing function prototypes.
2001-08-24 Alexandre Oliva <aoliva@redhat.com>
* elf-m10300.c (mn10300_elf_relocate_section): Don't compute
relocation for dynamic relocations.
2001-05-16 Alexandre Oliva <aoliva@redhat.com>
* reloc.c (BFD_RELOC_MN10300_GOTOFF24): New.
* elf-m10300.c: Introduce GOTPC16, GOTOFF24, GOTOFF16 and
PLT16, and rename GOTPC to GOTPC32 and GOTOFF to GOTOFF32.
(_bfd_mn10300_elf_create_dynamic_sections): Move creation ot PLT...
(_bfd_mn10300_elf_create_got_section): ... here, so that its
adress is already known at the time we compute relaxations.
(mn10300_elf_relax_section): Relax GOTPC32, GOTOFF32, GOT32
and PLT32 to narrower relocations.
* libbfd.h, bfd-in2.h: Rebuilt.
2001-04-12 Alexandre Oliva <aoliva@redhat.com>
* reloc.c (BFD_RELOC_MN10300_GOT32, BFD_RELOC_MN10300_GOT24,
BFD_RELOC_MN10300_GOT16, BFD_RELOC_MN10300_COPY,
BFD_RELOC_MN10300_GLOB_DAT, BFD_RELOC_MN10300_JMP_SLOT,
BFD_RELOC_MN10300_RELATIVE): New relocs.
* libbfd.h, bfd-in2.h: Rebuilt.
* elf-m10300.c (struct elf_mn10300_pcrel_relocs_copied): New.
(struct elf32_mn10300_link_hash_entry): Added DSO-related
fields.
(elf_mn10300_howto): Defined new relocation types.
(mn10300_reloc_map): Map them.
(_bfd_mn10300_elf_create_got_section): New fn.
(mn10300_elf_check_relocs): Handle PIC relocs.
(mn10300_elf_final_link_relocate): Likewise.
(mn10300_elf_relocate_section): Handle DSOs.
(PLT0_ENTRY_SIZE, PLT_ENTRY_SIZE, PIC_PLT_ENTRY_SIZE): New macros.
(elf_mn10300_plt0_entry, elf_mn10300_plt_entry,
elf_mn10300_pic_plt_entry): New.
(elf_mn10300_sizeof_plt, elf_mn10300_plt_plt0_offset,
elf_mn10300_plt0_linker_offset, elf_mn10300_plt0_gotid_offset,
elf_mn10300_plt_temp_offset, elf_mn10300_plt_symbol_offset,
elf_mn10300_plt_reloc_offset: New macros.
(ELF_DYNAMIC_INTERPRETER): Likewise.
(_bfd_mn10300_elf_create_dynamic_sections): New function.
(_bfd_mn10300_elf_adjust_dynamic_symbol): Likewise.
(_bfd_mn10300_elf_discard_copies): Likewise.
(_bfd_mn10300_elf_size_dynamic_sections): Likewise.
(_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
(_bfd_mn10300_elf_finish_dynamic_sections): Likewise.
(elf_backend_can_gc_sections,
elf_backend_create_dynamic_sections,
elf_backend_adjust_dynamic_sections,
elf_backend_size_dynamic_sections,
elf_backend_finish_dynamic_symbol,
elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
elf_backend_plt_readonly, elf_backend_want_plt_sym,
elf_backend_got_header_size, elf_backend_plt_header_size): New
macros.
2003-07-10 03:20:00 +00:00
Alexandre Oliva
b08fa4d3bf
2001-05-06 Alexandre Oliva <aoliva@redhat.com>
...
* elf-m10300.c (compute_function_info): Account for AM33
registers in `movm' when computing stack space for `call' when
linking for AM33/2.0 link.
2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
* archures.c (bfd_mach_am33_2): Renamed from bfd_mach_am332.
* bfd-in2.h: Rebuilt.
* cpu-m10300.c (bfd_am33_2_arch): Renamed from bfd_am332_arch.
* elf-m10300.c: Updated.
2000-03-31 Alexandre Oliva <aoliva@cygnus.com>
* archures.c (bfd_mach_am332): Defined.
* bfd-in2.h: Rebuilt.
* cpu-m10300.c (bfd_am332_arch): Defined.
(bfd_am33_arch): Chained with am33-2.
* elf-m10300.c (elf_mn10300_mach): Handle am332.
(_bfd_mn10300_elf_final_write_processing): Likewise.
2003-07-10 02:53:10 +00:00
H.J. Lu
201933ea37
2003-07-09 H.J. Lu <hongjiu.lu@intel.com>
...
* elfxx-ia64.c (IA64_HOWTO): Set dst_mask to -1LL.
2003-07-10 01:30:16 +00:00
Alan Modra
e717da7ead
* elf64-ppc.c (bfd_elf64_mkobject): Define.
...
(struct ppc64_elf_obj_tdata): New.
(ppc64_elf_tdata, ppc64_tlsld_got): Define.
(ppc64_elf_mkobject): New function.
(struct got_entry): Add "owner". Move "tls_type".
(struct ppc_link_hash_table): Delete "relgot", "tlsld_got".
(ppc64_elf_init_stub_bfd): New function.
(create_got_section): Create header .got in dynobj. Create .got
and .rela.got in each bfd. Stash pointers in ppc64_elf_obj_tdata.
(ppc64_elf_create_dynamic_sections): Don't call create_got_section.
Look for dynobj .got, and test it.
(ppc64_elf_copy_indirect_symbol): Adjust for changed got.
(update_local_sym_info): Likewise.
(ppc64_elf_check_relocs): Likewise.
(ppc64_elf_gc_sweep_hook): Likewise.
(ppc64_elf_tls_optimize): Likewise.
(allocate_dynrelocs): Likewise.
(ppc64_elf_size_dynamic_sections): Likewise.
(ppc64_elf_relocate_section): Likewise.
(ppc64_elf_next_toc_section): Update comment.
(toc_adjusting_stub_needed): Remove unneeded cast.
(ppc64_elf_build_stubs): Check for stub sections in stub bfd by
testing section flags.
(ppc64_elf_build_stubs): Likewise.
(ppc64_elf_size_stubs): Likewise. Remove stub_bfd param.
(ppc64_elf_finish_dynamic_sections): Write out got sections.
(func_desc_adjust): Copy over dynamic info for undef weaks.
* elf64-ppc.h (ppc64_elf_init_stub_bfd): Declare.
(ppc64_elf_size_stubs): Update prototype.
* elflink.h (elf_link_sort_relocs): Use link_orders to find reldyn
input sections rather than scanning dynobj.
2003-07-10 00:37:27 +00:00
Richard Sandiford
18ad015f6c
* elfxx-mips.c (mips_elf_link_hash_entry): Remove min_dyn_reloc_index.
...
(bfd_mips_elf_swap_msym_in, bfd_mips_elf_swap_msym_out): Delete.
(mips_elf_create_msym_section): Delete.
(mips_elf_create_dynamic_relocation): Don't set min_dyn_reloc_index.
(_bfd_mips_elf_copy_indirect_symbol): Likewise.
(_bfd_mips_elf_create_dynamic_sections): Don't create .msym.
(_bfd_mips_elf_size_dynamic_sections): Don't calculate its size.
(_bfd_mips_elf_size_dynamic_sections): Don't add DT_MIPS_MSYM.
(_bfd_mips_elf_finish_dynamic_symbol): Don't add symbols to .msym.
(_bfd_mips_elf_finish_dynamic_sections): Likewise.
2003-07-09 11:55:49 +00:00
Richard Sandiford
e10609d3f7
* elfxx-mips.c (mips_elf_irix6_finish_dynamic_symbol): Make the
...
symbols protected.
2003-07-09 11:53:36 +00:00
Richard Sandiford
0d591ff7fb
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Fix handling
...
of relocations whose offset is -2.
2003-07-09 11:52:52 +00:00
Richard Sandiford
fdd0740558
* bfd/elfxx-mips.c (mips_elf_create_dynamic_relocation): Treat
...
forced-local symbols like other locals. Don't create relocations
against STN_UNDEF in irix objects.
2003-07-09 11:51:53 +00:00
Richard Sandiford
d2fba50dd9
* bfd/elfxx-mips.c (mips_elf_create_dynamic_relocation): In SGI-
...
compatible objects, add the values of defined external symbols
to the addend.
2003-07-09 11:50:16 +00:00
Richard Sandiford
6eaa6adc99
* elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Always
...
initialize a GOT entry to the symbol's st_value.
2003-07-09 11:48:17 +00:00
Alan Modra
43c40ab2d9
* elf-bfd.h (struct elf_obj_tdata): Move linker_section_pointers..
...
* elf32-ppc.c (struct ppc_elf_obj_tdata): ..to here. New.
(ppc_elf_tdata): Define.
(elf_local_ptr_offsets): Adjust.
(ppc_elf_mkobject): New function.
(bfd_elf32_mkobject): Define.
2003-07-08 13:10:51 +00:00
Alan Modra
0c83546ac6
* elfcode.h (elf_object_p): Allocate tdata via _bfd_set_format.
...
* elfcore.h (elf_core_file_p): Likewise.
* section.c (bfd_section_init): Remove prototype.
2003-07-08 08:08:00 +00:00
Alan Modra
58111eb706
* elf-bfd.h (struct elf_link_hash_entry): Remove linker_section_pointer
...
field.
(enum elf_linker_section_enum): Delete.
(struct elf_linker_section): Delete.
(struct elf_linker_section_pointers): Delete.
(struct elf_obj_tdata): Remove #if 0 chunk. Remove linker_section.
Make linker_section_pointers a void**.
(elf_local_ptr_offsets, elf_linker_section): Don't define.
* elf32-ppc.c (enum elf_linker_section_enum): New, cut-down version
of old item in elf-bfd.h.
(struct elf_linker_section): Likewise.
(struct elf_linker_section_pointers): Likewise.
(elf_local_ptr_offsets): Define.
(struct ppc_elf_link_hash_entry): Add linker_section_pointer.
(ppc_elf_link_hash_newfunc): Init it.
(struct ppc_elf_link_hash_table): Add sbss.
(ppc_elf_link_hash_table_create): zmalloc rather than clearing
individual fields.
(elf_create_linker_section): Fold into..
(ppc_elf_create_linker_section): ..here. Remove hole_size code.
Make rela section here if shared.
(elf_find_pointer_linker_section): Pass lsect rather than enum.
(elf_create_pointer_linker_section): Adjust. zalloc rather than
clearing in a loop.
(elf_finish_pointer_linker_section): Adjust. Don't make rela
section here.
(ppc_elf_check_relocs): Adjust.
(ppc_elf_add_symbol_hook): Tighten hash creator test. Remove code
creating .sbss by hand.
* elf.c (_bfd_elf_link_hash_newfunc): Adjust.
2003-07-07 15:51:57 +00:00
Jakub Jelinek
15f8604d21
* elf32-s390.c (elf_howto_table): Change R_390_GOT12 to
...
complain_overflow_bitfield.
* elf64-s390.c (elf_howto_table): Change R_390_GOT12 to
complain_overflow_bitfield.
2003-07-07 11:14:40 +00:00
Nick Clifton
e0a868d179
Add Clarke's surname to ChangeLog entry
2003-07-07 09:40:16 +00:00
Jakub Jelinek
3368a7fb7a
* elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Return
...
true even if -pie.
2003-07-04 13:57:14 +00:00
Jakub Jelinek
9203ba999f
bfd/
...
* elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add rel_fptr_sec.
(elfNN_ia64_dynamic_symbol_p): Change info->shared into
!info->executable.
(get_fptr): For -pie create .opd as writable section and create
.rela.opd as well.
(elfNN_ia64_check_relocs): Change info->shared into
!info->executable.
(allocate_fptr): Likewise.
(allocate_dynrel_entries): Account for a relative reloc for -pie
@fptr(). Don't account for a relative reloc if -pie want_ltoff_fptr
for undefweak symbol. Account for an IPLT reloc in .rela.opd
section if -pie.
(set_got_entry): Don't create a relative reloc if -pie
want_ltoff_fptr for undefweak symbol.
(set_fptr_entry): Emit an IPLT reloc in .rela.opd for -pie.
(elfNN_ia64_relocate_section): Emit a relative reloc for -pie
@fptr().
* elfxx-ia64.c (elfNN_ia64_relocate_section): Issue undefined_symbol
even if -pie.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
ld/
* emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
.opd if -pie.
(OTHER_READWRITE_SECTIONS): Include .opd if -pie.
* scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
if -pie.
2003-07-04 13:53:38 +00:00
Nick Clifton
8c17da6e59
* elf32-h8300.c (R_H8_DIR32A16): Fix name field.
...
(elf32_h8_relax_section) <R_H8_DIR16A8>: Adjust position of relocation.
<R_H8_DIR32A16>: Fix type of relocation.
* ld-h8300/h8300.exp: Replace loop with explicit list. Run relax.d
unconditionally. Run relax-2.d for *-elf targets.
* ld-h8300/relax.d: Fix typo.
* ld-h8300/relax.s: Add 0x prefixes.
* ld-h8300/relad-2.[sd]: New test.
2003-07-04 10:25:14 +00:00
Kaz Kojima
35cad4c475
* elf32-sh.c (sh_elf_create_dynamic_sections): Return if dynamic
...
sections were created already. Remove unnecessary tests of
the previous change.
2003-07-04 08:41:57 +00:00
Kaz Kojima
03151a5a11
* elf32-sh.c (sh_elf_create_dynamic_sections): Don't call
...
bfd_make_section for existing sections.
2003-07-04 07:38:33 +00:00
Alan Modra
2293c4998c
* elf32-sparc.c (elf32_sparc_check_relocs): Don't call
...
create_got_section if we already have done so.
* elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
(sh_elf_check_relocs): Likewise.
(sh_elf_adjust_dynamic_symbol): Delete "dynobj" var. Use
htab->root.dynobj instead.
(sh_elf_check_relocs): Likewise.
(sh_elf_finish_dynamic_sections): Likewise.
2003-07-04 04:58:03 +00:00
Alan Modra
003d627e6e
* section.c (bfd_make_section): Return NULL for existing section.
2003-07-04 04:14:56 +00:00
Alan Modra
fa681e5d43
* elf32-ppc.c (ppc_elf_create_dynamic_sections): Don't call
...
ppc_elf_create_got if we've already done so.
2003-07-04 01:57:26 +00:00
Alan Modra
3dab13f62b
* elf-bfd.h (_bfd_elf_create_linker_section) Don't declare.
...
(_bfd_elf_find_pointer_linker_section): Likewise.
(bfd_elf32_create_pointer_linker_section): Likewise.
(bfd_elf32_finish_pointer_linker_section): Likewise.
(bfd_elf64_create_pointer_linker_section): Likewise.
(bfd_elf64_finish_pointer_linker_section): Likewise.
(_bfd_elf_make_linker_section_rela): Likewise.
* elfcode.h (elf_create_pointer_linker_section): Don't define.
(elf_finish_pointer_linker_section): Likewise.
* elflink.c (_bfd_elf_make_linker_section_rela): Delete.
(_bfd_elf_create_linker_section): Move this function..
(_bfd_elf_find_pointer_linker_section): ..and this..
* elflink.h (elf_create_pointer_linker_section): ..and this..
(elf_finish_pointer_linker_section): ..and this..
* elf32-ppc.c: ..to here, renaming to the following, and adjusting
calls.
(elf_create_linker_section): Convert to C90, tidy.
(elf_find_pointer_linker_section): Likewise.
(elf_create_pointer_linker_section): Likewise.
(elf_finish_pointer_linker_section): Likewise.
* elf32-i370.c: Delete #if 0 code.
2003-07-04 01:50:12 +00:00
Alan Modra
772119ce53
* elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't allow _savef* and
...
_restf* to be satisfied by shared libs, and always force them local.
(toc_adjusting_stub_needed): Avoid scanning linker created sections.
Correct test for "bl".
(ppc64_elf_relocate_section <R_PPC64_TLS>): Correct test for
primary opcode 31.
2003-07-02 07:41:51 +00:00
Martin Schwidefsky
bd1ea41b84
* elf32-s390.c (s390_elf_ldisp_reloc): New prototype.
...
(s390_tls_reloc): New function.
(elf_howto_table): Add long displacement relocations R_390_20,
R_390_GOT20, R_390_GOTPLT20 and R_390_TLS_GOTIE20.
(elf_s390_reloc_type_lookup): Likewise.
(elf_s390_check_relocs): Likewise.
(elf_s390_gc_sweep_hook): Likewise.
(elf_s390_relocate_section): Likewise.
* elf64-s390.c: Same changes as for elf32-s390.c.
* reloc.c: Add long displacement relocations BFD_RELOC_390_20,
BFD_RELOC_390_GOT20, BFD_RELOC_390_GOTPLT20 and
BFD_RELOC_390_TLS_GOTIE20.
* bfd-in2.h: Regenerate.
* libbfd.h: Likewise.
2003-07-01 14:44:59 +00:00
Alan Modra
113202d6bc
* cpu-ia64-opc.c (ext_imms_scaled): Don't sign extend using shifts.
...
(ins_imms, ins_immsm1u4): Likewise. Warning fix.
2003-06-30 04:09:27 +00:00
Alan Modra
c58b95236c
Convert to C90 and a few tweaks.
2003-06-29 10:06:40 +00:00
Andreas Jaeger
58611256d8
Add forgotten ChangeLog snippet for last elf64-x86-64.c patch.
2003-06-29 10:02:24 +00:00
Andreas Jaeger
27482721cf
* elf64-x86-64.c: Convert to ISO C90 prototypes, remove
...
unnecessary prototypes. Replace PTR with void *.
2003-06-29 05:57:36 +00:00
Thiemo Seufer
2b86c02e74
* elfxx-mips.c: Allow lazy binding for R_MIPS_JALR.
2003-06-28 22:13:37 +00:00
Nick Clifton
e7c81c254c
Fix --add-gnu-debuglink
2003-06-27 08:01:28 +00:00
Thiemo Seufer
72b4917c07
* elfxx-mips.c: Revert .got alignment to 2**4.
2003-06-27 07:32:33 +00:00
Thiemo Seufer
917090909e
* elf32-mips.c: Fix addend for _gp_disp special symbol.
2003-06-27 07:31:27 +00:00
Thiemo Seufer
7a79a000c1
* elfxx-mips.c (_bfd_mips_elf_fake_sections): Remove non-default
...
relocation header setup.
* binutils-all/readelf.ss-tmips: Adjust symbol indices.
2003-06-27 01:16:30 +00:00
Alan Modra
e47cd12545
* elf32-ppc.c (ppc_elf_howto_table): Remove unnecessary cast.
...
(ppc_elf_reloc_type_lookup): Modify comment.
(ppc_elf_info_to_howto): Ditto.
(ppc_elf_relocate_section): Ditto.
(ppc_elf_check_relocs): Call ppc_elf_howto_init.
2003-06-25 11:05:58 +00:00
Alan Modra
1049f94e8e
Correct spelling of "relocatable".
2003-06-25 06:40:27 +00:00
Alan Modra
d85f2c7d1f
* elf32-ppc.c (ppc_elf_check_relocs): Report plt reloc against
...
local sym errors.
2003-06-24 14:17:22 +00:00
Alan Modra
55fd94b056
* elf32-i386.c: Convert to C90 function definitions, remove unnecessary
...
prototypes and casts. Replace PTR with void *. Formatting.
* elf32-ppc.c: Likewise. Break long strings too.
(ppc_elf_relax_section): Use enum elf_ppc_reloc_type for r_type.
(ppc_elf_unhandled_reloc): Internationalize error message.
* elf32-ppc.h: Remove PARAMS.
2003-06-24 14:03:53 +00:00
Mark Mitchell
88810f8cd1
* elf32-ppc.c (ppc_elf_begin_write_processing): Use bytes to count
...
APUinfo slots.
(ppc_elf_final_write_processing): Likewise.
2003-06-24 06:41:36 +00:00
H.J. Lu
6e35c4dafc
2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
...
* elflink.h (elf_link_input_bfd): Check raw size when using
kept_section to preserve debug information discarded by
linkonce.
2003-06-23 23:39:39 +00:00
Alan Modra
8f3bab5775
* elf64-ppc.c (struct ppc_link_hash_table): Add top_id.
...
(ppc64_elf_setup_section_lists): Set it.
(ppc64_elf_relocate_section): Check sym section id against top_id.
(ppc_build_one_stub): Comment on top_id.
2003-06-20 12:35:30 +00:00
Nick Clifton
efbc813eb3
Add tic4x-*-rtems*.
2003-06-20 08:36:19 +00:00
Alan Modra
4ce794b729
* elf64-ppc.c: Convert to C90 function definitions, remove unnecessary
...
prototypes and casts. Replace PTR with void *. Format copyright.
Mention ABI links.
(struct ppc_link_hash_table): Rename sgot, srelgot, splt, srelplt,
sdynbss, srelbss, sglink, sbrlt and srelbrlt to got, relgot .. relbrlt.
(ppc_type_of_stub): Make r_type an enum.
(ppc64_elf_size_stubs): Likewise.
* elf64-ppc.h: Remove PARAMS macro.
2003-06-20 05:30:46 +00:00
Alan Modra
3254fd24bd
* elf64-ppc.c (ppc64_elf_link_hash_table_create): Reinstate init of
...
elf hash tab fields.
2003-06-19 15:11:26 +00:00
Alan Modra
d2a300cfe3
* elf64-ppc.c (ppc64_elf_reloc_type_lookup): Tidy prototype.
...
(ppc64_elf_info_to_howto): Likewise.
(ppc64_elf_build_stubs): Add "stats" param, and print statistics.
* elf64-ppc.h (ppc64_elf_build_stubs): Adjust prototype.
2003-06-19 13:50:35 +00:00
Alan Modra
83615de03f
* elf64-sparc.c (sparc64_elf_relocate_section): Ignore R_SPARC_DISP32
...
reloc overflow on discarded eh_frame entries.
2003-06-19 13:21:53 +00:00
Alan Modra
9b5ecbd0c6
* elf64-ppc.c (toc_adjusting_stub_needed): New function.
...
(ppc64_elf_next_input_section): Use it here to set has_gp_reloc.
Return error condition.
(ppc64_elf_size_stubs): Restrict toc adjusting stubs to sections
that have has_gp_reloc set.
(struct ppc_link_hash_table): Add stub_count.
(ppc_build_one_stub): Increment it.
(ppc64_elf_link_hash_table_create): zmalloc rather than clearing
individual fields.
* elf64-ppc.h (ppc64_elf_next_input_section): Update prototype.
2003-06-19 11:49:02 +00:00
Alan Modra
64c456e1a1
* elflink.h (elf_gc_record_vtentry): Revert last change. Correct
...
size calculation from addend. Round size up.
2003-06-18 05:18:06 +00:00
Hans-Peter Nilsson
3dab95d324
* elf32-cris.c (cris_elf_relocate_section) <case
...
R_CRIS_32_GOTREL>: When linking a program, don't complain about a
symbol from a normal object or an undefined weak symbol.
2003-06-18 04:14:14 +00:00
Alan Modra
0b13192e9f
* elf64-ppc.c (ppc64_elf_relocate_section): Accept a symbol on
...
R_PPC64_TOC relocs.
2003-06-18 03:26:22 +00:00
H.J. Lu
f97b9cb853
bfd/
...
2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
* section.c (struct sec): Put back kept_section.
(STD_SECTION): Put back kept_section initialization.
* bfd-in2.h: Regenerate.
* elflink.h (elf_link_input_bfd): Also check discarded linkonce
sections for relocateable output. Use kept_section to preserve
debug information discarded by linkonce.
ld/
2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
* ldlang.c (section_already_linked): Put back assignment of
kept_section.
2003-06-18 00:30:04 +00:00
H.J. Lu
9f1c3a0af7
2003-06-17 Roland McGrath <roland@redhat.com>
...
* elfxx-ia64.c (elfNN_ia64_relocate_section): Support
segment-relative relocation between different segments.
2003-06-17 23:43:18 +00:00
Alan Modra
1cf1f67042
* elf64-ppc.c (ppc64_elf_relocate_section): Do unaligned reloc
...
optimizations earlier.
2003-06-17 14:22:46 +00:00
Alan Modra
734b6cf9ae
* elf64-ppc.c (struct ppc_link_hash_table): Reinstate top_index.
...
Restore previous input_list type.
(ppc64_elf_link_hash_table_create): Undo last change.
(ppc64_elf_setup_section_lists): Reinstate code setting up input lists
per output section, but don't bother with bfd_abs_section marker.
(ppc64_elf_next_input_section): Adjust for multiple input section
lists.
(group_sections): Likewise.
2003-06-17 13:43:02 +00:00
Jakub Jelinek
23fbd6fa70
* elf64-ppc.c (ppc64_elf_relocation_section): Ensure
...
*r_offset == r_addend for RELATIVE relocs against .got.
2003-06-17 12:39:41 +00:00
Alan Modra
dad27d18ac
* elf64-ppc.c (ppc64_elf_relocate_section): Optimize unaligned relocs.
2003-06-17 12:37:26 +00:00
Nick Clifton
b613960add
(elf_gc_record_vtentry): Allocate an extra element in the vtable_entries_used
...
array to allow for the accessing the largest element.
2003-06-17 09:57:18 +00:00
Alan Modra
3d6f9012bb
* elf64-ppc.c (struct ppc_link_hash_table): Remove top_index. Modify
...
input_list.
(ppc64_elf_link_hash_table_create): Init input_list here.
(ppc64_elf_setup_section_lists): Remove code setting up input lists
per output section. Set toc_off for abs and other standard sections.
(ppc64_elf_reinit_toc): Don't set elf_gp on input bfds lacking a toc.
(ppc64_elf_next_input_section): Adjust for single input section list.
Don't set toc_curr from input bfds that haven't set elf_gp.
(group_sections): Adjust for single input section list.
2003-06-17 09:10:41 +00:00
Alan Modra
000732f753
* elf64-ppc.c (ppc64_elf_relocate_section): Correct pcrel section zero.
2003-06-17 00:25:45 +00:00
Alan Modra
81407a69a5
* elf64-ppc.c (ppc64_elf_relocate_section): When optimizing toctprel
...
tls, check that a TOC16_DS or TOC16_LO_DS reloc isn't pointing to a
dtprel entry. Ensure TLS_LD DTPMOD reloc has a zero addend. Write
got section for RELATIVE relocs. Fix wrong comment. Change condition
under which dynamic relocs update the section contents.
2003-06-16 10:50:22 +00:00
Nick Clifton
a06a29f25f
Add i386-netbsd-gnu target.
2003-06-13 13:17:58 +00:00
Nick Clifton
7d1ebfb2ed
(i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3]): New target (was i[3-7]86-*-openbsd* before).
...
(i[3-7]86-*-openbsd*): Change to use bfd_elf32_i386_vec.
(vax-*-openbsd*): New target.
2003-06-12 07:21:50 +00:00
Thiemo Seufer
d80dcc6af4
* elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME): Use .MIPS.options
...
for n32, too.
(MIPS_ELF_STUB_SECTION_NAME): Use .MIPS.stubs for n32, too.
(mips_elf_rel_dyn_section): Use appropriate section alignment.
(mips_elf_create_got_section): Likewise.
(_bfd_mips_elf_create_dynamic_sections): Likewise.
* ld-mips-elf/multi-got-1.d: Adjust addresses.
* ld-mips-elf/rel32-n32.d: Likewise.
2003-06-11 21:01:50 +00:00
Thiemo Seufer
a7ebbfdf67
* elf32-mips.c (mips_elf_generic_reloc): New Function.
...
(elf_mips_howto_table_rel): Use it.
(gprel32_with_gp): Move prototype.
(mips_elf_hi16_reloc): Check for ! BSF_LOCAL instead of zero addend.
Use mips_elf_generic_reloc.
(mips_elf_got16_reloc): Check for ! BSF_LOCAL instead of zero addend.
Code cleanup.
(_bfd_mips_elf32_gprel16_reloc): Check for ! BSF_LOCAL instead of
zero addend.
(mips_elf_gprel32_reloc): Likewise. Use the same GP assignment logic
as in the other *_gprel*_reloc functions.
(gprel32_with_gp): Handle partial_inplace properly.
(mips32_64bit_reloc): Use mips_elf_generic_reloc.
(mips16_gprel_reloc): Check for ! BSF_LOCAL instead of zero addend.
Do addend handling directly instead of calling
_bfd_mips_elf_gprel16_with_gp. Handle partial_inplace properly.
* elf64-mips.c (mips_elf64_hi16_reloc): Check for ! BSF_LOCAL instead
of zero addend. Handle partial_inplace properly.
(mips_elf64_got16_reloc): Check for ! BSF_LOCAL instead of zero
addend.
(mips_elf64_gprel16_reloc): Likewise.
(mips_elf64_literal_reloc): Likewise.
(mips_elf64_gprel32_reloc): Likewise. Use the same GP assignment
logic as in the other *_gprel*_reloc functions. Handle
partial_inplace properly.
(mips_elf64_shift6_reloc): Check for ! BSF_LOCAL instead of zero
addend. Handle partial_inplace properly.
(mips16_gprel_reloc): Likewise. Do addend handling directly instead
of calling _bfd_mips_elf_gprel16_with_gp.
* elfn32-mips.c (mips_elf_got16_reloc): Check for BSF_LOCAL.
(mips_elf_gprel32_reloc): Check for ! BSF_LOCAL instead
of zero addend.
(mips_elf_shift6_reloc): Handle partial_inplace properly.
(mips16_gprel_reloc): Likewise. Do addend handling directly instead
of calling _bfd_mips_elf_gprel16_with_gp.
* elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp): Handle
partial_inplace properly. Fix wrong addend handling. Fix overflow
check.
(_bfd_mips_elf_sign_extend): Renamed from mips_elf_sign_extend and
exported.
(mips_elf_calculate_relocation): Use _bfd_mips_elf_sign_extend.
(_bfd_mips_elf_relocate_section): Likewise.
(mips_elf_create_dynamic_relocation): Update sec_info_type access.
* elfxx-mips.h (_bfd_mips_relax_section): Fix prototype declaration.
(_bfd_mips_elf_sign_extend): New prototype.
* config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
(md_apply_fix3): Ignore non-special relocations. Remove superfluous
exceptions from size assert. Remove most of the addend fixup
specialcasing. Remove value, use valP directly. simplify fx_addnumber
handling. Remove zero addend specialcases.
(tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
the addend fixup specialcase.
* config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
2003-06-11 16:22:26 +00:00
Nick Clifton
de6e5e1a72
* configure.in (vax-*-openbsd*): Set COREFILE to netbsd-core.lo.
...
* configure: Regenerate.
2003-06-11 13:38:07 +00:00
Nick Clifton
49ba19a457
* config.bfd (sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1]): New target
...
(was sparc-*-openbsd* before).
(sparc-*-openbsd*): Change to use bfd_elf32_sparc_vec.
2003-06-11 13:34:50 +00:00
H.J. Lu
3b4433739c
bfd/
...
2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
* po/Make-in (DESTDIR): New.
(install-data-yes): Support $(DESTDIR).
(uninstall): Likewise.
binutils/
2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
* po/Make-in (DESTDIR): New.
(install-data-yes): Support $(DESTDIR).
(uninstall): Likewise.
gas/
2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
* po/Make-in (DESTDIR): New.
(install-data-yes): Support $(DESTDIR).
(uninstall): Likewise.
gprof/
2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
* po/Make-in (DESTDIR): New.
(install-data-yes): Support $(DESTDIR).
(uninstall): Likewise.
ld/
2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
* po/Make-in (DESTDIR): New.
(install-data-yes): Support $(DESTDIR).
(uninstall): Likewise.
opcodes/
2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
* po/Make-in (DESTDIR): New.
(install-data-yes): Support $(DESTDIR).
(uninstall): Likewise.
2003-06-11 01:32:08 +00:00
Alan Modra
795bb480ca
* bfd/Makefile.am (config.status): Depend on version.h.
...
Run "make dep-am" in bfd/ and elsewhere, and regen files.
2003-06-10 23:44:42 +00:00
Alan Modra
adadcc0cc9
Add "attn", "lq" and "stq" power4 insns.
2003-06-10 07:44:11 +00:00
Richard Sandiford
f4984206d8
include/elf/
...
* h8.h (E_H8_MACH_H8300SXN): New flag.
bfd/
* archures.c (bfd_mach_h8300sxn): New architecture.
* bfd-in2.h: Regenerate.
* cpu-h8300.c (h8300_scan): Check for 'sxn'.
(h8300sxn_info_struct): New.
(h8300sx_info_struct): Link to it.
* elf32-h8300.c (elf32_h8_mach): Add h8300sxn case.
(elf32_h8_final_write_processing): Likewise.
gas/
* config/tc-h8300.c (h8300sxnmode): New.
(md_pseudo_table): Add .h8300sxn entry. Sync others with FSF version.
ld/
* configure.tgt (h8300*): Add h8300sxn emulations.
* Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
(eh8300sxn.c, eh8300sxnelf.c): New rules.
* Makefile.in: Regenerate.
* emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
2003-06-10 07:09:31 +00:00
Alan Modra
ad8e1ba599
* elf64-ppc.c: Move TARGET_LITTLE_SYM and other macros used by
...
elfxx-target.h so that we can use elf_backend_got_header_size.
(ELF_MACHINE_ALT1, ELF_MACHINE_ALT2): Delete.
(GLINK_CALL_STUB_SIZE): Modify. Define new glink call stub and
associated macros.
(ppc64_elf_howto_raw <GOT_TPREL16_DS, GOT_TPREL16_LO_DS>): Correct
dst_mask.
(enum ppc_stub_type): Add ppc_stub_long_branch_r2off and
ppc_stub_plt_branch_r2off.
(struct ppc_stub_hash_entry): Reorganize.
(struct ppc_link_hash_table): Add no_multi_toc, multi_toc_needed,
toc_curr, toc_off and emit_stub_syms.
(ppc64_elf_link_hash_table_create): Init them.
(ppc_stub_name): Correct string size.
(ppc64_elf_check_relocs): Set has_gp_reloc on GOT and TOC relocs.
(ppc64_elf_size_dynamic_sections): Set no_multi_toc if GOT entries
used.
(ppc_type_of_stub): Tweak root.type test.
(build_plt_stub): Remove glink code. Adjust for insn macro changes.
(ppc_size_one_stub): Handle ppc_stub_long_branch_r2off and
ppc_stub_plt_branch_r2off.
(ppc_build_one_stub): Likewise. Fix var shadowing. Correct addis,addi
range test. Use toc_off to calculte r2 values. Handle emit_stub_syms.
(ppc64_elf_setup_section_lists): Remove htab creator flavour test.
Initialize elf_gp and toc_curr.
(ppc64_elf_next_toc_section, ppc64_elf_reinit_toc): New functions.
(ppc64_elf_next_input_section): Set toc_off.
(group_sections): Ensure groups have the same TOC.
(ppc64_elf_size_stubs): Check whether we need a TOC adjusting stub.
(ppc64_elf_build_stubs): Add emit_stub_syms param, and stash in htab.
Build new glink stub.
(ppc64_elf_relocate_section): Handle multiple TOCs. Fix comments.
(ppc64_elf_finish_dynamic_sections): Adjust DT_PPC64_GLINK.
* elf64-ppc.h (ppc64_elf_build_stubs): Update prototype.
(ppc64_elf_next_toc_section, ppc64_elf_reinit_toc): Declare.
* section.c (struct sec): Rename flag12 to has_gp_reloc.
(STD_SECTION): Update.
* ecoff.c (bfd_debug_section): Update comment.
* bfd-in2.h: Regenerate.
2003-06-08 14:06:38 +00:00
Daniel Jacobowitz
90fff0d44f
* elfcode.h (elf_slurp_reloc_table_from_section): Don't dereference
...
NULL function pointers.
2003-06-06 02:12:04 +00:00
Daniel Jacobowitz
c82b20e457
* simple.c (bfd_simple_get_relocated_section_contents): Call
...
_bfd_generic_link_add_symbols instead of bfd_link_add_symbols.
2003-06-05 14:07:52 +00:00
Svein Seldal
5a5b96513f
Moved the ticoff0/1 swaptables and coff0/1 bad format hooks to coffcode.h
2003-06-04 11:38:30 +00:00
Svein Seldal
53d4437ac6
Altered the CREATE_xxx_COFF_TARGET_VEC macro arguments -- changelog dropped out
2003-06-04 11:15:09 +00:00
Svein Seldal
736694c89e
Fixed initialization bug
2003-06-04 10:11:02 +00:00
Jakub Jelinek
9ee5e4996f
binutils/
...
* readelf.c (get_segment_type): Handle PT_GNU_STACK.
bfd/
* elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_STACK.
(bfd_section_from_phdr): Likewise.
(map_sections_to_segments): Create PT_GNU_STACK segment header.
(get_program_header_size): Count with PT_GNU_STACK.
* elf-bfd.h (struct elf_obj_tdata): Add stack_flags.
* elflink.h (bfd_elfNN_size_dynamic_sections): Set stack_flags.
include/
* bfdlink.h (struct bfd_link_info): Add execstack and noexecstack.
* elf/common.h (PT_GNU_STACK): Define.
ld/
* ldgram.y (phdr_type): Grok PT_GNU_STACK.
* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
-z execstack and -z noexecstack.
(gld${EMULATION_NAME}_list_options): Likewise.
* scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
2003-06-03 22:27:24 +00:00
H.J. Lu
6f6f27f842
bfd/
...
2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
* elflink.h (elf_link_input_bfd): Call linker error_handler
for discarded definitions.
include/
2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
* bfdlink.h (LD_DEFINITION_IN_DISCARDED_SECTION): New.
ld/
2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
* ldmisc.c: Include "bfdlink.h".
(error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
and -LD_DEFINITION_IN_DISCARDED_SECTION.
* Makefile.am: Rebuild dependency.
* Makefile.in: Regenerated.
ld/testsuite/
2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
* ld-discard/extern.d: Updated.
* ld-discard/start.d: Likewise.
* ld-discard/static.d: Likewise.
2003-06-03 18:15:05 +00:00
Nick Clifton
a3b6428fe7
Return 'n' if section flags are SEC_HAS_CONTENTS && SEC_READONLY.
2003-06-03 17:45:49 +00:00
Nick Clifton
e30ddb24b3
Add pc-relative 32-bit reloc to v850 port. Fixes ld-elf/merge test failure.
2003-06-03 16:24:06 +00:00
Kaz Kojima
2558b9a9f0
* elf32-sh.c (sh_elf_size_dynamic_sections): Create .interp section
...
and DT_DEBUG dynamic tag even for position independent executables.
* elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewize.
2003-06-03 04:50:20 +00:00