aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1995-02-17Make GOT relocs offset by 32768, which allows the table to double in size.Michael Meissner1-0/+6
1995-02-17 * syms.c (bfd_decode_symclass): Return 'W' for a weak symbol.Ian Lance Taylor1-0/+2
1995-02-17 * coffgen.c (coff_real_object_p): Set start address and flagsIan Lance Taylor1-0/+5
before calling coff_mkobject_hook. Restore them on failure. * ecoff.c (_bfd_ecoff_mkobject_hook): If not ECOFF_AOUT_ZMAGIC, clear D_PAGED. PR 6341.
1995-02-17 * coffgen.c: Reindented.Ian Lance Taylor2-547/+593
1995-02-16* reloc.c (bfd_perform_relocation): Don't use bitpos in overflow calculations.David Edelsohn1-0/+6
(bfd_install_relocation): Likewise.
1995-02-16 * hosts/std-host.h: Remove all function declarations which returnIan Lance Taylor2-31/+5
int or void, except the one for free.
1995-02-15Fix powerpc PC relative reloc & add some 16 bit relocs.Michael Meissner2-0/+973
1995-02-14 * elf32-mips.c (struct mips_elf_find_line): Define.Ian Lance Taylor1-0/+6
(mips_elf_find_nearest_line): New static function. (bfd_elf32_find_nearest_line): Define. * libelf.h (struct elf_obj_tdata): Add find_line_info field. * ecoff.c (_bfd_ecoff_swap_tir_in): Move to ecofflink.c. (_bfd_ecoff_swap_tir_out): Likewise. (_bfd_ecoff_swap_rndx_in): Likewise. (_bfd_ecoff_swap_rndx_out): Likewise. (cmp_fdrtab_entry): Likewise. (mk_fdrtab): Likewise. (lookup): Likewise. (_bfd_ecoff_find_nearest_line): Just call _bfd_ecoff_locate_line to do most of the work. Allocate find_line_info if necessary. * ecofflink.c: Include "aout/stab_gnu.h". (_bfd_ecoff_swap_tir_in): Move in from ecoff.c. (_bfd_ecoff_swap_tir_out): Likewise. (_bfd_ecoff_swap_rndx_in): Likewise. (_bfd_ecoff_swap_rndx_out): Likewise. (cmp_fdrtab_entry): Likewise. Use PTR instead of void *. (mk_fdrtab): Move in from ecoff.c. Add debug_info, debug_swap, and line_info arguments, and use them instead of ecoff_data. (fdrtab_lookup): Move in from lookup in ecoff.c. Remove abfd argument, add line_info argument. Use it instead of ecoff_data. (_bfd_ecoff_locate_line): New function, mostly from the old _bfd_ecoff_find_nearest_line in ecoff.c. * libecoff.h (ecoff_data_type): Remove find_buffer, fdrtab_len and fdrtab fields, replacing them find_line_info field. (_bfd_ecoff_swap_tir_in): Declare. (_bfd_ecoff_swap_tir_out): Declare. (_bfd_ecoff_swap_rndx_in): Declare. (_bfd_ecoff_swap_rndx_out): Declare. * libbfd-in.h (_bfd_ecoff_locate_line): Declare. * libbfd.h: Rebuild. * configure.in: Don't use ecoff.o for bfd_elf32_bigmips_vec or bfd_elf32_littlemips_vec. * Makefile.in: Rebuild dependencies.
1995-02-14Reconize old versions of the PowerPC machine code (EM_PPC_OLD and ↵Michael Meissner4-2/+45
EM_CYGNUS_POWERPC).
1995-02-14 * aoutf1.h (MACHTYPE_OK): Don't define if already defined. Don'tIan Lance Taylor1-0/+8
accept M_SPARC if bfd_arch_sparc is not in the list of supported architectures, and don't accept a 680x0 machine type if bfd_arch_m68k is not in the list of supported architectures. * aout0.c (MACHTYPE_OK): Define.
1995-02-14 * aoutx.h (NAME(aout,swap_ext_reloc_in)): Don't return a pointerIan Lance Taylor1-0/+6
to garbage if the symbol index is out of range. (NAME(aout,swap_std_reloc_in)): Likewise.
1995-02-13Revert this patch, since it breaks linking PIC code with no dynamicIan Lance Taylor1-3/+6
objects: * elfcode.h (elf_bfd_final_link): Add assertion to make sure that dynamic and dynobj are in synch.
1995-02-10E_ARC_CPU_XXX renamed to E_ARC_MACH_XXX for consistency with rest of BFD.David Edelsohn1-10/+10
1995-02-10Regenerated.David Edelsohn1-0/+4
1995-02-10 * archures (bfd_mach_arc_base): #define.David Edelsohn2-14/+110
(bfd_mach_arc_host, bfd_mach_arc_graphics, bfd_mach_arc_audio): Ditto. * cpu-arc.c (arch_info_struct): Define entries for each cpu variant. (bfd_arc_arch): Link each one in. (arc_get_mach): New function. * elf32-arc.c (arc_info_to_howto_rel): Renamed from arc_info_to_howto. (elf_info_to_howto_rel): Update. (arc_elf_object_p, arc_elf_final_write_processing): New functions. (elf_backend_object_p): Define. (elf_backend_final_write_processing): Define. (USE_REL): Define.
1995-02-10* Makefile.in (BFD32_BACKENDS): Add i386msdos.o.Ken Raeburn1-0/+4
1995-02-09update dependenciesIan Lance Taylor1-3/+8
1995-02-09 * i386linux.c (NEEDS_SHRLIB): Define.Ian Lance Taylor2-0/+40
(linux_tally_symbols): Crash if a NEEDS_SHRLIB symbol is undefined. From hjl@nynexst.com (H.J. Lu).
1995-02-09 * elfcode.h (elf_bfd_final_link): Add assertion to make sure thatIan Lance Taylor1-0/+5
dynamic and dynobj are in synch.
1995-02-08 * linker.c (generic_link_check_archive_element): Allocate commonIan Lance Taylor2-2/+19
symbol information structure. Don't bother to check for common symbol size overflow. (_bfd_generic_link_add_one_symbol): Likewise. * aoutx.h (aout_link_check_ar_symbols): Likewise. * linker.c (generic_link_check_archive_element): Adjust references to common symbol information for new structure. (_bfd_generic_link_add_one_symbol): Likewise. * aoutx.h (aout_link_check_ar_symbols): Likewise. (aout_link_add_symbols): Likewise. * ecoff.c (ecoff_link_add_externals): Likewise. * elfcode.h (elf_link_add_object_symbols): Likewise. (elf_link_output_extsym): Likewise. * sunos.c (sunos_add_one_symbol): Likewise.
1995-02-08elfcode.h (elf_sort_hdrs): Put SHT_NOBITS sections after !SHT_NOBITS.David Edelsohn2-2/+7
1995-02-07 * som.c (som_bfd_find_nearest_line): Just return false, don'tJeff Law1-0/+5
abort.
1995-02-07clean up mechanics of mosberger-tang's changesKen Raeburn2-162/+147
1995-02-07 * ecoffswap.h (ecoff_swap_pdr_in): Zero out intern before settingIan Lance Taylor1-0/+5
any of the fields.
1995-02-07keep new msdos filesKen Raeburn1-0/+1
1995-02-07ecoff gprof related fixes & improvements from David Mosberger-TangKen Raeburn3-84/+431
1995-02-06 * libelf.h (struct elf_link_hash_table): Add saw_needed field.Ian Lance Taylor3-2/+45
* elfcode.h (elf_link_add_object_symbols): Set saw_needed if DT_NEEDED seen in .dynamic section. (elf_link_output_extsym): Warn if an undefined symbol is only referenced from a dynamic object, and not making a shared object, and saw_needed is false. * elf.c (_bfd_elf_link_hash_table_init): Initialize saw_needed.
1995-02-06 * libelf.h (ELF_LINK_HASH_DEFINED_WEAK): Don't define.Ian Lance Taylor3-18/+8
* elfcode.h (elf_link_add_object_symbols): Don't clear or set ELF_LINK_HASH_DEFINED_WEAK. (elf_link_output_extsym): Don't check ELF_LINK_HASH_DEFINED_WEAK.
1995-02-06 Distinguish a weak defined symbol from a regular defined symbol.Ian Lance Taylor9-179/+425
* linker.c (enum link_action): Add DEFW. (link_action): Add bfd_link_hash_defweak column. (_bfd_generic_link_add_one_symbol): Add DEFW case. Handle bfd_link_hash_defweak in a few other cases. * Many files (bfd_link_hash_undefweak): Renamed from bfd_link_hash_weak. * aoutx.h (aout_link_write_symbols): Handle bfd_link_hash_defweak. (aout_link_write_other_symbol): Likewise. (aout_link_input_section_std): Likewise. (aout_link_input_section_ext): Likewise. * bout.c (get_value): Likewise. * coff-a29k.c (coff_a29k_relocate_section): Likewise. * coff-alpha.c (alpha_convert_external_reloc): Likewise. (alpha_relocate_section): Likewise. * coff-mips.c (mips_relocate_section): Likewise. (mips_relax_section): Likewise. (bfd_mips_ecoff_create_embedded_relocs): Likewise. * cofflink.c (coff_write_global_sym): Likewise. (_bfd_coff_generic_relocate_section): Likewise. * ecoff.c (ecoff_link_add_externals): Likewise. (ecoff_link_write_external): LIkewise. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. (elf32_hppa_size_stubs): Likewise. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise. (elf_i386_relocate_section): Likewise. (elf_i386_finish_dynamic_symbol): Likewise. * elf32-mips.c (mips_elf_output_extsym): Likewise. (mips_elf_relocate_section): Likewise. * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise. (elf32_sparc_relocate_section): Likewise. * elfcode.h (elf_link_add_object_symbols): Likewise. (elf_adjust_dynamic_symbol): Likewise. (elf_bfd_final_link): Likewise. (elf_link_output_extsym): Likewise. * i386linux.c (linux_add_one_symbol): Likewise. (linux_tally_symbols): Likewise. (linux_finish_dynamic_link): Likewise. * linker.c (_bfd_generic_link_output_symbols): Likewise. (set_symbol_from_hash): Likewise. * reloc16.c (bfd_coff_reloc16_get_value): Likewise. (bfd_perform_slip): Likewise. * sunos.c (sunos_add_one_symbol): Likewise. (sunos_scan_std_relocs): Likewise. (sunos_scan_ext_relocs): Likewise. (sunos_scan_dynamic_symbol): Likewise. (sunos_write_dynamic_symbol): Likewise.
1995-02-06msdos .exe file support from bryan fordKen Raeburn2-9/+31
1995-02-01 * som.c (som_object_setup): More heruistics to detect theJeff Law2-42/+218
braindamaged HP OSF1 linker. (setup_sections): Don't forget to free subspace_sections if we get an error. (som_slurp_string_table): Allocate strings on this bfd's obstack rather than directly out of the heap. (som_slurp_symbol_table): Likewise for the saved copy of the canonical symbols. (som_slurp_reloc_table): Likewise for the saved copy of the canonical relocations. Free the native relocations when we're done with them.
1995-02-01 * libelf.h (struct elf_obj_tdata): New member program_header_size.David Edelsohn2-0/+13
* elfcode.h (get_program_header_size): New parameters sorted_hdrs, count, and maxpagesize. All callers updated. If sorted_hdrs is non-NULL, use it to compute the number of segments. Save result in case called again. (assign_file_positions_except_relocs): Sort headers before calling get_program_header_size.
1995-01-31 * elfcode.h (map_program_segments): Add sorted_hdrs parameter.Ian Lance Taylor2-5/+22
Search through it rather than through unsorted section headers. (assign_file_positions_except_relocs): Pass sorted_hdrs to map_program_segments.
1995-01-31* ecoff.c (_bfd_ecoff_find_nearest_line): Fix problems in range checking.Ken Raeburn1-0/+12
Expect argument OFFSET to be section-relative. From David Mosberger-Tang, davidm@piston.cs.arizona.edu.
1995-01-29 * som.c (compare_subspaces): New function to sort subspaces byJeff Law1-0/+18
their location in the object file. (setup_sections): When computing the index for each subspace, handle case where setup_sections reads the subspaces in a different order that they appear in the object file. (som_is_space): Also examine the output section for the containing section. (som_is_subspace, som_is_container): Likewise. (som_begin_writing): Don't prepare or write fixups here. When writing the symbol strings, use the unsorted symbol table. (som_write_object_contents): Don't write the symbol table here. (som_finish_writing): Prepare and write the fixups here. Likewise for the symbol table. (som_bfd_derive_misc_symbol_info): Undefined symbols always have type SS_UNSAT regardless of BSF_EXPORT. (som_set_reloc_info): Unpack and attach argument location information for R_PCREL_CALL and R_ABS_CALL relocations.
1995-01-28 * som.c (som_object_setup): New heuristic to determine if theJeff Law2-6/+17
entry and flags fields are switched in the exec header.
1995-01-28 * elfcode.h (elf_link_add_object_symbols): Use *sym_hash insteadIan Lance Taylor2-2/+7
of h if we might not be doing an ELF link.
1995-01-27 * elf32-mips.c (mips_elf_final_link): If the size of an inputIan Lance Taylor1-0/+4
.reginfo section is zero, force it to the correct size, since the linker emulation code may have clobbered it.
1995-01-27 * elfcode.h (elf_sort_hdrs): Correct SHF_ALLOC test.Ian Lance Taylor2-1/+8
(assign_file_positions_except_relocs): Free sorted_hdrs.
1995-01-27 * srec.c (srec_set_section_contents): Fix off bySteve Chamberlain1-0/+3
one end address calculation.
1995-01-26 * elfcode.h (elf_link_add_object_symbols): Only examine weakdef ifIan Lance Taylor2-0/+4
we are using an ELF hash table.
1995-01-26 * config.bfd: (m68*-est-coff): New configuration.Steve Chamberlain1-0/+4
1995-01-26 * aoutx.h (NAME(aout,some_aout_object_p)): Always set EXEC_P ifIan Lance Taylor1-0/+6
the start address is in the .text section, even if STAT_FOR_EXEC is set. Just use STAT_FOR_EXEC as an additional test.
1995-01-26Add new relocs for PowerPC Elf support.Michael Meissner3-1/+18
Add eabi support.
1995-01-26 * coff-sh.c (CALC_ADDEND): Don't define.Ian Lance Taylor1-0/+6
(coff_sh_relocate_section): Remove. (coff_relocate_section): Use _bfd_coff_generic_relocate_section.
1995-01-24update copyright datesIan Lance Taylor6-11/+10
1995-01-24 * elf32-mips.c (mips_elf_output_extsym): Set the value of theIan Lance Taylor2-2/+23
ECOFF symbol from the hash table entry.
1995-01-23Mon Jan 23 14:53:35 1995 Steve Chamberlain <sac@splat>Steve Chamberlain2-1/+5
* coff-sh.c (coff_sh_relocate_section): Don't subtract vma twice.
1995-01-23 * coff-sh.c (sh_reloc): Don't ignore the previous contents of anIan Lance Taylor2-8/+5
R_SH_IMM32 reloc. PR 6215.
1995-01-23xIan Lance Taylor1-0/+3