aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1993-07-07 * aoutx.h (translate_from_native_sym_flags): Removed statepIan Lance Taylor5-210/+218
argument. Just let an indirect symbol point to the next symbol without forcing the next symbol to be undefined. Changed all callers. * hp300hpux.c (slurp_symbol_table): Changed call to translate_from_native_sym_flags. * targets.c: Added hp300hpux_vec. * Makefile.in (hp300hpux.o): Added dependencies.
1993-07-07Don't crash if with_minimal_bfd is the empty string.Ian Lance Taylor1-2/+2
1993-07-06more prototypes, in libelf.hKen Raeburn2-8/+9
1993-07-06Several changes: type fixes; prototypes; minimal-bfd work; elf fixes.Ken Raeburn1-0/+39
1993-07-06regeneratedKen Raeburn1-10/+40
1993-07-06* elfcode.h (elf_read): Delete static declaration, since function has moved.Ken Raeburn1-257/+211
(elf_map_symbols): Write out section symbols for all sections, for now. (elf_symbol_from_bfd_symbol): Allow match if both symbols are section symbols for the same section. (elf_find_nearest_line): Don't print message, just return false.
1993-07-06fill out reloc tableKen Raeburn1-0/+197
1993-07-06Hack to cut down compilations needed for minimal-bfd:Ken Raeburn2-20/+40
* Makefile.in (ALL_MACHINES): Renamed from BFD_MACHINES. (ofiles): New target. Build a list of unique file names, in case any got duplicated. (TARGETLIB): Use list of files from ofiles. * configure.in: Set BFD_MACHINES and BFD_BACKENDS depending on minimal-bfd flag and target makefile frag contents.
1993-07-06Stricter prototyping, to force type conversions between 64-bit target andKen Raeburn3-63/+93
32-bit host values. * libbfd.c (bfd_xmalloc_by_size_t): New function. * opncls.c (bfd_cache_init, bfd_open_file): Add prototypes to declarations. (obstack_chunk_alloc): Use bfd_xmalloc_by_size_t. (new_bfd): Prototype-style definition, using DEFUN. (bfd_alloc_grow, bfd_alloc, bfd_zalloc, bfd_realloc): Size argument is type size_t, not bfd_size_type. * ieee.c (obstack_chunk_alloc): Use bfd_xmalloc_by_size_t. * bfd.c (bfd_default_error_trap, bfd_error_trap, bfd_error_nonrepresentabltrap): Prototypes. * libbfd-in.h (bfd_alloc, bfd_zalloc, bfd_realloc, bfd_alloc_grow): Adjusted prototypes for arg type change. * archive.c (get_elt_at_filepos, do_slurp_bsd_armap, normalize, do_slurp_coff_armap, bfd_construct_extended_name_table): Prototypes.
1993-07-06(enum bfd_reloc_code_real): Put simple power-to-two relocs together, and addKen Raeburn1-14/+33
64-bit versions. Also add sparc v9 reloc types. (bfd_generic_get_relocated_section_contents): Argument to alloca is size_t.
1993-07-05* cpu-h8300.c (h8300_scan): Fix parsing of architecture string.David Edelsohn1-0/+4
1993-07-02 * Makefile.in (clean): Remove bfd.h and stmp-bfd.h.Jim Kingdon2-13/+31
(realclean): Remove generated headers.
1993-07-02 * hosts/std-host.h: Removed declarations of printf, fprintf,Ian Lance Taylor2-6/+5
fcntl, fread and fwrite. They are all error prone for one reason or another. Changed declaration of memchr from char * to PTR.
1993-07-02 * configure.in (mips-*-riscos*): New target; use riscos.Ian Lance Taylor1-0/+2
* configure.host (mips-*-riscos*): New host; use riscos.
1993-07-02 * config/riscos.mh (HDEFINES): Add -G 4.Ian Lance Taylor1-0/+2
1993-07-02 * libaout.h (GET_SWORD): Use the bfd_h_get_signed entry pointsIan Lance Taylor1-0/+5
rather than casting the result of bfd_h_get.
1993-07-02update .Sanitize for delta68Jim Kingdon1-0/+1
1993-07-02 * configure.in, hosts/delta68.h, config/delta68.mh: Add stuff forJim Kingdon2-4/+56
Motorola Delta 68.
1993-07-02new file for delta 68Jim Kingdon1-0/+0
1993-06-30(CAT4): Added Saber-C (ANSI mode) version.Ken Raeburn1-0/+41
(bfd_elf64_*): New decls.
1993-06-30delete setting of a variable i wound up not usingKen Raeburn1-5/+0
1993-06-30list new files, new stuff to sanitizeKen Raeburn1-5/+31
1993-06-30new generic elf64 stuffKen Raeburn2-0/+269
1993-06-29 * coff-mips.c (ecoff_find_nearest_line): If procedure has no lineIan Lance Taylor1-0/+10
number information, return 0 for line number.
1993-06-28* hosts/riscos.h: Define NBPG and UPAGES.Jim Kingdon1-0/+4
1993-06-27elf32.c (slurp_symbol_table): fix cast-as-lvalue bugKen Raeburn1-0/+5
1993-06-26 * aoutx.h (hash, compare, struct stringtab_entry, add_to_stringtab):David MacKenzie2-56/+105
Use unsigned hash values for better hashing. (hash): Hash in the string length for long strings. * aoutx.h (compare): Replace 3 if's with a subtraction. (translate_to_native_sym_flags, add_to_stringtab): Reorder tests in decreasing order of success, as an optimization. (hash): Take a length arg; ignore chars after #25, for speed. (add_to_stringtab): Pass length to hash.
1993-06-24Thu Jun 24 17:25:51 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)Ken Raeburn2-8/+67
* elfcode.h (elf_new_section_hook): Do nothing for now. (elf_write_object_contents): Output common symbols the way ELF wants them. Wed Jun 23 16:20:07 1993 Ken Raeburn (raeburn@poseidon.cygnus.com) * libelf.h (struct elf_obj_tdata and associated macros): Moved here from elfcode.h. A couple of size-specific structure pointers were changed to PTR; uses fixed appropriately. (elf32_symbol_type, elf64_symbol_type): Separated definitions. (bfd_elf_mkobject): Renamed from bfd_elf32_mkobject. (bfd_elf32_mkobject, bfd_elf64_mkobject, elf_mkobject): New temporary macros to ease name change. * elf.c (elf_read, elf_mkobject, elf_get_str_section, elf_string_from_elf_section, bfd_elf_find_section): Moved here from elfcode.h. * doc/Makefile.in (libbfd.h): Process elf.c too. * Makefile.in (elf.o): Note new dependencies. * elfcode.h: Lots of stuff moved elsewhere. Deleted some unused code, tweaked some debug hooks. (elf_slurp_reloca_table): Translate ELF section symbols into BFD section symbols.
1993-06-24Get 64bit stuff right.Steve Chamberlain1-2/+2
1993-06-23 * hosts/riscos.h: New file.Jim Kingdon3-0/+20
1993-06-22 * aoutx.h (howto_table_ext): Comment the field names.David MacKenzie1-0/+5
* reloc.c (bfd_perform_relocation): Fix max and min values.
1993-06-22elfcode.h:bfd_section_from_shdr changeKen Raeburn1-0/+5
1993-06-22 * hosts/std-host.h: Return value of puts and fputs is int not void.Jim Kingdon2-2/+11
1993-06-22Sigh. Null pointer return might be right in some cases; don't abort.Ken Raeburn1-2/+0
1993-06-22More get_word/put_word changes.Ken Raeburn1-17/+21
(bfd_section_from_shdr, case SHT_PROGBITS): If section already exists, still use its address to fill in the rawdata slot. (section_from_elf_index): Abort if section pointer is null.
1993-06-22Lots o' changes.Ken Raeburn1-1/+62
Mostly ELF changes, or misc cleanup.
1993-06-22regeneratedKen Raeburn1-2/+2
1993-06-22Use new size-independent elf internal data structures.Ken Raeburn1-98/+113
(put_word, get_word): Define as appropriate for architecture word size. Structure swapping functions changed to use them as appropriate. (bfd_add_to_strtab): Now static. (sym_is_global): New function. (elf_map_symbols): Call it. Now returns void. Removed unused local variable. (bfd_section_from_shdr): Mark string tables other than for section and symbol names as normal sections having contents. (fix_up_strtabs): New function; fixes up ELF header fields for stab sections with string tables associated. (elf_write_object_contents): Map fix_up_strtabs over all BFD sections. Reordered condition tests for symbol flags; default to local-object value instead of global-object. (elf_symbol_from_bfd_symbol): Hid conditionally-used variable inside condition test. (elf_print_symbol): Use fprintf_vma. (elf_idx_of_sym, bfd_shdr_from_section): Unused functions commented out.
1993-06-22Use new size-independent elf internal data structures.Ken Raeburn1-6/+7
1993-06-22Use new size-independent versions of elf internal data structures.Ken Raeburn2-10/+9
1993-06-22Before casting a pointer into an integer field, verify that the field isKen Raeburn1-0/+14
wide enough to hold it.
1993-06-22(srec_write_symbols): Use sprintf_vma, in case bfd_vma is too wide forKen Raeburn1-11/+31
printf to handle.
1993-06-22Don't define int64 stuff here.Ken Raeburn1-24/+0
1993-06-21make mips-sony-bsd workJim Kingdon2-0/+6
1993-06-21fix typo in name of elf32-generic.cJim Kingdon1-1/+1
1993-06-21Add news.h to list of files to keep.Fred Fish1-0/+1
1993-06-21Add elf32-generic.c to list of files to keep.Fred Fish1-1/+2
1993-06-21Recent changes, mostly ELF and bfd.h generation.Ken Raeburn1-0/+32
1993-06-21* elfcode.h (bfd_add_to_strtab): Now static.Ken Raeburn1-123/+201
(sym_is_global): New function. (bfd_section_from_shdr): Makr stirng tables other than for section and symbol names as normal sections having contents. (fix_up_strtabs): New function; fixes up ELF header fields for stab sections with string tables associated. (elf_write_object_contents): Map fix_up_strtabs over all BFD sections. Reordered condition tests for symbol flags; default to local-object value instead of global-object. * elfcode.h (new_section_hook): Define here.
1993-06-21Regenerated after my changes to bfd-in.h.Ken Raeburn1-4/+2