aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
AgeCommit message (Collapse)AuthorFilesLines
1998-09-02Thu Aug 20 11:30:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-19/+22
* elf.c: comment and formatting cleanups. * elfcore.h: ditto.
1998-08-31 * Makefile.am: Add elf32-arm.c.Catherine Moore1-0/+4
* Makefile.in: Rebuild. * elf-bfd.h: Add elf_backend_get_symbol_type. * elf.c (swap_out_syms): If defined, call elf_backend_get_symbol_type. * elf32-arm.c: Define elf_backend_get_symbol_type. (elf32_arm_get_symbol-type): New routine. (record_thumb_to_arm_glue): Change to use STT_ARM_TFUNC. (bfd_elf32_arm_process_before_allocation): Change to check for STT_ARM_TFUNC. (elf32_arm_final_link_relocate): Likewise. * elfxx-target.h: Add elf_backend_get_symbol_type.
1998-08-29 * elf-bfd.h (_bfd_elf_rel_vtable_reloc_fn): Declare.Richard Henderson1-2/+18
* elf.c (_bfd_elf_rel_vtable_reloc_fn): New. * elf32-i386.c (elf_howto_table): Add vtable relocs. (elf_i386_reloc_type_lookup): Recognize them. (elf_i386_check_relocs): Pass them off to generic code. (elf_i386_relocate_section): Ignore them. (elf_i386_gc_mark_hook, elf_i386_gc_sweep_hook): New. (elf_backend_can_gc_sections): True.
1998-08-20Wed Aug 19 15:43:26 1998 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-41/+112
* elfcode.h (elf_object_p): Reject files of header type ET_CORE (core files are treated differently than object files). * elf-bfd.h (_bfd_elf_write_corefile_contents, bfd_elf_mkcorefile): declare. * elfxx-target.h (_bfd_elf_write_corefile_contents, bfd_elf_mkcorefile): add to bfd_target vector. * elfcore.h (elf_core_file_p): save the program header table, and set the bfd architecture from the elf file header. * elf.c (bfd_elf_mkcorefile): new function. (_bfd_elf_write_corefile_contents): new function. (assign_file_positions_for_segments): add cases for handling PT_NOTE segments. (assign_file_positions_except_relocs): core files should be handled the same as exec files. (prep_headers): identify core files as type ET_CORE. (copy_private_bfd_data): identify the sections belonging to the PT_NOTE segment. * elf32-sparc.c (elf32_sparc_final_write_processing): add break statement to default case.
1998-07-02Add support for changing LMA and VMA of sections/Nick Clifton1-96/+336
1998-06-30ELF Section-level Garbage Collection.Richard Henderson1-2/+5
1998-06-19 * elf.c (_bfd_elf_section_from_bfd_section): Call bfd_set_error onIan Lance Taylor1-2/+22
failure.
1998-06-12 * elf.c (swap_out_syms): New arg relocatable_p.Doug Evans1-4/+10
Don't add section VMA to symbols for relocatable output. (_bfd_elf_compute_section_file_positions): Update call to swap_out_syms.
1998-06-06sort sections by LMA then VMA.Nick Clifton1-5/+7
1998-06-05Fri Jun 5 15:11:11 1998 Andreas Schwab ↵Ian Lance Taylor1-1/+1
<schwab@issan.informatik.uni-dortmund.de> * elf.c (elf_map_symbols): Don't add section VMA to symbol value when comparing against 0.
1998-05-29Partial fix for PR 15929 - Change physical address of segment when itsNick Clifton1-5/+58
sections' LMAs have changed.
1998-04-27 Based on patch from H.J. Lu <hjl@gnu.org>:Ian Lance Taylor1-1/+86
* elf.c (bfd_elf_get_bfd_needed_list): New function. * bfd-in.h (bfd_elf_get_bfd_needed_list): Declare. * bfd-in2.h: Rebuild.
1998-04-22 * Many files: Added gettext invocations around user-visibleTom Tromey1-14/+27
strings. * libbfd-in.h: Added gettext includes and defines. * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY, HAVE_LC_MESSAGES): Define. * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and po/Makefile. * Makefile.am (SUBDIRS): Added po. (POTFILES): New macro. (po/POTFILES.in): New target. (SOURCE_HFILES): New macro. (HFILES): Use it. * po/Make-in, po/POTFILES.in, po/bfd.pot: New files.
1998-04-15 * elf.c (prep_headers): Use new EM_SPARCV9 symbol.Richard Henderson1-5/+7
* elf64-sparc.c (ELF_MACHINE_CODE): Likewise. (ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64.
1998-03-27Fix gcc -Wall warnings. See ChangeLog for details.Ian Lance Taylor1-12/+11
1998-01-28 * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if weIan Lance Taylor1-2/+6
have a bfd_object.
1998-01-28Sparc v9 ABI compliant PLT:Richard Henderson1-0/+9
* elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries. (plt_templates, sparc64_elf_build_plt_entry): Delete. (LARGE_PLT_THRESHOLD): New define. (GOT_RESERVED_ENTRIES): V9 ABI only uses 1. (sparc64_elf_build_plt): New function. (sparc64_elf_plt_entry_offset): Likewise. (sparc64_elf_plt_ptr_offset): Likewise. (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to contain the index for convenience. Skip the initial entries in .rela.plt. (sparc64_elf_size_dynamic_sections): Zero the allocated contents memory for the benefit of .rela.plt. (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset. (sparc64_elf_finish_dynamic_symbol): Kill template stuff. Use sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc. (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt. Call sparc64_elf_build_plt. (elf_backend_want_got_plt): No. (elf_backend_plt_readonly): No. (elf_backend_plt_alignment): 8. * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab. * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it. * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it to be called.
1997-12-22 * Makefile.am (ALL_MACHINES,BFD32_BACKENDS): Add txvu support.Doug Evans1-0/+14
(cpu-txvu.lo,elf32-txvu.lo): Add rules for. * Makefile.in: Rebuild. * config.bfd, configure.in: Add txvu support. * configure: Regenerate. * archures.c, elf.c, targets.c: Add txvu support. * bfd-in2.h: Regenerate. * cpu-txvu.c, elf32-txvu.c: New files.
1997-12-16Add _bfd_dwarf2_find_nearest_line.Gavin Romig-Koch1-0/+5
1997-12-11 * elf.c (assign_file_positions_for_segments): For a loadableIan Lance Taylor1-23/+32
section, make sure that the load address is correct relative to the load address of the segment plus the size of the segment so far.
1997-09-03Set machine number based in bits in e_flags field rather than magic number.Nick Clifton1-6/+0
1997-08-25Switched over to using machine numbers to distinguish v850 architecture ↵Nick Clifton1-2/+12
variants.
1997-08-15Remove ARC sanitization.David Edelsohn1-3/+1
1997-06-26 * elf.c (bfd_elf_string_from_elf_section): Check for an invalidIan Lance Taylor1-6/+16
string index.
1997-03-10 From Eric Youngdale <eric@andante.jic.com>:Ian Lance Taylor1-10/+100
* elf-bfd.h (elf_symbol_type): Add version field. * elfcode.h (elf_slurp_symbol_table): Set version field. * elflink.h (elf_link_add_object_symbols): When creating an indirect symbol for a default version symbol, set DEF_DYNAMIC if appropriate. Set up an indirection from the nondefault version of the symbol as well. (NAME(bfd_elf,size_dynamic_sections)): Call elf_link_assign_sym_version before checking whether there are any versions. Always record the version name as a dynamic symbol. Initialize counters. (elf_link_assign_sym_version): After finding a version, see if a symbol should be forced to local scope. Create a new version definition if appropriate. (elf_link_output_extsym): Correct indirect symbol handling. * elf.c (bfd_elf_print_symbol): Print version information. (bfd_section_from_shdr): Turn version sections into BFD sections. (elf_fake_sections): Only copy cverdefs and cverrefs into sh_info if sh_info is not already set. (_bfd_elf_copy_private_section_data): Copy sh_info for version sections. * elflink.c (_bfd_elf_link_record_dynamic_symbol): Tell _bfd_stringtab_add to copy the name into permanent memory if appropriate.
1997-02-28 * elfxx-target.h (bfd_elfNN_bfd_is_local_label_name): Define asIan Lance Taylor1-3/+460
_bfd_elf_is_local_label_name if not already defined. * elf.c (_bfd_elf_is_local_label_name): New function. * elf-bfd.h (_bfd_elf_is_local_label_name): Declare.
1997-02-20Since d10v is public now, remove all sanitization statementsMichael Meissner1-2/+0
1997-02-19Tue Feb 18 17:22:59 1997 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt1-1/+6
* Makefile.in, archures.c, config.bfd, configure.in, elf.c, reloc.c, targets.c: New target, elf-*-D30V. * bfd-in2.h, configure, libbfd.h: Rebuilt. * cpu-d30v.c, elf32-d30v.c: New files.
1997-01-03Fri Jan 3 16:58:31 1997 Richard Henderson <rth@tamu.edu>Ian Lance Taylor1-1/+1
elf64-alpha multiple .got rewrite: * elf-bfd.h (struct elf_backend_data): Add always_size_sections entry. (bfd_elf*_mkobject): Don't define here ... * elfxx-target.h: ... but rather here. Default always_size_sections hook to NULL. * elf.c (elf_mkobject): Rename to bfd_elf_mkobject, since that was what the #defines in elf-bfd.h transmuted it to anyway. * section.c: Add SEC_LINKER_CREATED flag. * bfd-in2.h: Rebuild. * elf32-i386.c (elf_i386_check_relocs): Add SEC_LINKER_CREATED to relocation section flags. (elf_i386_size_dynamic_sections): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY to recognize generated bits. * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_size_dynamic_sections): Likewise. * elf32-mips.c (mips_elf_final_link, mips_elf_create_dynamic_sections, mips_elf_create_compact_rel_section, mips_elf_create_got_section, mips_elf_check_relocs, mips_elf_size_dynamic_sections): Likewise. * elf32-ppc.c (ppc_elf_create_linker_section, ppc_elf_size_dynamic_sections): Likewise. * elf32-sparc.c (elf32_sparc_check_relocs, elf32_sparc_size_dynamic_sections): Likewise. * elflink.c (_bfd_elf_create_got_section): Add SEC_LINKER_CREATED to section flags. (_bfd_elf_create_dynamic_sections): Likewise. (_bfd_elf_make_linker_section_rela): Likewise. * elflink.h (elf_link_create_dynamic_sections): Likewise. (bfd_elf,size_dynamic_sections): Call the always_size_sections hook. (elf_bfd_final_link): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY to identify generated bits. (elf_link_input_bfd): Likewise. * elf64-alpha.c: Rewrite everything touching relocations.
1996-12-31 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): AddIan Lance Taylor1-0/+2
filter_shlib and auxiliary_filter_shlib parameters. * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_AUXILIARY and DT_FILTER. * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration. (bfd_elf64_size_dynamic_sections): Likewise. * bfd-in2.h: Rebuild.
1996-12-17 * elf.c (bfd_elf_print_symbol): Print the st_other field if it isIan Lance Taylor1-0/+5
not zero.
1996-12-16 * elf.c (bfd_section_from_shdr): Don't check for reloc sectionsIan Lance Taylor1-14/+1
against SEC_DEBUGGING sections here (revert patch of December 5). * elfcode.h (elf_object_p): Check for them here, instead.
1996-12-15 * elfcode.h (elf_slurp_reloc_table): Add dynamic parameter.Ian Lance Taylor1-1/+85
* elf.c (_bfd_elf_canonicalize_reloc): Pass new argument to slurp_reloc_table. (_bfd_elf_get_dynamic_reloc_upper_bound): New function. (_bfd_elf_canonicalize_dynamic_reloc): New function. * elf-bfd.h (struct elf_size_info): Update declaration of slurp_reloc_table. (_bfd_elf_get_dynamic_reloc_upper_bound): Declare. (_bfd_elf_canonicalize_dynamic_reloc): Declare. * elfxx-target.h: Use new dynamic reloc routines by default. * elf64-mips.c (mips_elf64_slurp_reloc_table): Add dynamic parameter.
1996-12-05 * elflink.h (elf_link_add_object_symbols): Calling check_relocsIan Lance Taylor1-4/+24
even if SEC_ALLOC is not set. * elf32-i386.c (elf_i386_check_relocs): Don't check SEC_ALLOC when deciding whether to copy a reloc into a shared object. (elf_i386_relocate_section): Likewise. * elf32-sparc.c (elf32_sparc_check_relocs): Likewise. (elf32_sparc_relocate_section): Likewise. * elf32-i386.c (elf_i386_check_relocs): Don't set SEC_ALLOC in a reloc section if it is not set in the source section. * elf32-sparc.c (elf32_sparc_check_relocs): Likewise. * elf.c (bfd_section_from_shdr): Mark a reloc section associated with a SEC_DEBUGGING section as SEC_DEBUGGING. PR 11174.
1996-10-03 * cpu-mn10x00.c, elf32-mn10x00.c: New files.Jeff Law1-0/+7
* Makefile.in (ALL_MACHINES): Add cpu-mn10x00.o. (BFD32_BACKENDS): Similarly for elf32-mn10x00.o. (elf32-mn10x00.o): Add dependencies. * archures.c (enum bfd_architecture): Add bfd_arch_mn10x00. (bfd_mn10x00_arch): Declare. (bfd_archures_list): Add bfd_mn10x00_arch. * config.bfd: Add mn10x00-*-*. * configure.in: Add bfd_elf32_mn10x00_vec. * elf.c (prep_headers): Handle bfd_arch_mn10x00. * targets.c (bfd_elf32_mn10x00_vec): Declare. (bfd_target_vector): Add bfd_elf32_mn10x00_vec. * bfd-in2.h, configure: Rebuilt. Stubbing out Matsushita support.
1996-09-11 * elf.c (assign_file_positions_for_segments): Test SEC_ALLOCIan Lance Taylor1-1/+1
rather than SEC_LOAD when aligning the file offset for the first section in a segment. Fixes the case in which . is set just before the .bss section in a linker script.
1996-09-11 * syms.c (coff_section_type): Make arg const.Fred Fish1-0/+6
* irix-core.c (irix_core_core_file_p): Remove extraneous extra arg to make_bfd_asection(). * elf-bfd.h (bfd_section_from_phdr): Add prototype. * elfcode.h (bfd_section_from_phdr): Remove prototype. (_bfd_elf_stringtab_init): Remove prototype. * netbsd-core.c (swap_abort): Add prototype. * aix386-core.c (swap_abort): Ditto & make static * hpux-core.c (swap_abort): Ditto & make static. * irix-core.c (swap_abort): Ditto & make static. * ptrace-core.c (swap_abort): Ditto & make static. * trad-core.c (swap_abort): Ditto & make static. * coffswap.h (coff_swap_reloc_in): Ditto. (coff_swap_reloc_out): Ditto. (coff_swap_filehdr_in): Ditto. (coff_swap_filehdr_out): Ditto. (coff_swap_sym_in): Ditto. (coff_swap_sym_out): Ditto. (coff_swap_aux_in): Ditto. (coff_swap_aux_out): Ditto. (coff_swap_lineno_in): Ditto. (coff_swap_lineno_out): Ditto. (coff_swap_aouthdr_in): Ditto. (coff_swap_aouthdr_out): Ditto. (coff_swap_scnhdr_in): Ditto. (coff_swap_scnhdr_out): Ditto. * ihex.c (ihex_sizeof_headers): Ditto. * tekhex.c (getsym): Ditto. (find_chunk): Ditto & make static. (insert_byte): Ditto. (first_phase): Ditto. (pass_over): Ditto. (tekhex_get_symtab): Ditto & make static. (tekhex_get_symtab_upper_bound): Ditto & make static. (tekhex_mkobject): Ditto. (tekhex_object_p): Ditto. (move_section_contents): Ditto. (tekhex_get_section_contents): Ditto. (tekhex_set_arch_mach): Ditto & make static. (tekhex_set_section_contents): Ditto. (writevalue): Ditto. (writesym): Ditto. (out): Ditto. (tekhex_write_object_contents): Ditto. (tekhex_sizeof_headers): Ditto. (tekhex_make_empty_symbol): Ditto. (tekhex_get_symbol_info): Ditto. (tekhex_print_symbol): Ditto. * irix-core.c (make_bfd_asection): Ditto. (irix_core_core_file_p): Ditto. (irix_core_core_file_failing_command): Ditto. (irix_core_core_file_failing_signal): Ditto. (irix_core_core_file_matches_executable_p): Ditto. (irix_core_make_empty_symbol): Ditto. * coff-mips.c (mips_bfd_reloc_type_lookup): Ditto. * srec.c (srec_new_symbol): Ditto. (srec_get_section_contents): Ditto. (srec_set_arch_mach): Ditto. (srec_set_section_contents): Ditto. (internal_srec_write_object_contents): Ditto. (srec_write_object_contents): Ditto. (symbolsrec_write_object_contents): Ditto. (srec_sizeof_headers): Ditto. (srec_make_empty_symbol): Ditto. (srec_get_symtab_upper_bound): Ditto. (srec_get_symtab): Ditto. (srec_print_symbol): Ditto and make static. * elf.c (elf_read): Ditto (assign_section_numbers): Ditto. (elf_fake_sections): Ditto. (sym_is_global): Ditto. (elf_map_symbols): Ditto. (get_program_header_size): Ditto. * coffgen.c (make_a_section_from_file): Ditto. (coff_real_object_p): Ditto. (fixup_symbol_value): Ditto. (build_debug_section): Ditto. (copy_name): Ditto. * syms.c (coff_section_type): Ditto.
1996-09-09 * config.bfd,configure.in,configure: Add m32r support.David Edelsohn1-7/+29
* Makefile.in,archures.c,elf.c,targets.c: Likewise.
1996-08-05 * elf.c (_bfd_elf_make_section_from_shdr): For a loadable section,Ian Lance Taylor1-1/+5
only get the LMA from the phdr if they are in the same part of the file.
1996-08-05 * elf.c (map_sections_to_segments): Rewrite tests for starting aIan Lance Taylor1-22/+61
new segment to make them more comprehensible. If the relationship between the LMA and the VMA changed, start a new segment. Don't check dynsec when deciding whether to start a new segment for a writeable section; -N will now handle this.
1996-07-31 Make ld -N more reasonable for ELF:Ian Lance Taylor1-7/+28
* elf.c (map_sections_to_segments): If D_PAGED is not set, set phdr_in_section to false, and always use a single load segment. (elf_sort_sections): Sort sections by LMA after VMA. (assign_file_positions_for_segments): If D_PAGED is not set, don't align to maxpagesize. (assign_file_positions_except_relocs): Likewise. * elfcode.h (elf_object_p): If a section is loaded but not page aligned, clear D_PAGED.
1996-07-24 * elf.c (assign_file_positions_for_segments): Track the virtualIan Lance Taylor1-2/+6
memory position separately from the file position, and use it to compute the alignment adjustment. PR 10039.
1996-07-18start-sanitize-d10vMartin Hunt1-6/+24
Wed Jul 17 14:51:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com> * Makefile.in (ALL_MACHINES): Add cpu-d10v.o (BFD32_BACKENDS) Add elf32-d10v.o * archures.c: Add bfd_d10v_arch. * bfd-in2.h: Add bfd_d10v_arch. * config.bfd (d10v-*-*): New target. * configure: (bfd_elf32_d10v_vec) New vector. * configure.in: (bfd_elf32_d10v_vec) New vector. * cpu-d10v.c: New file. * elf.c (prep_headers): Added case bfd_arch_d10v. * elf32-d10v.c: New file. * libbfd.h: Rebuild. * reloc.c (BFD_RELOC_D10V_10_PCREL_R, BFD_RELOC_D10V_10_PCREL_L, BFD_RELOC_D10V_18, BFD_RELOC_D10V_18_PCREL): Define. * targets.c (bfd_elf32_d10v_vec): New vector. end-sanitize-d10v
1996-06-19 * elf.c (map_sections_to_segments): Fix up the test for -Ttext toIan Lance Taylor1-8/+114
approximate the correct answer if SIZEOF_HEADERS was not used.
1996-05-29 64-bit MIPS ELF ABI objdump support:Ian Lance Taylor1-17/+11
* elf64-mips.c: New file. * Makefile.in: Rebuild dependencies. (BFD64_BACKENDS): Add elf64-mips.o. (BFD64_BACKENDS_CFILES): Add elf64-mips.c. * config.bfd (mips*el-*-elf*) Add bfd_elf64_bigmips_vec and bfd_elf64_littlemips_vec to targ_selvecs. (mips*-*-elf*): Likewise. * confingure.in: Add bfd_elf64_bigmips_vec and bfd_elf64_littlemips_vec to vector switch. * configure: Rebuild. * elf32-mips.c (_bfd_mips_elf_section_from_shdr): New function, broken out of mips_elf_section_from_shdr. (mips_elf32_section_from_shdr): Rename from mips_elf_section_from_shdr. Call new function. (elf_backend_section_from_shdr): Update name of renamed function. * elf-bfd.h (struct elf_size_info): Change second parameter of write_out_phdrs to be const. Likewise for second parameter of swap_symbol_out. (struct bfd_elf_section_data): Add rel_hdr2 field. (bfd_elf32_swap_symbol_in): Change second parameter to be const. (bfd_elf32_swap_symbol_out): Likewise. (bfd_elf32_swap_reloc_in): Likewise. (bfd_elf32_swap_reloc_out): Likewise. (bfd_elf32_swap_reloca_in): Likewise. (bfd_elf32_swap_reloca_out): Likewise. (bfd_elf32_swap_phdr_in): Likewise. (bfd_elf32_swap_phdr_out): Likewise. (bfd_elf32_swap_dyn_in): Likewise. (bfd_elf32_swap_dyn_out): Likewise. (bfd_elf32_slurp_symbol_table): Declare. (bfd_elf32_write_shdrs_and_ehdr): Declare. (bfd_elf32_write_out_phdrs): Declare. (bfd_elf64_swap_symbol_in): Change second parameter to be const. (bfd_elf64_swap_symbol_out): Likewise. (bfd_elf64_swap_reloc_in): Likewise. (bfd_elf64_swap_reloc_out): Likewise. (bfd_elf64_swap_reloca_in): Likewise. (bfd_elf64_swap_reloca_out): Likewise. (bfd_elf64_swap_phdr_in): Likewise. (bfd_elf64_swap_phdr_out): Likewise. (bfd_elf64_swap_dyn_in): Likewise. (bfd_elf64_swap_dyn_out): Likewise. (bfd_elf64_slurp_symbol_table): Declare. (bfd_elf64_write_shdrs_and_ehdr): Declare. (bfd_elf64_write_out_phdrs): Declare. (_bfd_mips_elf_section_from_shdr): Declare. * elf.c (bfd_section_from_shdr): Remove assertion requiring SHT_REL/SHT_RELA to match use_rela_p. If there is already a reloc section for the section, add the new one to rel_hdr2. Increment reloc_count rather than setting it. * elfcode.h (elf_slurp_symbol_table): Define name as macro. Remove static declaration. (elf_write_shdrs_and_ehdr): Define name as macro. (elf_write_out_phdrs): Likewise. (elf_swap_ehdr_in, elf_swap_ehdr_out): Declare. (elf_swap_shdr_in, elf_swap_shdr_out): Declare. (elf_swap_symbol_in): Change second parameter to be const. (elf_swap_symbol_out): Likewise. (elf_swap_ehdr_in, elf_swap_ehdr_out): Likewise. (elf_swap_shdr_in, elf_swap_shdr_out): Likewise. (elf_swap_phdr_in, elf_swap_phdr_out): Likewise. (elf_swap_reloc_in, elf_swap_reloc_out): Likewise. (elf_swap_reloca_in, elf_swap_reloca_out): Likewise. (elf_write_out_phdrs): Rename from write_out_phdrs. Change second parameter to be const. Make non-static. (elf_write_shdrs_and_ehdr): Rename from write_shdrs_and_ehdr. Make non-static. (elf_slurp_symbol_table): Make non-static. (NAME(_bfd_elf,size_info)): Update names of renamed functions. * elfxx-target.h (elf_info_to_howto): Define if not defined. (elf_backend_size_info): Likewise. (elfNN_bed): Use elf_backend_size_info. * targets.c (bfd_elf64_bigmips_vec): Declare. (bfd_elf64_littlemips_vec): Declare. (bfd_target_vector): Add bfd_elf64_bigmips_vec and bfd_elf64_littlemips_vec if BFD64 is defined.
1996-04-02 * elf-bfd.h (struct elf_link_hash_table): Add hgot field.Ian Lance Taylor1-4/+3
* elf.c (_bfd_elf_link_hash_table_init): Initialize hgot field. * elflink.c (_bfd_elf_create_got_section): Store the _GLOBAL_OFFSET_TABLE_ hash table entry in the hgot field. * elf32-sparc.c (elf32_sparc_check_relocs): If the size of the global offset table goes over 0x1000, set the value of _GLOBAL_OFFSET_TABLE_ to 0x1000 into the section. (elf32_sparc_relocate_section): Subtract the offset of _GLOBAL_OFFSET_TABLE_ when handling GOT relocations. PR 9323.
1996-03-04 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Print a useful errorIan Lance Taylor1-4/+17
message rather than calling BFD_ASSERT. * elfcode.h (write_relocs): Check return value of _bfd_elf_symbol_from_bfd_symbol.
1996-02-28 * elf.c (assign_file_positions_for_segments): Adjust the segmentIan Lance Taylor1-3/+5
memory size for the alignment of a SEC_ALLOC section, not just a SEC_LOAD section.
1996-02-24 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if theIan Lance Taylor1-3/+19
format is not bfd_object. (bfd_elf_get_dt_soname): Likewise.
1996-02-15 * elf.c (map_sections_to_segments): If we have a .dynamic section,Ian Lance Taylor1-10/+38
then start a new segment rather than put a writable section in a readonly segment.