Age | Commit message (Collapse) | Author | Files | Lines |
|
* elf.c: comment and formatting cleanups.
* elfcore.h: ditto.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
|
|
|
|
failure.
|
|
Don't add section VMA to symbols for relocatable output.
(_bfd_elf_compute_section_file_positions): Update call to
swap_out_syms.
|
|
|
|
<schwab@issan.informatik.uni-dortmund.de>
* elf.c (elf_map_symbols): Don't add section VMA to symbol value
when comparing against 0.
|
|
sections' LMAs have changed.
|
|
* elf.c (bfd_elf_get_bfd_needed_list): New function.
* bfd-in.h (bfd_elf_get_bfd_needed_list): Declare.
* bfd-in2.h: Rebuild.
|
|
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.
|
|
* elf64-sparc.c (ELF_MACHINE_CODE): Likewise.
(ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64.
|
|
|
|
have a bfd_object.
|
|
* 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.
|
|
(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.
|
|
|
|
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.
|
|
|
|
variants.
|
|
|
|
string index.
|
|
* 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.
|
|
_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.
|
|
|
|
* 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.
|
|
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.
|
|
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.
|
|
not zero.
|
|
against SEC_DEBUGGING sections here (revert patch of December 5).
* elfcode.h (elf_object_p): Check for them here, instead.
|
|
* 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.
|
|
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.
|
|
* 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.
|
|
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.
|
|
* 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.
|
|
* Makefile.in,archures.c,elf.c,targets.c: Likewise.
|
|
only get the LMA from the phdr if they are in the same part of the
file.
|
|
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.
|
|
* 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.
|
|
memory position separately from the file position, and use it to
compute the alignment adjustment.
PR 10039.
|
|
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
|
|
approximate the correct answer if SIZEOF_HEADERS was not used.
|
|
* 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.
|
|
* 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.
|
|
message rather than calling BFD_ASSERT.
* elfcode.h (write_relocs): Check return value of
_bfd_elf_symbol_from_bfd_symbol.
|
|
memory size for the alignment of a SEC_ALLOC section, not just a
SEC_LOAD section.
|
|
format is not bfd_object.
(bfd_elf_get_dt_soname): Likewise.
|
|
then start a new segment rather than put a writable section in a
readonly segment.
|