aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1997-07-31Wed Jul 30 21:30:35 1997 Andreas Schwab ↵Ian Lance Taylor2-2/+19
<schwab@issan.informatik.uni-dortmund.de> * elflink.h (NAME(bfd_elf,record_link_assignment)): Remove any version info if this symbol came from a dynamic object. (elf_link_add_object_symbols): Set the version info of a symbol only if the object actually contains version definitions and defines this symbol.
1997-07-29 * aclocal.m4: Add CYGWIN and EXEEXT autoconf macros.Rob Savoye5-96/+211
* configure.in: Use CYGWIN and EXEEXT autoconf macro to look for win32 dependencies. * configure: Regenerated with autoconf 2.12. * doc/Makefile.in: Add $(EXEEXT) to chew executable.
1997-07-28 * coffswap.h (coff_swap_aux_in): add semicolon to make MSVC happy.Felix Lee1-0/+4
1997-07-28 * rs6000-core.c (rs6000coff_core_p): If CORE_TRUNC is set, printPeter Schauer2-50/+80
a warning rather than returning an error.
1997-07-25 * cisco-core.c: define signals for wingdb.Felix Lee1-0/+4
1997-07-25 * ecofflink.c (bfd_ecoff_debug_accumulate): Only merge files withIan Lance Taylor1-0/+5
the same number of aux entries. PR 12962.
1997-07-25 * som.c (hppa_som_gen_reloc_type): Use R_DATA_EXPR for theJeff Law1-0/+6
difference of two symbols if the relocation size is 32 bits. (som_write_fixups): Handle R_DATA_EXPR. Useful stuff from one of the aborted attempts to fix 12912.
1997-07-23 * coff-i386.c (coff_i386_reloc): Don't offset a common symbol byIan Lance Taylor1-0/+5
its value if COFF_WITH_PE is defined.
1997-07-22Tue Jul 22 17:19:45 1997 Robert Hoehne ↵Ian Lance Taylor1-0/+2
<robert.hoehne@Mathematik.TU-Chemnitz.DE> * config.bfd (i[3456]86-*-msdosdjgpp*): New target. (i[3456]86-*-go32*): Change to be like new msdosdjgpp*.
1997-07-22Tue Jul 22 17:19:45 1997 Robert Hoehne ↵Ian Lance Taylor8-17/+640
<robert.hoehne@Mathematik.TU-Chemnitz.DE> * coff-stubgo32.c: New file. * go32stub.h: New file. * coff-i386.c: If COFF_GO32_EXE, include coff/go32exe.h. * targets.c (go32stubbedcoff_vec): Declare. (bfd_target_vector): Add go32stubbedcoff_vec. * configure.in (go32coff_vec): New target vector. (go32stubbedcoff_vec): Likewise. * Makefile.in: Rebuild dependencies. (BFD32_BACKENDS): Add coff-stubgo32.o. (BFD32_BACKENDS_CFILES): Add coff-stubgo32.c. (HFILES): Add go32stub.h.
1997-07-22Tue Jul 22 17:19:45 1997 Robert Hoehne ↵Ian Lance Taylor2-7/+63
<robert.hoehne@Mathematik.TU-Chemnitz.DE> * coffswap.h (coff_swap_filehdr_in): Invoke COFF_ADJUST_FILEHDR_IN_PRE and COFF_ADJUST_FILEHDR_IN_POST if they are defined. (coff_swap_filehdr_out): Invoke COFF_ADJUST_FILEHDR_OUT_PRE and COFF_ADJUST_FILEHDR_OUT_POST if they are defined. (coff_swap_aux_in): Invoke COFF_ADJUST_AUX_IN_PRE and COFF_ADJUST_AUX_IN_POST if they are defined. (coff_swap_aux_out): Invoke COFF_ADJUST_AUX_OUT_PRE and COFF_ADJUST_AUX_OUT_POST if they are defined. (coff_swap_scnhdr_in): Invoke COFF_ADJUST_SCNHDR_IN_PRE and COFF_ADJUST_SCNHDR_IN_POST if they are defined. (coff_swap_scnhdr_out): Invoke COFF_ADJUST_SCNHDR_OUT_PRE and COFF_ADJUST_SCNHDR_OUT_POST if they are defined.
1997-07-22 * configure.in: Check for fdopen.Ian Lance Taylor4-4/+38
* configure, config.in: Rebuild. * opncls.c (bfd_fdopenr): Check HAVE_FDOPEN rather than VMS or __GO32__. Reindent a bit.
1997-07-22Tue Jul 22 14:44:00 1997 Robert Hoehne ↵Ian Lance Taylor2-62/+71
<robert.hoehne@Mathematik.TU-Chemnitz.DE> * Makefile.in: Change stamp-* files to s-* files. Use bfdt.texi rather than bfd.texi. (DOCFILES): Change bfd.texi to bfdt.texi. * bfd.texinfo: Include bfdt.texi, not bfd.texi.
1997-07-21 * sunos.c (sunos_create_dynamic_sections): Set SEC_LINKER_CREATEDIan Lance Taylor1-0/+7
flag for newly created sections. (sunos_add_dynamic_symbols): Don't discard newly created sections if shared library is dynobj.
1997-07-14 * elf.c (map_sections_to_segments): When checking whetherIan Lance Taylor1-0/+7
including a section in a segment would force us to skip a page, align the address of the next segment to avoid wraparound problems. PR 12828.
1997-07-09Add coffswap.h to file list for TIc80 sanitization.Fred Fish1-1/+1
1997-07-09 * coffcode.h (coff_write_object_contents): InitializeFred Fish2-19/+57
target id field to TIC80_TARGET_ID. * coffswap.h (coff_swap_filehdr_out): Swap out target id field if used. (coff_swap_filehdr_in): Swap in target id field if used.
1997-07-07 * coff-i386.c (coff_i386_is_local_label_name): New static functionIan Lance Taylor2-2/+32
if TARGET_UNDERSCORE. (coff_bfd_is_local_label_name): Define if TARGET_UNDERSCORE. (i386coff_vec): Add SEC_CODE and SEC_DATA to section_flags.
1997-06-30 * elf32-m68k.c (howto_table): Use complain_overflow_bitfield, notIan Lance Taylor2-5/+10
complain_overflow_signed, for 32 bit PC relative relocations.
1997-06-26 * elflink.h (elf_link_add_object_symbols): When a versionIan Lance Taylor2-0/+8
indirection symbol is overridden, make the original symbol point at the real overriding symbol.
1997-06-26 * elf.c (bfd_elf_string_from_elf_section): Check for an invalidIan Lance Taylor2-6/+19
string index.
1997-06-26 * elflink.h (elf_link_output_extsym): Use the right section for aIan Lance Taylor3-5/+20
common symbol. * elf32-mips.c (mips_elf_link_output_symbol_hook): If a common symbol was in .scommon, mark it as SHN_MIPS_SCOMMON. PR 12697.
1997-06-25Wed Jun 25 12:43:10 1997 H.J. Lu <hjl@gnu.ai.mit.edu>Ian Lance Taylor2-6/+9
* elflink.h (elf_merge_symbols): Resolve indirect and warning symbols before checking for new symbols.
1997-06-25Wed Jun 25 12:43:10 1997 H.J. Lu <hjl@gnu.ai.mit.edu>Ian Lance Taylor1-0/+4
* elfcore.h (elf_corefile_note): Move out of HAVE_SYS_PROCFS_H.
1997-06-24 * coffgen.c (coff_object_p): Read the f_opthdr bytes from theIan Lance Taylor1-0/+8
file, not aoutsz bytes (they are different in XCOFF .o files).
1997-06-24comment fixIan Lance Taylor1-1/+2
1997-06-24 * elflink.h (elf_merge_symbol): In the case of a new definedIan Lance Taylor2-56/+123
symbol overriding an old defined symbol, return the hash table entry which we modify, even if it is the target of an indirection. (elf_link_add_object_symbols): If the real name of the symbol gets overridden, convert the versioned symbol into an indirect symbol to the real symbol.
1997-06-23 * elflink.h (elf_merge_symbol): New static function, broken out ofIan Lance Taylor2-287/+385
elf_link_add_object_symbols. (elf_link_add_object_symbols): Call it.
1997-06-22 * coff-i386.c (i3coff_object_p): If COFF_IMAGE_WITH_PE, hack toIan Lance Taylor3-24/+114
handle case where COFF filehdr does not immediately follow PE header. * coffgen.c (coff_object_p): Remove useless seek to current location.
1997-06-18 * linker.c (link_action): Change COMMON_ROW/indr to from CREF toIan Lance Taylor1-0/+5
REFC.
1997-06-18revert last patchIan Lance Taylor2-15/+2
1997-06-18 * elflink.h (elf_link_add_object_symbols): Don't let a commonIan Lance Taylor2-2/+15
symbol in a regular object override a common symbol in a shared object if the latter was found via an indirect symbol.
1997-06-17 * cofflink.c (_bfd_coff_link_input_bfd): If stripping debuggingIan Lance Taylor1-0/+5
symbols, skip N_ABS symbols with debugging storage classes. PR 12630. Also a couple of warning and formatting fixes.
1997-06-16whitespace tweaksIan Lance Taylor1-18/+18
1997-06-16Mon Jun 16 18:56:27 1997 Geoff Keating <geoffk@ozemail.com.au>Ian Lance Taylor2-152/+440
* elf32-ppc.c (ppc_elf_relocate_section): Don't emit R_PPC_REL* relocs in shared libraries which refer to local symbols. Cope with addend when processing a GOT relocation. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Only create symbols for sections that the linker didn't create. (ppc_elf_finish_dynamic_sections): Only try to write out a section symbol if it was created in ppc_elf_size_dynamic_sections. (ppc_elf_relocate_section): Complain if we have to generate a reloc relative to a section for which we didn't output a symbol. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Clean up. PLT relocs are 'rela' relocs, like everything else. .rela.plt is not a read-only section, so we don't have to special-case it. * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Entries in the .rela.bss section are (of course) 'rela' relocs not 'rel' relocs. * elf32-ppc.c (ppc_elf_check_relocs): Initialise srelgot. (ppc_elf_relocate_section): @got offsets are 4 from start of the actual .got section. * elflink.c (_bfd_elf_create_got_section): The three reserved words start from the symbol '_GLOBAL_OFFSET_TABLE_'. * elf32-ppc.c (ppc_elf_size_dynamic_sections): '.rela' is 5 characters, not 4. * elf32-ppc.c (ppc_elf_check_relocs): Use _bfd_elf_create_got_section to create the GOT rather than ppc_elf_create_linker_section. Create the '.rela.got' section ourselves. (ppc_elf_finish_dynamic_symbol): Set up GOT relocations when a symbol has a GOT entry. (ppc_elf_relocate_section): Record when a symbol is used through the GOT, and allocate space in the GOT for each such symbol. (ppc_elf_adjust_dynamic_symbol): Delete unused .got.plt stuff. (ppc_elf_create_linker_section): Delete unused LINKER_SECTION_GOT stuff. * elf32-ppc.c (ppc_elf_howto_raw): GOT16_HA relocs should be treated in a similar way to ADDR16_HA relocs. (ppc_elf_relocate_section): PLTREL24 relocs do not get copied into shared objects; the linker must deal with them. (ppc_elf_create_linker_section): Stop setting _GLOBAL_OFFSET_TABLE_ to the wrong value; delete unused LINKER_SECTION_PLT stuff. (ppc_elf_check_relocs): Delete unused LINKER_SECTION_PLT stuff. (ppc_elf_finish_dynamic_sections): Use BFD calls to get GOT section, not ELF-specific calls. (elf_backend_plt_not_loaded): Set to 1. (elf_backend_got_symbol_offset): Set to 4. * elf-bfd.h (elf_backend_data): Add 'plt_not_loaded' member for when ld.so fills in the PLT; and 'got_symbol_offset' member. * elflink.c (_bfd_elf_create_dynamic_sections): Apply plt_not_loaded member. (_bfd_elf_create_got_section): Apply got_symbol_offset. * elfxx-target.h (elf_backend_plt_not_loaded): Set default to 'loaded'. (elf_backend_G_O_T_offset): Set default to 0. (elfNN_bed): Set added fields. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Was setting DT_RELENT in shared objects; should be DT_RELAENT. * elf32-ppc.c (ppc_elf_relocate_section): Propagate R_PPC_ADDR16_HA relocs to shared objects. Cope with case where such a reloc (in a non-shared object) refers to a symbol that's not defined.
1997-06-16creditIan Lance Taylor1-0/+1
1997-06-16 * Makefile.in (CC, CFLAGS): Substitute from configure script.Ian Lance Taylor2-62/+151
1997-06-16 * elf32-i386.c (elf_i386_relocate_section): When generating aIan Lance Taylor2-3/+14
shared library, do the relocation if the input section is not allocated in memory.
1997-06-16Mon Jun 16 14:42:14 1997 H.J. Lu <hjl@gnu.ai.mit.edu>Ian Lance Taylor2-2/+15
* elfcode.h (put_signed_word): Define. (get_signed_word): Define. (elf_swap_reloca_in): Use get_signed_word for the r_addend field. (elf_swap_reloca_out): Use put_signed_word for the r_addend field. * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Use bfd_get_signed_32 to set the r_addend field. * elf64-mips.c (mips_elf64_swap_reloca_in): Use bfd_h_get_signed_64 to set the r_addend field.
1997-06-16 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): CallIan Lance Taylor2-52/+93
elf_link_assign_sym_version before elf_adjust_dynamic_symbol. (elf_fix_symbol_flags): New static function, broken out of elf_adjust_dynamic_symbol. (elf_adjust_dynamic_symbol): Call elf_fix_symbol_flags. (elf_link_assign_sym_version): Likewise. Permit a symbol to be forced local even if NEEDS_PLT is set. When forcing a symbol to be local, clear NEEDS_PLT. (elf_link_output_extsym): Remove unused local bed.
1997-06-12 * elf32-mn10300.c (elf32_mn10300_link_hash_entry): New structureJeff Law1-0/+17
for derived elf linker hash table entries. References to elf_link_hash_entry changed appropriately. (elf32_mn10300_link_hash_table): New structure for derived elf linker hash table. (elf32_mn10300_hash_table): Define. (elf32_mn10300_link_hash_traverse): Likewise. (elf32_mn10300_link_hash_newfunc): New function. (elf32_mn10300_link_hash_table_create): Likewise. (elf32_mn10300_finish_hash_table_entry): Likewise. (mn10300_elf_relax_section): Handle "call" -> "calls", removal of prologue code, and call:32->call:16 relaxing. (compute_function_info: New function. (bfd_elf32_bfd_ilink_hash_table_create): Define.
1997-06-12Back out last change, there are too many more to fix them all.Fred Fish2-6/+1
1997-06-12 * coffgen.c (_bfd_coff_is_local_label_name): Return proper booleanFred Fish2-22/+133
(enum) type.
1997-06-11 * elflink.h (elf_link_output_extsym): Call finish_dynamic_symbolIan Lance Taylor5-49/+66
for a symbol which is being forced to be local. * elf32-i386.c (elf_i386_relocate_section): Write out the relocation value for a GOT reloc for a symbol which is turning into a local symbol. (elf_i386_finish_dynamic_symbol): If a symbol is turning into a local symbol, write out a RELATIVE reloc rather than a GLOB_DAT reloc. * elf32-m68k.c, elf32-sparc.c: Corresponding changes.
1997-06-11 * elf32-i386.c (elf_i386_relocate_section): Get the relocationIan Lance Taylor4-49/+300
value if the symbol is turning into a local symbol. * elf32-m68k.c (elf_m68k_relocate_section): Likewise. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1997-06-10(elf_link_add_object_symbols): Also read verneedUlrich Drepper2-63/+67
information by calling `_bfd_elf_slurp_version_tables'. (elf_link_add_object_symbols): For undefined symbols look for version informaiton in the verneed records. (elf_link_add_object_symbols): Use soname of shared object for verneed record if it is available.
1997-06-10Tue Jun 10 11:13:03 1997 H.J. Lu <hjl@gnu.ai.mit.edu>Ian Lance Taylor2-15/+34
* cpu-arm.c: Add prototypes for compatible and scan. * cofflink.c: Add prototype for mark_relocs. * archive.c (bfd_special_undocumented_glue): Change filename to const pointer. Add prototype.
1997-06-09Mon Jun 9 12:34:21 1997 Andreas Schwab ↵Ian Lance Taylor2-1/+7
<schwab@issan.informatik.uni-dortmund.de> * elflink.h (elf_link_add_object_symbols): Ignore relocations of sections that will be discarded.
1997-06-06(elf_link_find_version_dependencies): When searchingUlrich Drepper2-69/+80
for known version symbol skip non-matching verdef records, not matching records.
1997-06-04Added the Thumb relocations from the armT-970328-branch.Nick Clifton1-0/+2