summaryrefslogtreecommitdiffstats
path: root/bfd/elf.c
Commit message (Collapse)AuthorAgeFilesLines
* fix libbfd.h declaration, by tweaking elf.c comment, so bfd can compileKen Raeburn1992-12-301-2/+2
|
* * bfd.c (bfd_get_size): New function that gets an upper boundFred Fish1992-12-281-34/+73
| | | | | | | | | on the possible size of any object in a bfd. * elf.c (bfd_elf_find_section, elf_get_str_section, elf_get_symtab_upper_bound): Rewrite to avoid NULL pointer dereferences. * elf.c (elf_big_vec, elf_little_vec): Document last three members initialized to NULL.
* Various changes to improve archive support. See ChangeLog.Per Bothner1992-12-161-12/+23
|
* * aout-adobe.c, aoutf1.h, aoutx.h, bout.c coff-m68k.c, coff-z8k.c,John Gilmore1992-10-151-7/+0
| | | | coffcode.h, elf.c, libaout.h, libbfd.h, srec.c: Lint.
* * aout-adobe.c, aoutf1.h, archive.c, bout.c, coff-rs6000.c,John Gilmore1992-10-151-3/+3
| | | | | | coffcode.h, elf.c, ieee.c, libaout.h, libbfd.c, oasys.c, sco-core.c: Lint: Second argument of bfd_seek is always file_ptr. Third argument is SEEK_SET or SEEK_CUR. Result is always 0 or -1.
* Some of these are guesses, if you know different, just yell.Steve Chamberlain1992-10-081-1/+10
| | | | | | | | | | | | | | | Thu Oct 8 08:52:48 1992 Steve Chamberlain (sac@thepub.cygnus.com) Now a bfd knows whether underscores are normally prepended to symbols in its file format. Helps with error messages. * aout-adobe.c, aout-target.h, bout.c, coff-a29k.c, coff-h8300.c, coff-z8k.c: targets set so they have leading underscore * coff-i386.c, coff-i960.c, coff-m68k.c, coff-mips.c, coff-m88k.c, coff-rs6000.c, coff-we32k.c, elf.c, ieee.c, srec.c: targets set without leading underscore flag * targets.c: add symbol leading char to xvec description * bfd-in.h (bfd_get_symbol_leading_char): new macro.
* * elf.c (section_from_elf_index): Return bfd_abs_section, not 0,Brendan Kehoe1992-09-251-4/+3
| | | | | | since we should never have a NULL section. (elf_slurp_symbol_table): If st_shndx doesn't match any of our tests, set the section to bfd_abs_section.
* * config/stratus.mt (CC): Remove definition.Fred Fish1992-08-011-154/+115
| | | | | | | | * elf.c (bfd_section_from_shdr, elf_section_from_bfd_section, section_from_elf_index): Add SHT_BEPROGBITS case for i860 in big endian mode. * elf.c (bfd_section_from_shdr): Test for the possibility that section_from_elf_index returns NULL and don't dereference it.
* * elf.c: Remove "(void)" casts from function calls where theFred Fish1992-07-041-2/+2
| | | | return value is ignored, in accordance with GNU coding standards.
* * libbfd.h, libbfd-in.h (bfd_seek): Make prototype match definition.Fred Fish1992-06-241-1/+1
| | | | | | * reloc.c (bfd_default_reloc_type_lookup): Make cast on return type match actual return type. * elf_print_symbol (section_name): Make CONST.
* * elf.c (bfd_elf_find_section): Mark as INTERNAL_FUNCTION soJohn Gilmore1992-06-201-3/+16
| | | | | | | its prototype will be included in libbfd.h. Change result type to struct * (rather than equivalent typedef) so it can be used in the prototype, where they typedef won't be known. * libbfd.h: Updated version.
* * elf.c (bfd_section_from_shdr, elf_slurp_symbol_table):Fred Fish1992-06-171-3/+16
| | | | | | | | | | | | Correct misconception that there can be only one symbol table. Only call elf_slurp_symbol_table on the full symbol table, not the dynamic one which is only a subset of the full one. (The bfd library was slurping in the first ELF symbol table it found and then ignoring any others. For dynamically linked executables, this happened to be the dynamic symbol table, which is a subset of the full symbol table and only contains the symbols that need to be used in dynamic linking.)
* * elf.c (elf_obj_tdata): Merge elf_obj_tdata_struct andJohn Gilmore1992-06-111-148/+183
| | | | | | | | | | | | elf_core_tdata_struct into a single common struct. Core files wouldn't have worked at all without this. (bfd_elf_find_section): New function for GDB's undercover use to find string sections that BFD hides from it. (elf_get_str_section): Avoid multiple alloc&reads for same data; lint. (elf_object_p, elf_core_file_p): Allocate internal file header storage dynamically. * bfd.c (union {...} tdata): Remove elf_core_tdata_struct. * demo64.c: Prevent "empty translation unit" warnings from idiots.
* Fix couple of function args that expect to be passed CONST pointers, andFred Fish1992-04-141-4/+5
| | | | | boolean functions that were returning NULL, which can be "void *" rather than just bare 0.
* Massive changes. Elf sections are now processed into BFD sections onlyMark Eichin1992-04-131-217/+1393
| | | | | | | | | | if they make sense as independent sections; symbols and relocs are turned into BFD symbols and relocs; objects are now created. objdump and copy mostly work on .o files. this check-in will be followed by gdb testing. the code has *not* yet been split up the way coff is to support multiple architectures and bit widths. no ChangeLog entries yet; too big... nearly everything changed.
* Fix to use a single disposable copy of section header table and programFred Fish1992-03-281-42/+33
| | | | header table entries.
* Makefile.in: Add dependencies for various coff-*.o files.Fred Fish1992-01-291-11/+20
| | | | | | | elf.c: Remove extraneous paren from core_prpsinfo and core_prpstatus macros, rename core_prpstatus to core_prstatus. Replace references to old section "size" member with new "_raw_size" member. Implement elf_make_empty_symbol, which is now used.
* Uses the new small reloc type now.Steve Chamberlain1992-01-241-19/+26
| | | | Currently self hosts on sun4 and sun3
* Enclose corename and execname inside a HAVE_PROCFS ifdef, since theyFred Fish1991-12-181-29/+55
| | | | are unused when it is not defined.
* * aout-encap.c, aoutf1.h, aoutx.h, archive.c, bout.c, coff-a29k.c,Steve Chamberlain1991-12-011-3/+3
| | | | | | | coff-h8300.c, coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c, coff-mips.c, coff-rs6000.c, cpu-h300.c, elf.c, i386aout.c, newos3.c, stab-syms.c, syms.c: All these files have had their #includes altered to point to the new places.
* Fix bug in elf.c (missing "break" statements in cases), add ncr andFred Fish1991-11-301-0/+2
| | | | SVR4 i386 support to configuration.
* ALIGN->BFD_ALIGNJohn Gilmore1991-11-221-26/+540
|
* Don't try to create a bfd section for the first ELF section header tableFred Fish1991-11-091-3/+4
| | | | entry, since it is just a placeholder with no name.
* Add partial support for ELF format corefiles. Still needs code to extractFred Fish1991-10-241-48/+264
| | | | register values from corefiles and make them available to bfd clients.
* *** empty log message ***Steve Chamberlain1991-10-031-0/+643
OpenPOWER on IntegriCloud