aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
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.
1995-03-09 * aoutx.h (NAME(aout,swap_ext_reloc_in)): Add symcount parameter,Ian Lance Taylor2-7/+87
and use it instead of bfd_get_symcount. Check r_index after setting r_extern based on whether this is a base relative reloc. (NAME(aout,swap_std_reloc_IN)): Add symcount parameter, and use it instead of bfd_get_symcount. (NAME(aout,slurp_reloc_table)): Pass bfd_get_symcount to reloc swap routines. * libaout.h (NAME(aout,swap_ext_reloc_in)): Add symcount parameter to declaration. (NAME(aout,swap_std_reloc_in)): Likewise. * sunos.c (sunos_canonicalize_dynamic_reloc): Pass info->dynsym_count to reloc swap routines. * aout-ns32k.c (MY_swap_std_reloc_in): Add symcount parameter. * hp300hpux.c (MY(swap_std_reloc_in)): Likewise. (MY(slurp_reloc_table)): Pass bfd_get_symcount to reloc swap routine. * i386lynx.c (NAME(lynx,swap_ext_reloc_in)): Add symcount parameter. (NAME(lynx,swap_std_reloc_in)): Likewise. (NAME(lynx,slurp_reloc_table)): Pass bfd_get_symcount to reloc swap routines.
1995-03-09Add support for checking whether all PowerPC ELF modules either use ↵Michael Meissner3-0/+20
-mrelocatable or do not.
1995-03-08 * cpu-mips.c (arch_info_struct): Add mips:8000 entry.Ian Lance Taylor1-0/+2
1995-03-08 * elfcode.h (swap_out_syms): Mark an undefined BSF_WEAK symbol asIan Lance Taylor1-0/+5
STB_WEAK rather than STB_GLOBAL.
1995-03-08 * configure.in (SELECT_VECS): Split bfd_elf32_arc_vec into big/little.David Edelsohn2-6/+25
* targets.c (bfd_target_vector): Likewise. * elf32-arc.c (TARGET_BIG_SYM): Define. (TARGET_BIG_NAME): Define. * config/arc-elf.mt (DEFAULT_VECTOR): Set to bfd_elf32_littlearc_vec. (SELECT_VECS): Add bfd_elf32_bigarc_vec.
1995-03-07 * coffcode.h (bfd_coff_backend_data): Add new fieldIan Lance Taylor3-16/+127
_bfd_coff_adjust_symndx. (bfd_coff_adjust_symndx): Define. (coff_adjust_symndx): Define as NULL if not already defined. (bfd_coff_std_swap_table): Initialize new field to coff_adjust_symndx. * cofflink.c (coff_link_input_bfd): Call coff_adjust_symndx if it is defined. * coff-a29k.c (coff_a29k_adjust_symndx): New static function. (coff_adjust_symndx): Define before including coffcode.h. * libcoff.h: Rebuild.
1995-03-07 * format.c (bfd_check_format_matches): Skip binary_vec whenIan Lance Taylor1-0/+3
searching through bfd_target_vector.
1995-03-07 * elfcode.h (elf_sort_hdrs): Check SHT_NOBITS before checkingIan Lance Taylor2-13/+14
sh_size.
1995-03-07 * elfcode.h (elf_sort_hdrs): Keep SHT_NOBITS sections afterDavid Edelsohn2-3/+25
!SHT_NOBITS ones.
1995-03-06 * cpu-hppa.c (arch_info_struct): Support both PA1.0 and PA1.1Jeff Law2-11/+67
machine types. (bfd_hppa_arch): Link in both PA1.0 and PA1.1 architecture info structures. * libhppa.h (enum pa_arch): New enumeration to describe the different variants of the PA architecture. * som.c (som_object_setup): Use new enumeration to set machine type. (som_finish_writing): If the machine type is PA1.1, then use the PA1.1 machine identifier in the output file.
1995-03-04 * hosts/mpw.h (SEEK_SET, SEEK_CUR, BYTES_IN_PRINTF_INT):Stan Shebs2-11/+15
Remove definitions. (mpw_fread, mpw_fwrite): Declare, define as substitutes for fread and fwrite.
1995-03-02 * aoutx.h (NAME(aout,set_section_contents)): Double check that theIan Lance Taylor2-29/+56
caller is writing to a valid section. PR 5996 cleanup.
1995-03-02Thu Mar 2 14:37:57 1995 Bryan Ford <baford@cs.utah.edu>Ian Lance Taylor1-0/+14
* binary.c: Add support for reading binary files. Loads the raw contents of the file into a data section and wraps some symbols around it. The symbols `_binary_<filename>_start' and `_binary_<filename>_end' indicate the start and end of the data, while `_binary_<filename>_size' is an absolute symbol whose value is the size of the data. <filename> is the name of the binary input file, with all non-alphanumeric characters converted to underscores. * archures.c (bfd_arch_get_compatible): Assume users knows what they're doing if one of the architectures is bfd_arch_unknown.
1995-03-01Warn if GOT16 overflows.Michael Meissner1-0/+6
1995-03-01Wed Mar 1 11:52:55 1995 Jason Molenda <crash@phydeaux.cygnus.com>Jason Molenda1-0/+4
* configure.host: Recognize powerpc-*-aix*. for sludge.cygnus.com.
1995-03-01 * coff-i960.c (COFF_PAGE_SIZE): Define.Ian Lance Taylor1-0/+2
1995-03-01 * configure.in: Rewrite output of TDEFAULTS to avoid relying onIan Lance Taylor1-0/+5
semantics of single quotes in parameter substitution.
1995-02-28 * elfcode.h (elf_sort_hdrs): Sort empty sections before non-emptyIan Lance Taylor1-0/+3
sections, if they have the same VMA.
1995-02-28 * config.bfd (i[345]86-*-linuxelf*): New target. Use i386-lelf.Ian Lance Taylor1-0/+7
(i[345]86-*-gnuelf*): New target. Use i386-gelf. * config/i386-lelf.mt: New file. * config/i386-gelf.mt: New file.
1995-02-27 * config.bfd: add a29k-*-vxworks configuration.Kung Hsu2-0/+12
1995-02-22 * bout.c (b_out_slurp_reloc_table): Don't return an error if askedIan Lance Taylor1-0/+5
for relocations for the .bss section. PR 6377.
1995-02-21 * som.c (som_bfd_ar_write_symbol_stuff): Handle objects with oddJeff Law1-0/+5
lengths.
1995-02-21Add missed log entry for som.c.Jeff Law1-0/+1
1995-02-17 * hosts/sysv4.h: Include <unistd.h>, <stdlib.h>, and <time.h>.Ian Lance Taylor2-26/+11
Only define SEEK_SET and SEEK_CUR if they are not already defined. Remove all external function declarations.
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