aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
AgeCommit message (Collapse)AuthorFilesLines
2000-06-19Applied Stephane Carrez <Stephane.Carrez@worldnet.fr> patches to add supportNick Clifton1-2/+10
for m68hc11 and m68hc12 processors.
2000-06-192000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>Ulf Carlsson1-1/+2
* elf_bfd.h (struct elf_backend_data): Add info argument to elf_backend_hide_symbol. (_bfd_elf_link_hash_hide_symbol): Likewise. * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise. * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise. * elflink.h (elf_link_add_object_symbols): Likewise. (elf_link_assign_sym_version): Likewise.
2000-06-062000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder1-2/+5
* elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
2000-06-062000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder1-35/+121
* elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus, elfcore_grok_psinfo): Add code to allow debugging a 32-bit corefile on a 64-bit (Sparc Solaris) host. Also clean up a few old comments.
2000-05-31(_bfd_elf_slurp_version_tables): Correct reading of versionUlrich Drepper1-11/+33
definitions. We must not assume they are sorted in the file according to their index numbers.
2000-05-29(_bfd_elf_link_hash_table_init): Initialize dynlocal.Alan Modra1-0/+1
2000-05-09Fix some nits shown up by objcopy.Alan Modra1-16/+33
2000-05-052000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder1-3/+18
* elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1. * bfd-in.h: Prototype bfd_elf_get_arch_size. * bfd-in2.h: Prototype bfd_elf_get_arch_size.
2000-05-022000-05-02 H.J. Lu <hjl@gnu.org>H.J. Lu1-1/+1
* elf.c (prep_headers): USe ELFOSABI_NONE instead of ELFOSABI_SYSV.
2000-04-21IA-64 ELF support.Jim Wilson1-0/+3
2000-03-27ATMEL AVR microcontroller support.Alan Modra1-0/+3
2000-03-06 * elf.c (swap_out_syms): Check for null type_ptr.Catherine Moore1-1/+2
2000-02-23Add IBM 370 support.Alan Modra1-1/+4
2000-02-18 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirectRichard Henderson1-8/+4
and hide_symbol members. (elf_link_hash_copy_indirect): Remove. (elf_link_hash_hide_symbol): Remove. (struct elf_backend_data): Add elf_backend_copy_indirect_symbol and elf_backend_hide_symbol. (_bfd_elf_link_hash_copy_indirect): Declare. (_bfd_elf_link_hash_hide_symbol): Declare. * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument. (_bfd_elf_link_hash_hide_symbol): Likewise. (_bfd_elf_link_hash_table_init): Don't init killed members. * elflink.h (elf_link_add_object_symbols): Use the bed function pointers not elf_link_hash_{copy_indirect,hide_symbol}. (elf_link_assign_sym_version): Likewise. * elfxx-target.h (elf_backend_copy_indirect_symbol): Default. (elf_backend_hide_symbol): Likewise. (elfNN_bed): Update for new members.
2000-02-13 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect andRichard Henderson1-0/+56
hide_symbol members. (elf_link_hash_copy_indirect): New. (elf_link_hash_hide_symbol): New. * elflink.h (elf_link_add_object_symbols): Break out copy from indirect new new symbol to elf.c. (elf_link_assign_sym_version): Break out privatization of non-exported symbol to elf.c. * elf.c (_bfd_elf_link_hash_copy_indirect): New. (_bfd_elf_link_hash_hide_symbol): New. (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
2000-01-10Apply patch from Egor Duda to process win32_pstatus notes in core dumps.Nick Clifton1-1/+82
2000-01-03ELF visibility patch from Martin Loewis.Nick Clifton1-4/+14
1999-12-07Add support for SSE registers in ELF core files.Jim Blandy1-12/+49
* elf.c (elfcore_make_note_pseudosection): New function. (elfcore_grok_prfpreg): Use it. (elfcore_grok_prxfpreg): New function. (elfcore_grok_note): Recognize Linux NT_PRXFPREG notes.
1999-11-29* elf.c (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): NewJim Blandy1-0/+48
functions. * bfd-in2.h (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New declarations.
1999-11-26Add support for target specific processing of ELF segmentsNick Clifton1-17/+51
1999-09-24Fred Fish <fnf@cygnus.com>Richard Henderson1-2/+14
* elf.c (bfd_section_from_phdr): Add typename variable. Use p_type to initialize it to something meaningful. Then use it to generate more useful segment names.
1999-09-041999-09-04 Steve Chamberlain <sac@pobox.com>Ian Lance Taylor1-0/+3
* cpu-pj.c: New file. * elf32-pj.c: New file. * config.bfd (pj*): New cpu. (pj-*-*, pjl-*-*): New targets. * configure.in (bfd_elf32_pj_vec): New target vector. (bfd_elf32_pjl_vec): New target vector. * archures.c (bfd_arch_pj): Define. * elf.c (prep_headers): Handle bfd_arch_pj. * reloc.c: Define BFD_RELOC_PJ_* relocations. * targets.c (bfd_elf32_pj_vec, bfd_elf32_pjl_vec): Declare and add to target vector list. * Makefile.am: Rebuild dependencies. (ALL_MACHINES): Add cpu-pj.lo. (ALL_MACHINES_CFILES): Add cpu-pj.c. (BFD32_BACKENDS): Add elf32-pj.lo. (BFD32_BACKENDS_CFILES): Add elf32-pj.c. * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
1999-07-30Jakub Jelinek <jj@ultra.linux.cz>Richard Henderson1-2/+15
* 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-13 * elf.c (assign_file_positions_for_segments): Thinko last change.Richard Henderson1-3/+1
Always overwrite p_flags.
1999-07-13* elf.c (assign_file_positions_for_segments): Don't overwrite p_flags.Richard Henderson1-3/+1
1999-07-11 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSEDIan Lance Taylor1-19/+19
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-2/+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-07 * elflink.h (elf_link_create_dynamic_sections): Handle non-standardMark Mitchell1-1/+1
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-02 * dwarf2.c (parse_comp_unit): Add ABBREV_LENGTH parameter.Mark Mitchell1-1/+1
(_bfd_dwarf2_find_nearest_line): Add ADDR_SIZE parameter. * elf.c (_bfd_elf_find_nearest_line): Pass it. * elf32-arm.h (elf32_arm_find_nearest_line): Likewise. * elf32-mips.c (ABI_64_P): New macro. (IRIX_COMPAT): We are IRIX6-compatible if ABI_64_P. (_bfd_mips_elf_find_nearest_line): Adjust call to _bfd_dwarf2_find_nearest_line. * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype. * libbfd.h: Regenerated.
1999-07-01 * elf-bfd.h (bfd_elf_section_data): Add rel_count and rel_count2Mark Mitchell1-35/+59
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-22 * elf.c (bfd_section_from_shdr): Avoid crashing on a bogus sh_linkIan Lance Taylor1-0/+9
field.
1999-06-04 * elf.c (elf_fake_sections): Undo change of 1999-05-10.Andreas Schwab1-2/+2
1999-06-02 * elf-bfd.h (elf_backend_data): Remove use_rela_p. AddMark Mitchell1-9/+17
may_use_rel_p, may_use_rela_p, default_use_rela_p. (bfd_elf_section_data): Add use_rela_p. * elf.c (bfd_section_from_shdr): Set use_rela_p appropriately. (_bfd_elf_new_section_hook): Likewise. (elf_fake_sections): Use may_use_rela_p, etc., instead of use_rela_p. (_bfd_elf_copy_private_section_data): Copy use_rela_p. * elfcode.h (write_relocs): Determine whether or not use rela relocs based on the relocation section header. * elflink.c (_bfd_elf_create_dynamic_sections): Use default_use_rela_p instead of use_rela_p. * elfxx-target.h (elf_backend_may_use_relp): New macro. (elf_backend_may_use_rela_p): Likewise. (elf_backend_default_use_rela_p): Likewise. (elfNN_bed): Use them.
1999-05-28Initialise EI_OSABI and EI_ABIVERSION fields of e_ident array.Nick Clifton1-0/+7
Add ability for backends to process program and section headers after they have been created.
1999-05-271999-05-28 Martin Dorey <mdorey@madge.com>Ian Lance Taylor1-0/+3
* elf32-i960.c: New file. * elf.c (prep_headers): Handle bfd_arch_i960. * targets.c (bfd_target_vector): Add &bfd_elf32_i960_vec. * config.bfd (i960-*-elf*): New target. * configure.in (bfd_elf32_i960_vec): New target vector. * Makefile.am (BFD32_BACKENDS): Add elf32-i960.lo. (BFD32_BACKENDS_CFILES): Add elf32-i960.c. * Makefile.in, aclocal.m4, configure: Rebuild.
1999-05-10Check for period after .rel{a} when detecting reloc sections.Nick Clifton1-2/+2
1999-05-0319990502 sourceware importbinu_ss_19990502Richard Henderson1-0/+5250