aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1995-06-12 * bfd-in.h (bfd_set_section_vma): Case true to a boolean.Jeff Law1-0/+6
(bfd_set_cacheable): Likewise. * bfd-in2.h: Rebuilt.
1995-06-10 * targets.c: Add copy_private_symbol_data and link_split_sectionJeff Law5-22/+52
to the target vector. * libbfd-in.h (_bfd_generic_bfd_copy_private_symbol_data): Define. (_bfd_nolink_bfd_link_split_section): Likewise. (bfd_generic_link_split_section): Declare. * syms.c (bfd_copy_private_symbol_data): Define. * linker.c (bf_link_split_section): Likewise. * som.c (som_bfd_copy_private_symbol_data): New function (som_bfd_link_split_section): Likewise. * All other targets updated with default versions of new routines. * Take out my braindamaged bfd_true/bfd_false changes from earlier today. Replace with just: * bfd-in.h: (TRUE_FALSE_ALREADY_DEFINED): Define this if compiling with g++-2.6 or later. * bfd-in2.h: Rebuilt.
1995-06-09 * bfd-in.h (bfd_true, bfd_false): Define these to true and falseJeff Law3-0/+8
if TRUE_FALSE_ALREADY_DEFINED is not defined. * bfd-in2.h: Rebuilt.
1995-06-09 * elfcode.h (elf_sort_hdrs): Rewrite to be symmetrical.Steve Chamberlain2-13/+19
1995-06-09 * bfd-in.h: (TRUE_FALSE_ALREADY_DEFINED): Define this ifJeff Law3-30/+222
compiling with g++-2.6 or later. (bfd_set_section_vma): Use bfd_true and bfd_false rather than true and false. (bfd_set_section_alignment): Likewise. (bfd_set_section_userdata): Likewise. (bfd_set_cacheable): Likewise. * bfd-in2.h: Rebuilt.
1995-06-09 * versados.c (struct esd, get_4): Lint; use unsigned chars.Steve Chamberlain2-0/+846
1995-06-09 * coff-i960.c (coff_i960_relocate): Compare output section namesSteve Chamberlain1-0/+5
when converting for vxworks.
1995-06-08* elfcode.h (elf_fake_sections): Permit .scommon or COMMON sections as randomKen Raeburn2-78/+250
SHT_NOBITS sections, in case a linker script is strange.
1995-06-05 * coff-a29k.c (coff_a29k_adjust_symndx): Completely parenthesizeSteve Chamberlain1-1/+1
macro. (pr ld/7127)
1995-06-05Linker support for m68k-elf from Andreas SchwabKen Raeburn1-0/+10
<schwab@issan.informatik.uni-dortmund.de>: * elfcode.h (elf_link_add_object_symbols): Check for NULL when looping through the symbol hashes. (elf_bfd_final_link): When looking for _init and _fini don't use the symbol if it is imported from another object. * elf32-m68k.c: Relocation type changed from REL to RELA. Regular and dynamic linking support functions added, similar to other elf targets.
1995-06-05change i386-gnu to elfKen Raeburn1-0/+4
1995-06-03*** empty log message ***Steve Chamberlain2-0/+9
1995-06-01Thu Jun 1 13:51:49 1995 Steve Chamberlain <sac@slash.cygnus.com>Steve Chamberlain1-0/+6
* coffcode.h (sec_to_styp_flags, styp_to_sec_flags, coff_new_section_hook): Any section that starts ".stab" is now marked as debugging.
1995-06-01* archive.c (_bfd_write_archive_contents): Disable extended name table until itKen Raeburn1-0/+4
can be made optional, so that native AR has half a chance on SunOS and HP/UX. [PR binutils/6888]
1995-06-01* linker.c (_bfd_generic_link_output_symbols, case bfd_link_hash_indirect): AddKen Raeburn1-0/+13
cast to correct pointer types.
1995-05-24Wed May 24 10:52:01 1995 Steve Chamberlain <sac@slash.cygnus.com>Steve Chamberlain2-0/+36
pr ld/6997 * elf32-i386.c (elf_i386_relocate_section): Give error message when linking to a shared reloc which isn't there. Wed May 24 10:40:00 1995 Steve Chamberlain <sac@slash.cygnus.com> Support for ARM-PE. * Makefile.in, coffcode.h, config.bfd, configure.in, pe-arm.c, pei-arm.c, reloc.c, targets.c, config/arm-pe.mt: Support for ARM COFF/PE.
1995-05-23Make linking mips-elf and mips-ecoff work. At least, better than it did.Ken Raeburn2-10/+324
* bfd.c (bfd_get_relocated_section_contents): Now a function, tries calling routine from input bfd target vector for bfd_indirect_link_order. Put a declaration into the header file. * bfd-in2.h: Regenerated. * elf32-mips.c (gprel16_with_gp): New function, split out from mips_elf_gprel16_reloc. (mips_elf_gprel16_reloc): Call it. If output bfd target vector isn't elf flavoured, abort, since it's assumed to be elf in some of this code, including the code that looks up the gp value. (elf32_mips_get_relocated_section_contents): New function, modified from bfd_generic_get_relocated_section_contents to deal with passing gp to gprel16_with_gp. (bfd_elf32_bfd_get_relocated_section_contents): New macro. * elf32-target.h (bfd_elf32_bfd_get_relocated_section_contents): Don't define if already defined.
1995-05-23 * Makefile.in: Install bfdlink.h too.Jeff Law1-0/+12
1995-05-19 * coffswap.h: (IMAGE_BASE): Define to 0 if not.Steve Chamberlain1-0/+4
1995-05-18Bunch of changes from Richard Earnshaw for generic bi-endian ARM aout targets.Ken Raeburn2-0/+35
Details in change logs.
1995-05-18 * libbfd.c (bfd_stat): If bfd_cache_lookup returns an error,Jim Kingdon1-0/+10
return an error to the caller. Call bfd_set_error on errors.
1995-05-13Thu May 11 16:43:14 1995 Steve Chamberlain <sac@slash.cygnus.com>Steve Chamberlain3-0/+78
tekhex.c (first_phase): Understand type 0 symbols. (tekhex_write_object_contents): Fix typo in final record. Thu May 11 16:43:14 1995 Steve Chamberlain <sac@slash.cygnus.com> pr ld/6840 * coff-i960.c (optcall_callback): don't try and optimize undefined refs. (coff_write_relocs): Search for broken relocs on the way out and fix them up. (coff_renumber_symbols): Calculate and return index of first undefined symbol. (coff_write_object_contents): Call coff_renumber_symbols and coff_write_relocs with the new args. * libcoff.h: (coff_renumber_symbols, coff_renumber_symbols): Modified prototypes. Thu May 11 16:43:14 1995 Steve Chamberlain <sac@slash.cygnus.com> Tom Griest <griest@cs.yale.edu> Initial support for PE format. * Makefile.in, targets.c, configure.in, config.bfd: Add support for i386-*-winnt and i386-*-pe. * archive.c (do_slurp_coff_armap): Understand NTPE format archives. (_bfd_slurp_extended_name_table): Turn \ in a filename into /. * bfd-in.h (bfd_link_subsystem, _bfd_link_stack_heap): New. * coff-i386.c (howto_table): Conditionalize PCRELOFFSET. * coffcode.h (IMAGE_BASE): New. (coff_compute_section_file_positions): Throw away .junk sections for PE, align symbols. (coff_write_object_contents): Throw away .junk sections for PE. Remember info on .idata and .rsrc sections. Fill in the PE header. (coff_slurp_symbol_table): PE uses C_SECTION class. * cofflink.c (_bfd_coff_final_link): Keep PE info up to date. (_bfd_coff_generic_relocate_section): Cope with PE relocs. * coffswap.h (coff_swap_{aout/file/scn/sym}hdr_{in/out}): New code for PE headers.
1995-05-09Add little endian PowerPC support.Michael Meissner4-8/+53
1995-04-25 * hosts/std-host.h: #include ansidecl.h 'cause PTR is used inJason Molenda2-0/+11
std-host.h.
1995-04-24Provide escape hatch for HAVE_PROCFS being defined.Michael Meissner2-0/+8
1995-04-24Do not continue processing unknown symbols.Michael Meissner1-0/+5
1995-04-21Patches from H.J. Lu for Linux ELF core file support.Ken Raeburn2-0/+27
* elfcode.h (elf_core_file_matches_executable_p) [HAVE_PROCFS]: Use prpsinfo_t instead of struct prpsinfo, for consistency. * hosts/i386linux.h (HAVE_PROCFS): Define.
1995-04-20Thu Apr 20 09:07:39 1995 Steve Chamberlain <sac@slash.cygnus.com>Steve Chamberlain1-0/+37
* linker.c (link_action): Do the right thing when a undefined strong symbol appears after an undefined weak symbol.
1995-04-14* config.bfd: Add m68*-*-elf*.Ken Raeburn1-0/+15
* elf32-m68k.c: Filled out implementation, except for dynamic linking support. * reloc.c (enum bfd_reloc_code_real): Added *_GOT_PCREL, *_GOTOFF, *_PLT_PCREL, *_PLTOFF, *_68K_* relocations for ELF. * libbfd.h, bfd-in2.h: Regenerated.
1995-04-12* aoutx.h (machine_type, case bfd_arch_mips): Treat R8000 like R6000 and R4000Ken Raeburn1-0/+20
for now.
1995-04-04Always keep all MPW support filesStan Shebs2-35/+3
1995-04-04No longer need MPW-only historyStan Shebs1-81/+0
1995-03-30Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)Ian Lance Taylor1-0/+9
* config.bfd: Change linux to default to elf. Using i[345]86-*-linuxaout will build a library which defaults to a.out. * config/i386-laout.mt: Rename from old config/i386-linux.mt. * config/i386-linux.mt: Rename from old config/i386-lelf.mt. Comment out EXTRALIBS. * config/i386-lelf.mt: Remove.
1995-03-29 * coff-i960.c (coff_i960_relocate): Cache the section symbol inIan Lance Taylor1-0/+4
the used_by_bfd field of the section, to avoid looping for each reloc. PR 6638.
1995-03-29 * cpu-h8500.c (arch_info_struct): Change name from "H8/300" toIan Lance Taylor1-0/+5
"h8300" for consistency with other cpu-* files.
1995-03-28Add entry I forgot to commit:Jeff Law1-0/+7
* som.c (som_set_reloc_info): Sign extend constants from R_DATA_OVERRIDE fixups. * libhppa.h (sign_extend): Renamed from sign_ext. Fix. (low_sign_extend): Likewise.
1995-03-28 * bout.c (b_out_canonicalize_reloc): Handle SEC_CONSTRUCTORIan Lance Taylor1-0/+4
sections. (b_out_get_reloc_upper_bound): Likewise.
1995-03-28 * linker.c (generic_link_add_symbol_list): Skip constructorIan Lance Taylor1-0/+14
symbols which the main linker code did not do anything with. (_bfd_generic_link_output_symbols): Use udata.p if it is set, rather than looking the symbol up in the hash table. Just pass through constructor symbols for which udata.p is not set. If the linker defined the symbol, clear the constructor flag. Fix -r for b.out file format when constructor symbols are defined.
1995-03-21 * som.c (som_slurp_symbol_table): Tighten test to determineJeff Law1-3/+5
what symbols are section symbols.
1995-03-18 * elfcode.h (elf_bfd_link_add_symbols): An empty archive is OK.Ian Lance Taylor1-0/+10
1995-03-17 * elfcode.h (elf_link_add_object_symbols): Check whether a dynamicIan Lance Taylor1-0/+13
object has already been included, and ignore it the second time.
1995-03-15 * libelf.h (bfd_elf32__write_relocs): Don't declare.Ian Lance Taylor1-2/+0
(bfd_elf64__write_relocs): Don't declare.
1995-03-14stab-syms.c: Rewrite to improve performance. Shaves about 5% off gprof runKen Raeburn1-0/+7
time, according to gprof itself, on i486-netbsd.
1995-03-13 * elfcode.h (write_relocs): Make static. Use PTR argument as aIan Lance Taylor1-0/+24
pointer to a boolean variable set to true if something fails. Cast to PTR rather than void *. (sym_is_global): Rewrite for clarity. (map_program_segments): If the program header size is too small, call _bfd_error_handler and return failure rather than aborting. (NAME(bfd_elf,write_object_contents)): Pass boolean variable when calling write_relocs. (elf_symbol_from_bfd_symbol): Use BFD_ASSERT rather than abort. (struct elf_info_failed): Define. (NAME(bfd_elf,size_dynamic_sections)): Declare variables in inner blocks. Pass elf_info_failed structure when calling elf_export_symbol and elf_adjust_dynamic_symbol. (elf_export_symbol): Treat data argument as elf_info_failed rather than bfd_link_info. Set failed field on error. (elf_adjust_dynamic_symbol): Likewise. (struct elf_finfo_failed): Define. (elf_bfd_final_link): Pass elf_finfo_failed structure when calling elf_link_output_extsym. Use BFD_ASSERT rather than abort. (elf_link_output_extsym): Treat data argument as elf_finfo_failed rather than elf_final_link_info. Set failed field on error. (elf_link_input_bfd): Use BFD_ASSERT rather than abort. (elf_reloc_link_order): Likewise.
1995-03-13 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Only writeIan Lance Taylor2-12/+32
out PLTRELSZ, PLTREL and JMPREL relocs if there is a .rela.plt section. Solaris 2.4 apparently does not handle empty reloc information correctly.
1995-03-13 * archive.c (bsd_write_armap): Cast getuid and getgid results toIan Lance Taylor1-0/+5
long, and print with %ld.
1995-03-12 * elf32-arc.c (elf_arc_howto_table): Relocs with implicit addendsDavid Edelsohn1-0/+7
don't work too well with zero src_masks. Correct values.
1995-03-10 * aoutx.h (translate_to_native_sym_flags): Always use the outputIan Lance Taylor1-0/+5
section if it is not NULL. PR 6477.
1995-03-09 * coffswap.h (coff_swap_scnhdr_out): If the line number count orIan Lance Taylor1-0/+7
the reloc count does not fit, print an error and return 0. * coffcode.h (coff_write_object_contents): Check return value of coff_swap_scnhdr_out. * ecoff.c (_bfd_ecoff_write_object_contents): Check return value of bfd_coff_swap_scnhdr_out.
1995-03-09 * bfd.c: Include <stdarg.h> or <varargs.h>, depending uponIan Lance Taylor1-0/+11
ANSI_PROTOTYPES. (bfd_error_handler_type): New global type. (_bfd_error_program_name): New static variable. (_bfd_default_error_handler): New static function. (_bfd_error_handler): New BFD private global variable. (bfd_set_error_handler): New globally visible function. (bfd_set_error_program_name): New globally visible function. * libbfd-in.h (_bfd_error_handler): Declare. * bfd-in2.h, libbfd.h: Rebuild.