aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1994-02-26 * aoutx.h, archive.c: Add casts to avoid warnings from SVR4 cc.Ian Lance Taylor7-92/+137
* ecoff.c, ecofflink.c, ecoffswap.h, srec.c: Likewise. * elf32-i386.c: Likewise. * elfcode.h (bfd_section_from_shdr): Make i unsigned; remove old #if 0 code. (elf_write_phdrs): Make i unsigned. (map_program_segments): Make i and n_left unsigned. (assign_file_positions_except_relocs): Make i unsigned. (write_shdrs_and_ehdr): Make count unsigned. (assign_file_positions_for_relocs): Make i unsigned. (NAME(bfd,elf_write_object_contents)): Make count unsigned. (section_from_elf_index): Make index argument unsigned.
1994-02-26 * reloc.c (_bfd_relocate_contents): Adjust handling of overflow toIan Lance Taylor1-9/+33
avoid depending upon right shifts of signed numbers, and to correct handling of src_mask with lower bits zero.
1994-02-26Various entries.Ian Lance Taylor1-0/+11
1994-02-26 * linker.c (_bfd_generic_link_write_global_symbol): Add missingIan Lance Taylor1-3/+8
break in switch.
1994-02-26 * elfcode.h: Don't include assert.h.Ian Lance Taylor1-3/+2
(swap_out_syms): Use BFD_ASSERT rather than assert.
1994-02-26 * hosts/i386v4.h (qsort, strtol): Remove incorrect and uselessIan Lance Taylor1-2/+0
declarations.
1994-02-26 * libhppa.h (hppa_rebuild_insn): Moved here from elf32-hppa.c.Jeff Law3-1011/+618
* elf32-hppa.h (elf_hppa_tc_symbol): Add new arguments. (elf_hppa_tc_make_sections): Likewise. (elf_hppa_final_processing): Add extern decl. * elf32-hppa.c: First half of major cleanup. Add/cleanup lots of comments. PARAMize some static functions. Delete unused functions. Delete unused/unnecessary arguments to many functions. Group static vars together. Collapse common case statements together in many places. Use default case when possible instead of listing each case separately. Abort for bad errors until we get error code propogation working. Work on spacing and indention problems. Add FIXMEs for some unresolved problems. Delete hopelessly broken COMPLEX relocation support (it's never used anyway). (hppa_elf_rebuild_insn): Delete. Moved into libhppa.h. (elf_hppa_tc_symbol): Accept and use new arguments (symext chains). (elf_hppa_tc_make_sections): Likewise.
1994-02-26 * format.c (bfd_check_format_matches): Initialize matching_vectorJeff Law2-1/+5
to keep gcc -Wall quiet. * elfcode.h (elf_slurp_reloca_table): Fix typo.
1994-02-26 * som.c (som_get_symtab_upper_bound): Use "sizeof (asymbol *)"Jeff Law3-3/+42
not "sizeof (som_symbol_type *)". * elfcode.h (elf_get_symtab_upper_bound): Use "sizeof (asymbol *)" not "sizeof (asymbol"). Opps.
1994-02-25 * bfd.c (bfd_get_gp_size): Can't return gp value on an archive.Ian Lance Taylor2-47/+160
(bfd_set_gp_size): Can't set gp value on an archive.
1994-02-25 * srec.c (pass_over): Don't skip too many characters whenSteve Chamberlain2-6/+10
end of line seen.
1994-02-25Fix last patch.Ian Lance Taylor1-0/+1
1994-02-25 * ecoff.c (ecoff_sizeof_headers): Align result to 16 byteIan Lance Taylor2-21/+36
boundary.
1994-02-24 * elfcode.h (elf_core_file_p): Check for core file e_machine matchPeter Schauer1-0/+5
like in elf_object_p.
1994-02-24 * elfcode.h (alloca): Delete declaration.Jeff Law2-5/+3
1994-02-24 * som.c (som_prep_headers): Use CPU_PA_RISC1_0 for magicJeff Law2-1/+7
number rather than HP9000S800_ID. Note som.c is careful to make sure CPU_PA_RISC1_0 is always defined.
1994-02-24Wed Feb 23 16:52:51 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs2-2/+7
* hosts/mpw.h (fstat): Declare. (mpw_fstat): Eliminate mentions.
1994-02-22 * ecofflink.c (ecoff_write_symhdr): Set symhdr->magic here.Ian Lance Taylor1-0/+5
* ecoff.c (ecoff_write_object_contents): Make sure .bss section ends on a page boundary if there is no symbol table. (ecoff_bfd_final_link): Don't set symhdr->magic here.
1994-02-22 * hosts/hp300.h: Include <stdlib.h>; don't declare free.Ian Lance Taylor2-2/+3
1994-02-22 * som.c (som_bfd_count_ar_symbols): Use a pointer and allocaIan Lance Taylor2-6/+20
rather than an array of variable size. (som_bfd_fill_in_ar_symbols): Likewise. (som_bfd_ar_write_symbol_stuff): Likewise.
1994-02-21Oops... Forgot to check this in...Stu Grossman1-0/+1
1994-02-21Mon Feb 21 10:12:02 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs1-0/+5
* Makefile.in (targets.o, archures.o): Use ALL_CFLAGS to supply flags to explicit compile actions.
1994-02-21 * coff-alpha.c (alpha_relocate_section): Rewrite mask and shiftIan Lance Taylor3-6/+16
operation to avoid OSF 1.3 cc bug. * ecoff.c (ecoff_write_object_contents): Make text_size, data_size and bss_size bfd_size_type instead of unsigned long. Make text_start and data_start bfd_vma instead of unsigned long. * ecofflink.c (ecoff_add_string): Remove incorrect cast of return value.
1994-02-21 * linker.c (_bfd_generic_link_add_archive_symbols): ConsiderIan Lance Taylor1-0/+5
symbols in the order they appear in the archive map.
1994-02-19 * coff-alpha.c (reloc_nil): Add forward declaration, add missingPeter Schauer2-1/+15
error_message argument. * coff-sparc.c (bfd_coff_generic_reloc): Add forward declaration, add missing error_message argument. * mipsbsd.c (mips_fix_hi16_s): Add forward declaration, add missing error_message argument.
1994-02-18 start-sanitize-powerpc-netwareIan Lance Taylor4-3/+73
Support for PowerPC NetWare. * config.bfd (powerpc-*-netware*): New target; use ppc-nlm. * config/ppc-nlm.mt: New file. * configure.in (nlm32_powerpc_vec): New target vector; use nlm32-powerpc.o, nlm32.o, nlm.o. * targets.c (nlm32_powerpc_vec): Declare. * Makefile.in (BFD32_BACKENDS): Add nlm32-powerpc.o. (CFILES): Should add nlm32-powerpc.c, but didn't, because the dependencies can't be sanitized. end-sanitize-powerpc-netware Initial support for PowerPC ELF. Done without an ABI, and probably to be changed when I get an ABI. * config.bfd (powerpc-*-sysv4*): New target; use ppc-elf. * config/ppc-elf.mt: New file. * configure.in (bfd_elf32_powerpc_vec): New target vector; use elf32-powerpc.o, elf32.o, elf.o. * elf32-powerpc.c: New file. * elfcode.h (prep_headers): Add bfd_arch_powerpc case. (elf_set_arch_mach): Likewise. * targets.c (bfd_elf32_powerpc_vec): Declare. * Makefile.in (BFD32_BACKENDS): Add elf32-powerpc.o. (CFILES): Add elf32-powerpc.c. Rebuilt dependencies.
1994-02-18Support for PowerPC ELF and PowerPC NetWare. Sanitization to follow.Ian Lance Taylor2-0/+1020
1994-02-17Use bfd_set_error in last patch.Ian Lance Taylor1-1/+1
1994-02-17Various entries.Ian Lance Taylor1-0/+19
1994-02-17 * elfcode.h (elf_slurp_symbol_table): Handle zero symbolsIan Lance Taylor1-87/+101
reasonably. Allocate x_symp using alloca. Also fixed up indentation a bit in elf_set_arch_mach.
1994-02-17 * elfcode.h (map_program_segments): ELF program header entriesIan Lance Taylor1-21/+23
must be sorted by load address. This used to generate the entries in reverse order.
1994-02-17 * bfd.c (bfd_get_error, bfd_set_error): New functions.David MacKenzie15-270/+304
(bfd_error): Make static. (bfd_error_type): Renamed from bfd_ec. Prepend "bfd_error_" to all values. * bfd-in2.h: Regenerated. * aix386-core.c, aout-adobe.c, aout-encap.c, aout-target.h, aoutf1.h, aoutx.h, archive.c, archures.c, bfd.c, bout.c, cache.c, coff-alpha.c, coff-mips.c, coff-rs6000.c, coffcode.h, coffgen.c, core.c, ctor.c, ecoff.c, ecofflink.c, elf.c, elf32-hppa.c, elf32-mips.c, elfcode.h, format.c, hash.c, hp300hpux.c, hppabsd-core.c, i386lynx.c, ieee.c, libbfd.c, libelf.h, linker.c, lynx-core.c, nlm.c, nlm32-alpha.c, nlm32-i386.c, nlm32-sparc.c, nlmcode.h, oasys.c, opncls.c, osf-core.c, ptrace-core.c, reloc16.c, rs6000-core.c, section.c, som.c, srec.c, sunos.c, syms.c, targets.c, tekhex.c, trad-core.c: Change callers.
1994-02-16 * som.c: Remove FIXMEs for things which have been dealt with.Jeff Law2-9/+8
1994-02-16i960-bout linker fixes, i960 coff config changesKen Raeburn1-0/+34
1994-02-16Support i960 vxworks versions > 5.0 with coff, not bout. Default with noKen Raeburn1-4/+14
version number is still bout. Support explicit i960-coff target too.
1994-02-16(b_out_get_reloc_upper_bound): For BSS section, just return 0.Ken Raeburn1-285/+279
(aligncode): When shrinking, the addend should be set to the current offset in the section plus the number of bytes of padding that will actually be retained. (b_out_relax_section): If a section contains no relocations, don't bother processing them. (b_out_get_relocated_section_contents): Set reloc_done. Assert that bfd_get_section_contents returns true. Check that relocs are properly ordered. (b_out_get_relocated_section_contents, case ALIGNDONE): Assert that reloc's addend falls between the current source offset and the raw size of the input section. Changed some indentation, deleted trailing whitespace, fixed some comments, removed some "#if 1" lines. (output_addr): New macro. (calljx_callback, callj_callback, get_value, abs32code, aligncode, b_out_get_relocated_section_contents): Use it for readability.
1994-02-16(default_indirect_link_order): In assertion, compare link_order size fieldKen Raeburn1-1/+1
against cooked size, not raw size, of input section.
1994-02-16(bfd_get_section_contents): Since this function reads unrelocated contents, theKen Raeburn1-4/+4
section's raw size is always the one to use for bounds checking.
1994-02-15Tue Feb 15 12:44:30 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs3-23/+18
* mpw-make.in (CSEARCH): Add include/mpw to search path. * hosts/mpw.h (stat): Remove incomplete definition, now in include/mpw/sys. (POSIX_UTIME): Define.
1994-02-15 * som.c (som_bfd_prep_for_ar_write): Iterate through the SOMJeff Law2-14/+20
symbols, not the BFD symbols. (som_bfd_ar_write_symbol_stuff): Likewise.
1994-02-15 * som.c (som_slurp_symbol_table): Do not die if a BFD doesn'tJeff Law2-6/+5
have any symbols.
1994-02-15 * Finish basic read-write support for SOM archive libraries. BugsJeff Law2-122/+595
surely remain as this hasn't been tested all that much. * som.c (SOM_LST_HASH_SIZE, SOM_LST_MODULE_LIMIT): Define. (struct som_misc_symbol_info): New structure to hold info necessary to build both normal and library symbol tables. (som_derive_misc_symbol_info): New function to derive info necessary to build both normal and library symbol tables. (som_build_and_write_symbol_table): Use new function to derive misc symbol information. (som_slurp_symbol_table): Update backend private data for symbols appropriately. (som_bfd_prep_for_ar_write): New function. (som_bfd_ar_symbol_hash): New function. (som_bfd_ar_write_symbol_stuff): New function. (som_write_armap): Flesh out. (som_vec): Fix ar padding character. * som.c: Consistently use memset rather than bzero.
1994-02-15 * coff-rs6000.c: Add Lynx core file support, use HOST_AIX, whereStu Grossman2-0/+15
appropriate. * rs6000-core.c: Use HOST_AIX instead of COREFILES_PLEASE. * config/rs6000.mh: Remove defs of ARCHIVES_PLEASE and COREFILES_PLEASE. * config/rs6000lynx.mh: Turn on Lynx core file support. * hosts/rs6000.h: #define HOST_AIX. * hosts/rs6000lynx.h: Create this to enable Lynx host support.
1994-02-15 * hosts/rs6000lynx.h: Create this to enable Lynx host support.Stu Grossman1-0/+1
1994-02-15 * coff-rs6000.c: Add Lynx core file support, use HOST_AIX, whereStu Grossman3-34/+458
appropriate. * rs6000-core.c: Use HOST_AIX instead of COREFILES_PLEASE. * config/rs6000.mh: Remove defs of ARCHIVES_PLEASE and COREFILES_PLEASE. * config/rs6000lynx.mh: Turn on Lynx core file support. * hosts/rs6000.h: #define HOST_AIX.
1994-02-14 * som.h (som_symbol_data): Safely access backend private dataJeff Law2-22/+25
for BFD symbols. All callers changed.
1994-02-13 * som.c (som_bfd_count_ar_symbols): New helper function.Jeff Law2-6/+380
(som_bfd_fill_in_ar_symbols): New helper function. (som_slurp_armap): New function to read a SOM LST.
1994-02-13 * som.h: Include <lst.h> and <ar.h>.Jeff Law2-0/+18
1994-02-13 * elfcode.h (elf_map_symbols): Fix typo.Jeff Law2-5/+16
(write_object_contents): Check return values from prep_headers and elf_compute_section_file_positions. (set_section_contents): Likewise.
1994-02-12 * archive.c (normalize) [VMS]: Call malloc, not bfd_xmalloc.David MacKenzie2-3/+26
(bfd_construct_extended_name_table): Check result of normalize.