aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1995-07-21 * elf32-hppa.c (hppa_elf_gen_reloc_type): Add new (ignored)Jeff Law1-0/+6
argument. * elf32-hppa.h: Corresponding change.
1995-07-20fix some compilation problemsKen Raeburn1-0/+8
1995-07-20 * hosts/i386v4.h (getgid, getuid): Change prototypes to beFred Fish2-2/+8
compatible with Unixware 1.x and Unixware 2.x, and probably other i386 svr4 versions as well.
1995-07-20* targets.c (bfd_target_vector): Since armpe and armpei have been split intoKen Raeburn1-0/+6
big- and little-endian variants, list all of them, instead of the now-nonexistant armpe[i]_vec.
1995-07-20 * elf.c (bfd_section_from_phdr): Set lma based on p_paddr.Ian Lance Taylor1-0/+5
(elf_fake_sections): Set sh_addr based on lma, not vma. PR 7478.
1995-07-19 * coff-arm.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Replaces TARGET_SYM.David Edelsohn2-5/+47
* configure.in (armpe_vec, armpei_vec): Add bi-endian support. * configure: "regenerated". * pe-arm.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Replaces TARGET_SYM. (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Replaces TARGET_NAME. * pei-arm.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Replaces TARGET_SYM. (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Replaces TARGET_NAME. * targets.c (armpe_vec, armpei_vec): Deleted. (armpe_little_vec, armpe_big_vec, armpei_little_vec, armpei_big_vec): Added. * config/arm-pe.mt (DEFAULT_VECTOR): Default is armpe_little_vec. (SELECT_VECS): Add bi-endian support.
1995-07-14 * aoutx.h (KEEPIT): Change definition to udata.i.Ian Lance Taylor1-0/+11
(KEEPITTYPE): Remove. (NAME(aout,reloc_type_lookup)): Add cases to the extended reloc type switch: SPARC_GOT10, SPARC_GOT13, SPARC_GOT22, SPARC_PC10, SPARC_PC22, SPARC_WPLT30. (NAME(aout,swap_std_reloc_out)): Don't bother to use stoi when retrieving KEEPIT value. (NAME(aout,swap_ext_reloc_out)): Likewise. Also, only add in output section VMA for section symbols, and check BSF_SECTION_SYM to control whether to set r_extern to 1.
1995-07-14 * syms.c: Fix comments so that `make info' works.Ian Lance Taylor1-0/+2
1995-07-14 * elf32-mips.c (mips_elf_find_nearest_line): Set SEC_HAS_CONTENTSIan Lance Taylor1-0/+5
in .mdebug section, in case backend linker has cleared it.
1995-07-14Fix PPC_ADDR16_HA relocationsMichael Meissner1-0/+7
1995-07-14 * som.c (hppa_som_gen_reloc_type): Choose a reasonable fieldJeff Law1-0/+5
selector relocation for the difference of two symbols.
1995-07-13 * aoutx.h (NAME(aout,slurp_reloc_table)): Cast argument to size_tIan Lance Taylor5-8/+61
for malloc. * coff-mips.c (mips_relocate_section): Likewise, for memmove. (mips_relax_section): Likewise, for malloc. * cofflink.c (process_embedded_commands): Likewise. (_bfd_coff_final_link): Likewise. * ecoff.c (_bfd_ecoff_write_object_contents): Likewise. (ecoff_final_link_debug_accumulate): Likewise. (ecoff_indirect_link_order): Likewise, for memcpy and malloc. (ecoff_reloc_link_order): Likewise, for malloc. * ecofflink.c (ecoff_align_debug): Likewise, for memset. (ecoff_write_symhdr): Likewise, for malloc. * elf32-hppa.c (elf32_hppa_read_symext_info): Likewise. * elf.c (assign_file_positions_except_relocs): Likewise, for qsort. * elf32-mips.c (mips_elf_read_ecoff_info): Likewise, for malloc. * elfcode.h (elf_slurp_reloc_table): Likewise. * elfcore.h (elf_corefile_note): Likewise. * elflink.h (elf_link_add_object_symbols): Likewise. (elf_link_read_relocs): Likewise. (NAME(bfd_elf,size_dynamic_sections)): Likewise, for memset. * i386linux.c (bfd_linux_size_dynamic_sections): Likewise. * ieee.c (do_with_relocs): Likewise. * linker.c (default_indirect_link_order): Likewise, for malloc. * nlmcode.h (nlm_object_p): Likewise. (nlm_write_object_contents): Likewise. * oasys.c (oasys_set_section_contents): Likewise, for memcpy. * reloc.c (bfd_generic_get_relocated_section_contents): Likewise, for malloc. * section.c (bfd_get_section_contents): Likewise, for memcpy. * srec.c (srec_get_section_contents): Likewise. (srec_set_section_contents): Likewise. * sunos.c (bfd_sunos_size_dynamic_sections): Likewise, for realloc and memset. (sunos_scan_relocs): Likewise, for malloc. (sunos_scan_dynamic_symbol): Likewise, for realloc. * syms.c (_bfd_generic_read_minisymbols): Likewise, for malloc. * versados.c (versados_get_section_contents): Likewise, for memcpy.
1995-07-13 * targets.c (bfd_target): Add fields _read_minisymbols andIan Lance Taylor9-171/+421
_minisymbol_to_symbol. (BFD_JUMP_TABLE_SYMBOLS): Add _read_minisymbols and _minisymbol_to_symbol. (bfd_read_minisymbols): Define. (bfd_minisymbol_to_symbol): Define. * syms.c (_bfd_generic_read_minisymbols): Define. (_bfd_generic_minisymbol_to_symbol): Define. * libbfd-in.h (_bfd_nosymbols_read_minisymbols): Define. (_bfd_nosymbols_minisymbol_to_symbol): Define. (_bfd_generic_read_minisymbols): Declare. (_bfd_generic_minisymbol_to_symbol): Declare. * bfd-in2.h: Rebuild. * libbfd.h: Rebuild. * aoutx.h (MINISYM_THRESHOLD): Define. (NAME(aout,read_minisymbols)): New function. (NAME(aout,minisymbol_to_symbol)): New function. * libaout.h (NAME(aout,read_minisymbols)): Declare. (NAME(aout,minisymbol_to_symbol)): Declare. * aout-target.h (MY_read_minisymbols): Define. (MY_minisymbol_to_symbol): Define. * All targets: Define read_minisymbols and minisymbol_to_symbol. PR 5332.
1995-07-12fix some compilation warnings from sun ccKen Raeburn3-10/+23
1995-07-12* libelf.h (elf_backend_data): Use unsigned, not unsigned char, for bitfields.Ken Raeburn1-3/+3
1995-07-12 * elf.c (bfd_section_from_shdr): In case SHT_REL[A], only get theIan Lance Taylor1-1/+4
BFD section for the sh_link section if it is a SYMTAB section. PR 7392.
1995-07-11 * aoutx.h (NAME(aout,link_add_symbols)): Don't bother to checkIan Lance Taylor3-51/+9
that archives hold a.out objects. * cf-i386lynx.c (coff_bfd_link_add_symbols): Don't define. (lynx_link_add_symbols): Remove. * cf-m68klynx.c (coff_bfd_link_add_symbols): Don't define. (lynx_link_add_symbols): Remove. * elflink.h (elf_bfd_link_add_symbols): Don't bother to check that archives hold ELF objects.
1995-07-11 * archive.c (bfd_generic_archive_p): If the archive has a map, andIan Lance Taylor1-0/+4
the target was defaulted, but the first object in the archive can not be matched with that target, then return a bad format error.
1995-07-11 * elf64-sparc.c (elf_sparc_howto_table): Set howto for WDISP16 toIan Lance Taylor1-0/+6
elf64_wdisp16_reloc. (elf64_wdisp16_reloc): New static function. (elf64_sparc_relocate_section): New static function. (elf_backend_relocate_section): Define. PR 7333.
1995-07-11 * libelf.h (struct elf_size_info): Change type of last argument toIan Lance Taylor4-9/+25
swap_symbol_out from char * to PTR. (bfd_elf32_swap_symbol_out): Update declaration. (bfd_elf64_swap_symbol_out): Likewise. * elfcode.h (elf_swap_symbol_out): Change type of cdst from char * to PTR. * elf.c (swap_out_syms): Cast to PTR, not char *, when calling swap_symbol_out routine. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Likewise. (elf_link_output_sym): Likewise. (elf_link_output_extsym): Likewise. * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Likewise.
1995-07-11Tue Jul 11 12:29:49 1995 Rick Sladkey <jrs@world.std.com>Ian Lance Taylor2-8/+60
* elf.c (_bfd_elf_find_nearest_line): Handle the simple case where there is no debugging information.
1995-07-10 * coff-arm.c (PCRELOFFSET): Define if not already defined.Ian Lance Taylor1-1/+5
* Makefile.in: Rebuild dependencies. (BFD32_BACKENDS): Add coff-arm.o (CFILES): Add coff-arm.c, pe-arm.c, pei-arm.c.
1995-07-10 * cofflink.c (_bfd_coff_generic_relocate_section): Remove unusedIan Lance Taylor2-6/+3
local i. * coff-arm.c (coff_arm_rtype_to_howto): Don't declare.
1995-07-10 * coff-i960.c (coff_i960_relocate): Correct typo: use ! on strcmp,Ian Lance Taylor1-0/+3
not on string.
1995-07-10 * aoutx.h (NAME(aout,link_hash_table_create)): Allocate hash tableIan Lance Taylor3-7/+15
using bfd_alloc, not malloc. * cofflink.c (_bfd_coff_link_hash_table_create): Likewise. * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise. * i386linux.c (linux_link_hash_table_create): Likewise. * linker.c (_bfd_generic_link_hash_table_create): Likewise. * sunos.c (sunos_link_hash_table_create): Likewise.
1995-07-10 Based on patches from Eric Youngdale <eric@aib.com>:Ian Lance Taylor2-0/+40
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): If -Bsymbolic, output a DT_SYMBOLIC dynamic entry. (elf_adjust_dynamic_symbol): If -Bsymbolic, don't require a PLT entry for a locally defined symbol. * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, do warn about undefined symbols, and fill in the GOT entry for a symbol defined in a regular object file. (elf_i386_finish_dynamic_symbol): If -Bsymbolic, output a RELATIVE reloc rather than a GLOB_DAT reloc for a symbol defined in a regular object file. * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, do warn about undefined symbols, and fill in the GOT entry for a symbol defined in a regular object file. (elf_m68k_finish_dynamic_symbol): If -Bsymbolic, output a RELATIVE reloc rather than a GLOB_DAT reloc for a symbol defined in a regular object file. * elf32-sparc.c (elf32_sparc_relocate_section): If -Bsymbolic, do warn about undefined symbols, and fill in the GOT entry for a symbol defined in a regular object file. (elf32_sparc_finish_dynamic_symbol): If -Bsymbolic, output a RELATIVE reloc rather than a GLOB_DAT reloc for a symbol defined in a regular object file.
1995-07-10add binary.o, tekhex.oKen Raeburn2-0/+7
1995-07-10 * config/m68k-coff.mt (SELECT_VECS): Rename from SELECT_VECTORS.Ian Lance Taylor1-0/+8
Correct elements to be actual BFD vector names.
1995-07-10 * Makefile.in (Makefile): Don't depend upon @frags@.Ian Lance Taylor1-2/+2
(config.status): Depend upon @frags@.
1995-07-07fsf address update, but not in COPYING filesKen Raeburn24-74/+683
1995-07-07 * coffgen.c (coff_renumber_symbols): Sort defined symbols that areIan Lance Taylor3-34/+69
neither BSF_FUNCTION not BSF_NOT_AT_END just before undefined symbols. * coffcode.h (coff_slurp_symbol_table): Set BSF_FUNCTION as well as BSF_NOT_AT_END. PR 5491.
1995-07-07clean up new config stuff for mostlyclean, distcleanKen Raeburn1-0/+5
1995-07-07clean up new config stuff for mostlyclean, distcleanKen Raeburn1-2/+2
1995-07-06 * elf32-i386.c (elf_i386_relocate_section): Revert May 24 patch.Ian Lance Taylor2-21/+14
Don't copy PC32 reloc against section into shared object. PR 6997, 7381.
1995-07-06 * Makefile.in: Rebuild dependencies.Ian Lance Taylor2-9/+22
(CFILES): Added elflink.c. (Makefile): Depend upon config.status, not configure.in. (config.status): New target; depend upon configure configure.host and config.bfd.
1995-07-06copyright noticesKen Raeburn3-1/+37
1995-07-06no more configure.inKen Raeburn1-1/+0
1995-07-06keep configure; clean elf.c not elfcode.h for arcKen Raeburn1-1/+2
1995-07-06clean configure when cleaning configure.inKen Raeburn1-2/+2
1995-07-06* Makefile.in (BFD_LIBS): No, don't put elflink.o here.Ken Raeburn2-1/+4
* configure.in: Include it here whenever elf.o is specified.
1995-07-06Added new files elflink.c, elflink.h, elfcore.h.Ken Raeburn19-6331/+6820
Moved some mostly size-independent stuff from elfcode.h to elf.c, adding a data structure to elfcode.h with some misc data and callback functions. Added a pointer to that structure to the target back end data. More work can be done here. Renamed generic elf routines (not cpu-specific stuff) to start with bfd_elf or _bfd_elf. Updated most call sites, sometimes defined some macros. Moved some dynamic linking support code from m68k, sparc, i386 to common files, using target back end flags to control behavior. More work can probably be done here too. Moved core- and linker-support code out of elfcode.h to elf.c, elfcore.h, elflink.h, or elflink.c. Now elfcode.h contains only .o and executable support, plus #includes of elfcore.h and elflink.h. Much of the contents of these other header files can probably still be moved from the .h files to the .c files, to get compiled only once. Cleaned up some "gcc -Wall" warnings regarding unused or uninitialized variables, in generic and cpu-specific code.
1995-07-05 * elf32-mips.c (mips_elf_object_p): Unconditionally setIan Lance Taylor2-21/+6
elf_bad_symtab, since sometimes the symbol table is messed up and the last symbol is global. PR 6921.
1995-07-05 * ecoff.c (_bfd_ecoff_bfd_is_local_label): New function.Ian Lance Taylor4-10/+70
* libecoff.h (_bfd_ecoff_bfd_is_local_label): Declare. * elf32-mips.c (mips_elf_is_local_label): New static function. (bfd_elf32_bfd_is_local_label): Define. PR 6978.
1995-07-05 * configure.in: Use $ac_config_sub, not $configsub.Ian Lance Taylor3-2/+11
* configure: Likewise.
1995-07-05don't define FASCIST_FDOPEN for i386aix hostKen Raeburn1-0/+2
1995-07-05fix usage message on --enable optionsKen Raeburn2-4/+4
1995-07-05autoconfiscationKen Raeburn6-94/+1234
1995-07-04 * archive.c (_bfd_construct_extended_name_table): IfIan Lance Taylor2-9/+17
BFD_TRADITIONAL_FORMAT is set, limit the length of all file names to ar_max_namelen. (bfd_dont_truncate_arname): If BFD_TRADITIONAL_FORMAT is set, call bfd_bsd_truncate_arname. PR 6888.
1995-07-04 * archive.c (_bfd_write_archive_contents): Revert June 1 change.Ian Lance Taylor2-27/+88
1995-07-04 * elfcode.h (NAME(bfd_elf,record_link_assignment)): Add provideIan Lance Taylor4-5/+21
argument. * bfd-in.h (bfd_elf32_record_link_assignment): Update prototype. (bfd_elf64_record_link_assignment): Likewise. * bfd-in2.h: Rebuild. PR 7164.