aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2001-08-25 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string forThiemo Seufer2-6/+11
E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
2001-08-242001-08-24 H.J. Lu <hjl@gnu.org>H.J. Lu2-8/+8
* elf.c (_bfd_elf_merge_sections): Fail if not using an ELF hash structure.
2001-08-24Apply H.J.'s patch to revert change to elfxx-target.hNick Clifton6-34/+121
Apply my patch to allow SREC as output format.
2001-08-24* bfd.c (bfd_alt_mach_code): New function.Alexandre Oliva3-0/+63
* bfd-in2.h: Rebuilt.
2001-08-24* elf-m10300.c (mn10300_elf_relocate_section): Test the rightAlexandre Oliva2-2/+8
`type' field in the hash entry when deciding whether to follow a link.
2001-08-24 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, notJakub Jelinek3-25/+56
last. (elf_link_sort_relocs): Adjust accordingly. * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag. (elf64_alpha_check_relocs): Set it if section this reloc is against is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against read-only section. (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation is is against read-only section. (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't check section names. (elf64_alpha_reloc_type_class): New. (elf_backend_reloc_type_class): Define.
2001-08-24 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()Thiemo Seufer2-1/+10
by bfd_malloc().
2001-08-23 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL ifAndreas Jaeger2-27/+34
the reloc is against read-only section. (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf64_x86_64_reloc_type_class): New. (elf_backend_reloc_type_class): Define.
2001-08-23Add more missing prototypesNick Clifton10-864/+907
2001-08-232001-08-23 H.J. Lu <hjl@gnu.org>H.J. Lu15-44/+70
* syms.c (bfd_print_symbol_vandf): Add abfd to arg. * bfd-in2.h (bfd_print_symbol_vandf): Regenerated. * aoutx.h (NAME(aout,print_symbol)): Pass abfd to bfd_print_symbol_vandf. * coffgen.c (coff_print_symbol): Likewise. * elf.c (bfd_elf_print_symbol): Likewise. * ieee.c (ieee_print_symbol): Likewise. * nlmcode.h (nlm_print_symbol): Likewise. * oasys.c (oasys_print_symbol): Likewise. * pdp11.c (NAME(aout,print_symbol)): Likewise. * som.c (som_print_symbol): Likewise. * srec.c (srec_print_symbol): Likewise. * tekhex.c (tekhex_print_symbol): Likewise. * versados.c (versados_print_symbol): Likewise. * vms.c (vms_print_symbol): Likewise. * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma with bfd_fprintf_vma. (bfd_elf_print_symbol): Likewise. * syms.c (bfd_print_symbol_vandf): Likewise.
2001-08-23Add missing prototypes for bout.cNick Clifton5-438/+469
2001-08-23 * elf-bfd.h (enum elf_reloc_type_class): New.Jakub Jelinek9-85/+401
(struct elf_backend_data): Add elf_backend_reloc_type_class. (_bfd_elf_reloc_type_class): New. * elfxx-target.h (elf_backend_reloc_type_class): Define. (elfNN_bed): Add elf_backend_reloc_type_class. * elf.c (_bfd_elf_reloc_type_class): New. * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf_i386_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf32_sparc_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (sparc64_elf_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field. (elfNN_ia64_hash_table_create): Clear ia64_info. (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only section. (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag instead of looking up section names for DT_TEXTREL. (elfNN_ia64_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elflink.h (size_dynamic_sections): Add spare DT_NULL tags. (struct elf_link_sort_rela): New. (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New. (elf_bfd_final_link): Call elf_link_sort_relocs. Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if necessary. * bfdlink.h (struct bfd_link_info): Add combreloc and spare_dynamic_tags fields. * emultempl/elf32.em (place_orphan): Place orphan .rel* sections into .rel.dyn resp. .rela.dyn if combreloc. (get_script): If .x linker script is equal to .xn, only put it once into the binary. Add .xc and .xsc scripts. (parse_args): Handle -z combreloc and -z nocombreloc. * scripttempl/elf.sc (.rela.sbss): Fix a typo. For .xc and .xsc scripts put all .rel* or .rela* input sections but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn. * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME is elf. Strip trailing whitespace from script. Generate .xc and .xsc scripts if requested. * ldmain.c (main): Initialize link_info.combreloc and link_info.spare_dynamic_tags. * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define. (ld_options): Add --spare-dynamic-tags option. (parse_args): Likewise. * ld.texinfo: Document -z combreloc and -z nocombreloc. * ldint.texinfo: Document .xc and .xsc linker scripts. * NEWS: Add notes about -z combreloc and SHF_MERGE.
2001-08-23No corefile support for x86-bsdi systemsNick Clifton3-63/+76
2001-08-22Add missing commaNick Clifton2-1/+6
2001-08-21* coff-go32.c: Set the alignment of dwarf2 linkonce sections to 0.DJ Delorie3-1/+6
* coff-stgo32.c: Likewise.
2001-08-21* coff-go32.c: Make DWARF2 sections use an alignment of 0.DJ Delorie3-2/+11
* coff-sto32.c: Likewise.
2001-08-21 * coff-sparc.c: Add missing prototypes.Andreas Jaeger5-3/+28
* elf32-s390.c: Likewise. * elf32-i960.c: Likewise. * aout-target.h: Likewise.
2001-08-212001-08-20 H.J. Lu <hjl@gnu.org>H.J. Lu3-1/+14
* elf-bfd.h (elf_obj_tdata): Add num_section_syms. (elf_num_section_syms): New for num_section_syms. * elf.c (elf_map_symbols): Set num_section_syms. (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for the section symbol index.
2001-08-20Never select the generic has table creator. All elf backends need elf specificNick Clifton2-6/+7
fields in the hash table.
2001-08-19 * archive.c (offsetof): Remove define.Alan Modra5-20/+13
* elf.c: Likewise. * oasys.c: Likewise * sysdep.h (offsetof): Define.
2001-08-17 * bfd.c (bfd_get_gp_size): Return an unsigned int.Alan Modra6-9/+19
(bfd_set_gp_size): Make param unsigned. * bfd-in2.h: Regenerate. * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather than calling bfd_get_gp_size. * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise. * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
2001-08-17 * linker.c (default_fill_link_order): Handle four byte fill value.Alan Modra2-11/+26
2001-08-17 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missingAlan Modra3-1/+8
prototype. * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
2001-08-17 * elf64-mips.c (UNUSED_RELOC): Define.Alan Modra2-7/+14
(mips_elf64_howto_table_rel): Use it. (mips_elf64_howto_table_rela): Here too. (mips_elf64_write_relocs): Fix signed/unsigned warning.
2001-08-17Oops missed from last commitAlan Modra1-9/+9
2001-08-17 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED toAlan Modra8-20/+61
silence warning. * coffgen.c (coff_print_symbol): Fix warnings. (coff_find_nearest_line): Likewise. * cofflink.c (_bfd_coff_link_input_bfd): Likewise. * coff-alpha.c (alpha_convert_external_reloc): Likewise. * format.c (bfd_check_format_matches): Likewise. (bfd_set_format): Likewise. * coff-ia64.c: Add missing prototypes. * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend signed to silence warnings. (elf64_alpha_relocate_section): Likewise. (elf64_alpha_find_reloc_at_ofs): Fix warnings. (elf64_alpha_add_symbol_hook): Likewise. (elf64_alpha_final_link): Likewise. (elf64_alpha_relax_section): Remove redundant assign to info.gotent. (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args. (elf64_alpha_size_got_sections): Likewise. * elfxx-ia64.c: Add missing prototypes. (elfNN_ia64_relocate_section): Fix warning. (elfNN_ia64_unwind_entry_compare): Make params const.
2001-08-17 * config.bfd (targ64_selvecs): New.Alan Modra2-3/+13
<powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
2001-08-17 * bfd-in.h (BFD_VERSION): Remove wrong comment.Alan Modra5-308/+363
(BFD_DEFAULT_TARGET_SIZE): New. (BFD_ARCH_SIZE): Comment. * configure.in (target_size): New. Set instead of target64 in selvecs case statement. Set target64 from it. (bfd_default_target_size): New. Set from taget_size. AC_SUBST. * bfd-in2.h: Regenerate. * configure: Regenerate.
2001-08-17 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.Alan Modra5-36/+93
(bfd_errmsgs): Add corresponding message. * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when finding an archive that contains different format object files. Return bfd_error_wrong_object_format for this case. * format.c: Formatting fixes. s/CONST/const/. (bfd_check_format_matches): Accept archives that give bfd_error_wrong_object_format if no full match is found. Tidy code handling matching_vector. Don't return a pointer to freed memory in `matching'. Handle ambiguous matches as for partial archive matches. * bfd-in2.h: Regenerate.
2001-08-15 * libieee.h (common_header_type): Add last_byte field.Alan Modra3-108/+250
* ieee.c: Add missing prototypes. Some format fixes. (struct output_buffer_struct): Move for availability to prototypes. (ieee_part_after): New function. (ieee_slurp_debug): Use it here. (ieee_seek): Pass in ieee_data_struct rather than bfd. Use ieee_part_after to set last_byte to one past end of current part. Update callers. (ieee_pos): Pass in ieee_data_struct rather than bfd. Update callers. (parse_expression): Don't go beyond the end of the current part. (ieee_slurp_external_symbols): Correct type passed to read_2bytes. (ieee_get_symtab_upper_bound, ieee_get_symtab, ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook, ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block, ieee_set_section_contents, ieee_write_object_contents, ieee_make_empty_symbol): Make static. (ieee_archive_p): Correct comments regarding bfd_read. (ieee_object_p): Similarly. (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr, output_ptr_end, input_ptr_start, input_ptr, input_ptr_end, input_bfd, output_bfd, output_buffer. (do_as_repeat): Write out ieee_set_current_pc_enum value as for do_with_relocs, ie. as a symbol for relocatable files. (ieee_vec): Add comments showing functions referenced by macros.
2001-08-14Add missing protypesNick Clifton7-502/+505
2001-08-13Fix bug in previous deltaNick Clifton1-2/+4
2001-08-13oops - omitted from previous delta!Nick Clifton1-0/+7
2001-08-13Add missing prototypes. Fix formatting.Nick Clifton2-88/+100
2001-08-11replace direct invocation og elf vma print functions with indirect invocationNick Clifton5-6/+38
2001-08-112001-08-10 Andreas Jaeger <aj@suse.de>Andreas Jaeger6-31/+73
* elf64-sparc.c: Add missing prototypes. * elf32-cris.c: Likewise. * elf32-i370.c: Likewise. * elf64-hppa.c: Likewise. * elf64-s390.c: Likewise.
2001-08-10 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.Andreas Jaeger2-1/+17
Add prototypes where needed.
2001-08-102001-08-10 H.J. Lu <hjl@gnu.org>H.J. Lu2-2/+9
* bfd.c (bfd_sprintf_vma): Fix a typo in the last change. (bfd_fprintf_vma): Likewise.
2001-08-102001-08-10 H.J. Lu <hjl@gnu.org>H.J. Lu2-2/+7
* bfd.c (bfd_sprintf_vma): Don't return void. (bfd_fprintf_vma): Likewise.
2001-08-10 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypesAndreas Jaeger3-2/+8
to build warnings. * configure: Regenerate.
2001-08-10 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quietAlan Modra2-8/+16
warning if not BFD64. Add braces so emacs auto format works. (bfd_elf_fprintf_vma): Likewise.
2001-08-10 * libxcoff.h (struct xcoff_backend_data_rec): Constify src paramAlan Modra5-52/+146
of _xcoff_swap_ld*. * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external param to agree with libxcoff.h. (xcoff_swap_ldhdr_out): Likewise. (xcoff_swap_ldsym_in): Likewise. (xcoff_swap_ldsym_out): Likewise. (xcoff_swap_ldrel_in): Likewise. (xcoff_swap_ldrel_out): Likewise. (xcoff_create_csect_from_smclas): Likewise. * coff64-rs6000.c: Add missing prototypes. (xcoff64_swap_ldhdr_in): Modify type of external param to agree with libxcoff.h. (xcoff64_swap_ldhdr_out): Likewise. (xcoff64_swap_ldsym_in): Likewise. (xcoff64_swap_ldsym_out): Likewise. (xcoff64_swap_ldrel_in): Likewise. (xcoff64_swap_ldrel_out): Likewise. (xcoff64_ppc_relocate_section): Make static. (xcoff64_slurp_armap): Likewise. (xcoff64_archive_p): Likewise. (xcoff64_openr_next_archived_file): Likewise. (xcoff64_sizeof_headers): Likewise. (xcoff64_is_lineno_count_overflow): Likewise. (xcoff64_is_reloc_count_overflow): Likewise. (xcoff64_loader_symbol_offset): Likewise. (xcoff64_loader_reloc_offset): Likewise. * elf64-gen.c: Add missing prototypes.
2001-08-092001-08-09 H.J. Lu <hjl@gnu.org>H.J. Lu2-0/+13
* elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64. (bfd_elf_fprintf_vma): Likewise.
2001-08-092001-08-09 H.J. Lu <hjl@gnu.org>H.J. Lu4-4/+10
* bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved to ... * elf-bfd.h: Here. * bfd-in2.h: Regenerated.
2001-08-092001-08-09 H.J. Lu <hjl@gnu.org>H.J. Lu5-0/+100
* bfd-in.h (bfd_sprintf_vma): New prototype. (bfd_fprintf_vma): Likewise. (bfd_elf_sprintf_vma): Likewise. (bfd_elf_fprintf_vma): Likewise. (bfd_printf_vma): New. Defined with bfd_fprintf_vma. * bfd-in2.h: Regenerated. * bfd.c (bfd_sprintf_vma): New. Defined. (bfd_fprintf_vma): Likewise. * elf.c (bfd_elf_sprintf_vma): New. Defined. (bfd_elf_fprintf_vma): Likewise.
2001-08-09 * coff-rs6000.c: Add missing prototypes.Alan Modra11-100/+268
(xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow, xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset, xcoff_loader_reloc_offset): Make static. * dwarf1.c: Add missing prototypes. * dwarf2.c: Add missing prototypes. (struct abbrev_info): Move definition. (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise. * elf.c: Add missing prototypes. * elf32-gen.c: Likewise. * elf32-i386.c: Likewise. * elf32-ppc.c: Likewise. (ppc_elf_sort_rela): Use PTR instead of "void *". * elflink.h: Add missing prototypes. Formatting fixes. * merge.c: Add missing prototypes. (last4_eq): Use PTR instead of "void *". (last_eq): Likewise. * syms.c: Add missing prototypes.
2001-08-09Fix formattingNick Clifton3-83/+100
2001-08-09Change 'partial_inplace' to true (this target uses REL relocations) andNick Clifton2-2/+8
'pcrel_offset' to false (the PC is implied, not stored in the offset).
2001-08-08 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.Alan Modra4-17/+34
* elfxx-target.h (elf_backend_want_got_sym): Define. (elfNN_bed): Add elf_backend_want_got_sym. * elflink.c (_bfd_elf_create_got_section): Define _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
2001-08-08* dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.Alexandre Oliva2-2/+90
(find_rela_addend): New function. (parse_comp_unit): Call it to find the abbrev offset addend. (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new members of dwarf2_debug as debugging information is read.