aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
AgeCommit message (Collapse)AuthorFilesLines
1999-08-31When possible, keep the original type of the symbol.Nick Clifton1-1/+4
1999-08-17 * elf32-mips.c (_bfd_mips_elf_add_symbol_hook): Set BSF_DYNAMICIan Lance Taylor1-3/+28
for special section symbols. * elflink.h (elf_merge_symbol): If we have no old BFD, check BSF_DYNAMIC on the section symbol to see whether the old BFD is dynamic.
1999-08-10 * elflink.h (elf_bfd_final_link): Tweak last change.Mark Mitchell1-4/+19
1999-08-10 * elflink.h (elf_link_size_reloc_section): Use the counts in theMark Mitchell1-20/+56
elf-section data to allocate just the right amount of relocation space. Don't allocate the hash space twice. (elf_bfd_final_link): Calculate the amount of space to allocate in each relocation section.
1999-08-091999-08-09 Geoff Keating <geoffk@cygnus.com>Ian Lance Taylor1-4/+13
* elflink.h (elf_link_output_extsym): Don't output a weak reference to an undefined symbol just because it was defined weak in a shared object.
1999-08-02Jakub Jelinek <jj@ultra.linux.cz>Richard Henderson1-11/+4
* elflink.h (elf_bfd_final_link): Copy the whole isym, not just some fields. * elf64-sparc.c (sparc64_elf_output_arch_syms): Declare used variables and initialize them.
1999-07-30Jakub Jelinek <jj@ultra.linux.cz>Richard Henderson1-11/+33
* elf-bfd.h (struct elf_backend_data): Add print_symbol_all and output_arch_syms backend methods. * elfxx-target.h: Likewise. * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create, sparc64_elf_add_symbol_hook, sparc64_elf_output_arch_syms, sparc64_elf_get_symbol_type, sparc64_elf_symbol_processing): New functions. (sparc64_elf_size_dynamic_sections): Leave space for STT_REGISTER symbols in .dynsym, add their names into .dynstr. Put those symbols into dynlocal. (sparc64_elf_finish_dynamic_sections): Fix up DT_SPARC_REGISTER pointers to STT_REGISTER symbols in dynsym section. (sparc64_elf_print_symbol_all): New function. * elf.c (bfd_elf_print_symbol): Allow special backend symbol printing using the print_symbol_all hook.
1999-07-19 * elflink.h (elf_merge_symbol): Do merge symbols from the same BFDIan Lance Taylor1-2/+6
if they appear to be specially created by the linker.
1999-07-19 * elflink.h (elf_bfd_final_link): Remove unused variables rel_hashAndreas Schwab1-3/+0
and rel_hdr.
1999-07-18 * elflink.h (elf_link_adjust_relocs): New function.Mark Mitchell1-38/+64
(elf_bfd_final_link): Use it. (elf_link_input_bfd): Deal with the fact that there can be two relocation sections for a single section. (elf_reloc_link_order): Likewise. * elf32-mips.c (_bfd_mips_elf_final_link): Don't set GP for a relocateable object. (_bfd_mips_elf_relocate_section): Handle relocateable links.
1999-07-16 * elflink.h (elf_link_record_local_dynamic_symbol): Remove unusedAndreas Schwab1-2/+1
variables `link' and `elfsec'. (elf_bfd_final_link): Remove unused variable `os'.
1999-07-13 * elf-bfd.h (struct elf_link_local_dynamic_entry): New.Richard Henderson1-93/+146
(struct elf_link_hash_table): Add dynlocal. (_bfd_elf_link_lookup_local_dynindx): Prototype. (_bfd_elf_link_adjust_dynindx): Delete. (_bfd_elf_link_renumber_dynsyms): Prototype. (_bfd_elf,link_record_local_dynamic_symbol): Prototype. * elfcode.h (elf_link_record_local_dynamic_symbol): New alias. * elflink.c (_bfd_elf_link_adjust_dynindx): Delete. (_bfd_elf_link_lookup_local_dynindx): New function. (elf_link_renumber_hash_table_dynsyms): New function. (_bfd_elf_link_renumber_dynsyms): New function. * elflink.h (elf_link_record_local_dynamic_symbol): New function. (struct elf_assign_sym_version_info): Delete removed_dynamic. (bfd_elf,size_dynamic_sections): Use _bfd_strip_section_from_output instead of elf_link_remove_section_and_adjust_dynindices. Remove removed_dynamic code. Use _bfd_elf_link_renumber_dynsyms. (elf_link_assign_sym_version): Remove removed_dynamic code. (elf_link_renumber_dynsyms): Delete. (elf_bfd_final_link): Install section and local symbols into .dynsym. * elf32-m68k.c (elf_m68k_adjust_dynindx): Delete. (elf_m68k_size_dynamic_sections): Don't set section dynindicies. (elf_m68k_finish_dynamic_sections): Don't write section dynsyms. * elf32-mips.c: Similarly. * elf32-ppc.c: Similarly. * elf32-sparc.c: Similarly. * elf64-alpha.c: Similarly. * elf64-sparc.c: Similarly.
1999-07-11 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSEDIan Lance Taylor1-5/+5
as appropriate. Fill in structure initializations. Add variable initializations. Add casts. * dwarf1.c (parse_line_table): Change eachLine to unsigned long. (dwarf1_unit_find_nearest_line): Change i to unsigned long.
1999-07-11 * elf.c (bfd_elf_hash): Change parameter from unsigned char * toIan Lance Taylor1-5/+4
char *. * elf-bfd.h (bfd_elf_hash): Update declaration. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove casts when calling bfd_elf_hash.
1999-07-11 * elflink.h (elf_link_read_relocs_from_section): Be type-correct.Mark Mitchell1-1/+1
1999-07-07 * elflink.h (elf_link_create_dynamic_sections): Handle non-standardMark Mitchell1-26/+62
hash-entry sizes. (size_dynamic_sections): Likewise. (elf_link_output_extsym): Likewise. * elf.c: (elf_fake_sections): Likewise. * libbfd.c (bfd_get): New macro. (bfd_put): Likewise. * bfd-in2.h: Regenerated. * elf-bfd.h (elf_size_info): Add hash_entry_size, int_rels_per_ext_rel, swap_dyn_out, swap_reloc_in, swap_reloc_out, wap_reloca_in, and swap_reloca_out. * elflink.h (elf_link_read_relocs_from_section): Adjust to handle multiple internal relocations per external relocation. (link_read_relocs): Likewise. (elf_bfd_final_link): Likewise. (elf_link_input_bfd): Likewise. (elf_gc_mark): Likewise. (elf_gc_smash_unused_vtentry_relocs): Likewise. * elfcode.h (elf_swap_dyn_out): Adjust type to match elf_swap_dyn_in. (size_info): Add entries for new fields. * elf64-mips.c (mips_elf64_swap_reloc_out): Enable. (mips_elf64_be_swap_reloc_in): New function. (mips_elf64_be_swap_reloc_out): Likewise. (mips_elf64_be_swap_reloca_in): Likewise. (mips_elf64_be_swap_reloca_out): Likewise. (mips_elf64_size_info): Add entries for new fields.
1999-07-07tweak last elf_merge_symbol patchIan Lance Taylor1-4/+21
1999-07-07 * elflink.h (elf_bfd_final_link): Assert that section reloc_countIan Lance Taylor1-11/+47
field equals the new rel_count field. (elf_link_input_bfd): When doing a relocateable link, use the new rel_count field rather than the reloc_count field. (elf_reloc_link_order): Likewise. (elf_finish_pointer_linker_section): Likewise. Based on patch from H.J. Lu <hjl@gnu.org>: * elflink.h (elf_merge_symbol): Permit a non-weak definition in a shared library to override a weak definition in a regular object.
1999-07-01 * elf-bfd.h (bfd_elf_section_data): Add rel_count and rel_count2Mark Mitchell1-64/+142
fields. (_bfd_elf_init_reloc_shdr): New function. * elf.c (_bfd_elf_new_section_hook): Use bfd_zalloc, rather than bfd_alloc followed by memset. (_bfd_elf_init_reloc_shdr): New function, split out from ... (elf_fake_sections): Here. (assign_section_numbers): Assign section numbers for the second relocation section, if required. * elflink.h (elf_link_output_relocs): New function. (elf_link_size_reloc_section): Likewise. (elf_bfd_final_link): Use elf_link_size_reloc_section. (elf_link_input_bfd): Use elf_link_output_relocs. * elf32-mips.c (_bfd_mips_elf_fake_sections): Use _bfd_elf_init_reloc_shdr to initialize rel_hdr2.
1999-06-26 * elflink.h (elf_link_output_extsym): It's OK for a -BsymbolicIan Lance Taylor1-1/+0
shared library to have an undefined symbol.
1999-06-23 * elflink.h (size_dynamic_sections): Use user-specified init/finiMark Mitchell1-10/+16
functions instead of _init/_fini if requested.
1999-06-22 * elflink.h (link_read_relocs): Explicitly cast external_relocs toMark Mitchell1-1/+1
bfd_byte * before performing pointer arithmetic.
1999-06-19 * elflink.h (elf_link_remove_section_and_adjust_dynindices):Ian Lance Taylor1-2/+0
Remove unused local variable spp.
1999-06-13 * elflink.h (elf_link_remove_section_and_adjust_dynindices):Mark Mitchell1-18/+6
Remove abfd parameter. Use _bfd_strip_section_from_output. (bfd_elf_size_dynamic_sections): Adjust callers accordingly.
1999-06-13 * elf-bfd.h (_bfd_elf_link_adjust_dynindx): New function.Mark Mitchell1-34/+58
* elflink.c (_bfd_elf_link_adjust_dynindx): Define it. * elflink.h (elf_link_remove_section_and_adjust_dynindices): New function. (bfd_elf_size_dynamic_sections): Use it.
1999-06-13 * elflink.h (elf_link_read_relocs_from_section): New function,Mark Mitchell1-41/+84
split out from ... (elf_link_read_relocs): Here. Use it for both relocation sections.
1999-05-0319990502 sourceware importbinu_ss_19990502Richard Henderson1-0/+6150