X-Git-Url: https://repo.jachan.dev/binutils.git/blobdiff_plain/24a1f6a05f4dbef1d9e296beb3eecd4b32e693d2..157669175157e845aa1fa2bf52f5be07ed497005:/bfd/ChangeLog diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ab1bb8fa09..b8ea8a8046 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,622 @@ +Fri Mar 18 19:12:47 1994 Jim Kingdon (kingdon@lioth.cygnus.com) + + * trad-core.c (trad_unix_core_file_p): Call bfd_zmalloc not + bfd_zalloc for rawptr, because later on we may call free, not + bfd_release, on it. + + * bfd.c (struct _bfd): Add cisco_core_struct to tdata union. + * libbfd.c (bfd_read, bfd_seek): Add comments regarding errors. + * cisco-core.c: New file. + * Makfile.in: Change accordingly. + * bfd-in2.h: Rebuilt. + +Fri Mar 18 18:13:49 1994 Jeffrey A. Law (law@snake.cs.utah.edu) + + * som.h (som_copyable_section_data_struct): New structure + containing all the private section information which needs + to be copied from input section to output section during + objcopy or strip. + (som_section_data_struct): Remove several fields now in + som_copyable_section_data_struct. Make the space and + subspace dictionaries be pointers (to save space when + only reading objects). + + * som.c (bfd_som_set_section_attributes): Now returns a boolean; + some references changed. Allocate a copyable data stucture if + none exists. Store info into the copyable data structure. + (bfd_som_set_subsection_attributes): Likewise. + (som_is_space, som_is_subspace, som_is_container): New functions. + Use these instead of directly accessing private data. + (som_prep_headers): Allocate space and subspace headers here. + Fill in some fields in the space/subspace headers from the + copyable data. + (som_bfd_copy_private_section_data): Only copy the stuff + that we really need to make objcopy and strip work. Allocate + the copy_data structure for the output bfd before copying. + + * som.h (struct som_exec_data): New structure to hold exec + info that must be preserved when running objcopy/strip. + (struct somdata): Add new "exec_data" field and accessor + macro. Add some comments on how the various fields are used. + (som_section_data_struct): Make is_space and is_subspace bitfields. + Delete unused subspace_index. All references now use the + target_index field within the section structure itself. + + * som.c (make_unique_section): Delete unused declaration. + (som_bfd_copy_private_bfd_data): New function. + (som_object_setup): Allocate space for and save exec information + that needs to be copied during objcopy/strip. + (som_mkobject): Do not allocate space for a file header here. + It is not used when only reading SOM objects. + (som_prep_headers): Allocate space for and attach a file header + to the output bfd. For executables, use the saved system_id + value rather than trying to guess the right value. Do not abort + wwhen setting file_hdr->entry* for executables. + (som_begin_writing): For executables, set the exec_entry and + exec_flags fields. + (som_copy_private_backend_section_data): Always return a value. + + * libhppa.h (PA_PAGESIZE): Define. + + * som.c (SOM_ALIGN): Define. + (som_begin_writing): If writing an executable, initialize all + fields in the exec header to zero. Update fields in the exec + header as sizes of loadable subspaces are computed. Carefully + preserve alignments when building executables. Actually write the + exec after all the fields are filled in. + + * Better long-filename handling. Reads SOM ABI compliant extended + names, but doesn't quite write compliant extended names yet. + * som.c (som_slurp_extended_name_table): Delete function. The + generic code will handle things correctly. + (som_slurp_armap): Seek to the beginning of the next member. + (normalize): New function. + (som_bfd_ar_write_symbol_stuff): Take the size of the extended + name table into account when computing the file offsets in the + SOM dictionary. Make sure to align to an even boundary. + (som_write_armap): Initialize the checksum to zero. + (ar_maxchars): Fix. Opps. + +Fri Mar 18 20:35:24 1994 Ken Raeburn (raeburn@cujo.cygnus.com) + + * aoutx.h (reloc_type_lookup): Handle BFD_RELOC_CTOR on a 64-bit + machine. Handle BFD_RELOC_SPARC13 and BFD_RELOC_SPARC_BASE13. + +Thu Mar 17 18:26:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com) + + * bfd-in.h (BFD_VERSION): Use @VERSION@. + * Makefile.in (bfd.h): Replace it with contents of VERSION file. + * bfd-in2.h: Regenerated. + + * trad-core.c (trad_unix_bfd_is_local_label): Fixed typo where + this was also named trad_unix_bfd_copy_private_bfd_data. + +Thu Mar 17 10:37:07 1994 Jim Kingdon (kingdon@lioth.cygnus.com) + + * aoutx.h, elfcode.h, coff-alpha.c, bout.c, ecoff.c, ecofflink.c, + elf32-hppa.c, elf32-mips.c, linker.c, som.c, sunos.c: If malloc(0) + returns NULL, it is not an error. It's possible that some of + these checks are not necessary (because the size can never be + zero), but putting in the checks is the conservative thing to do + in light of the fact that some of these malloc calls replaced + unchecked alloca calls, in which a zero argument would work fine. + +Thu Mar 17 11:44:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) + + * osf-core.c (osf_core_bfd_copy_private_bfd_data): Remove + duplicate definition. + (osf_core_bfd_is_local_label): Define. + + * reloc.c (bfd_generic_get_relocated_section_contents): Don't fail + if malloc (0) fails. bfd_canonicalize_reloc returning 0 is not a + failure indication, it merely means there are no relocs. + + * elfcode.h (NAME(bfd_elf,write_object_contents)): Don't use space + after NAME, since SunOS /bin/cc can't handle it. + +Wed Mar 16 16:43:33 1994 David J. Mackenzie (djm@thepub.cygnus.com) + + * netbsd386.c (N_SET_FLAGS): Don't nuke the machine id field. + From sukes@glue.umd.edu (Tasuki Hirata). + +Wed Mar 16 07:55:54 1994 Jim Kingdon (kingdon@lioth.cygnus.com) + + * aoutf1.h (4 places): Use a simple #if on ARCH_SIZE, rather than + all that convoluted stuff with NAME, CAT3, etc. The convoluted + stuff broke for SunOS4 /bin/cc (due to DEFUN elimination, I guess). + +Wed Mar 16 00:02:05 1994 Jeffrey A. Law (law@snake.cs.utah.edu) + + * som.c (som_prep_for_fixups): Detect section symbols based + on either the lack of private data or the symbol flags. Do not + munge section symbol names anymore -- they no longer confuse GDB. + (som_begin_writing): Leave space for an exec header if writing + an executable. + (som_slurp_symbol_table): Recognize both forms of section symbol + names "L$0\002" and "$$". Change the name of "L$0\002" + section symbols to be the name of the section they represent. + Debugging symbols begin with "L$0\001", not just "L$". + +Tue Mar 15 22:58:28 1994 Jeffrey A. Law (law@snake.cs.utah.edu) + + * bfd-in2.h, libbfd.h, libcoff.h: Rebuilt. + + * bfd-in.h (JUMP_TABLE): Add new entries to the jump table + for bfd_copy_private_section_data, bfd_copy_private_bfd_data, + and bfd_is_local_label. + + * targets.c: Add new entries to the bfd_target structure. + + * bfd.c (bfd_copy_private_bfd_data): New definition. + + * section.c (bfd_copy_private_section_data): New definition. + + * syms.c (bfd_is_local_label): New definition. + + * libbfd-in.h (bfd_generic_is_local_label): Declare. + + * libbfd.c (bfd_generic_is_local_label): New function. + + * *-core.c: Provide default definitions for new functions in + the target vector which all point to bfd_false. + + * aout-target.h, coffcode.h, elf32-target.h elf64-target.h, ieee.c + libaout.h, libecoff.h, nlm-target.h, oasys.c, srec.c, tekhex.c + Default new vectors for copying private backend data to bfd_true. + Default new vector for determining if a symbol is a local label + to bfd_generic_is_local_label. + + * som.c (som_bfd_copy_private_section_data): New function. + (som_bfd_is_local_label): New function. + (som_bfd_copy_private_bfd_data): For now default to bfd_true. + + * elf32-hppa.c (hppa_elf_is_local_label): New function. + +Tue Mar 15 23:55:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) + + * cf-m68klynx.c (CALC_ADDEND): Use _bfd_m68klynx_howto_table. + +Tue Mar 15 04:41:13 1994 David J. Mackenzie (djm@rtl.cygnus.com) + + * Most files: + Replace DEFUN and DEFUN_VOID with K&R-style function definition. + Indent some of them to GNU standards. + + * aout32.c, archures.c, core.c, cpu-h8300.c, cpu-i960.c, + cpu-m68k.c, cpu-m88k.c, cpu-mips.c, cpu-vax.c, ctor.c, demo64.c, + elf32-hppa.h, gen-aout.c, host-aout.c, init.c, libhppa.h, + libieee.h, liboasys.h, newsos3.c, som.h, stab-syms.c, sunos.c: + Update copyright years. + +Mon Mar 14 11:41:23 1994 Jeffrey A. Law (law@snake.cs.utah.edu) + + * som.c (som_prep_for_fixups): A relocation involving the section + symbol for the *ABS* section is really a relocation involving + no symbol. + (som_slurp_symbol_table): Do not set BSF_GLOBAL or BSF_EXPORT for + undefined symbols. Correctly distinguish between debugger symbols + and section symbols. + + * som (setup_sections): Set SEC_DEBUGGING and the section attributes + for spaces and subspaces. + + * som.c (som_bfd_count_ar_symbols): Fix typo. + + * som.c (som_object_setup): Set EXEC_P, D_PAGED, WP_TEXT, and + HAS_RELOC based on the object's magic number. + (make_unique_section): Delete function. BFD and its users are + prepared to handle multiple sections with the same name. + (setup_sections): Allocate space on the BFD's obstack to hold + section names. Use bfd_make_setion_anyway rather than the + obsolete make_unique_section. + (som_prep_headers): Choose the correct SOM magic number based + on the BFD's flags. + (som_bfd_fill_in_ar_symbols): Return false, not NULL on error. + +Sat Mar 12 09:46:09 1994 Ian Lance Taylor (ian@cygnus.com) + + * elf32-ppc.c: Renamed from elf32-powerpc.c. + start-sanitize-powerpc-netware + * nlm32-ppc.c: Renamed from nlm32-powerpc.c. + end-sanitize-powerpc-netware + * Makefile.in, configure.in: Corresponding changes. + +Fri Mar 11 22:27:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) + + * elf32-powerpc.c: Extensive changes to update to preliminary ABI. + +Fri Mar 11 00:34:59 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) + + * sunos.c (sunos_read_dynamic_info): Assume that dynamic info + is always located at the start of the data section to allow + recovery of the dynamic info from a stripped executable. + * ecoff.c (ecoff_styp_to_sec_flags): Handle STYP_PDATA, STYP_XDATA + and STYP_COMMENT. + +Wed Mar 9 17:17:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com) + + * libbfd-in.h: Remove alloca cruft. It was missing some necessary + cruft (like the #pragma alloca for AIX). + In addition to that problem, the C alloca calls xmalloc, which + means checking for being out of memory can't work right. The + following changes remove all uses of alloca from BFD. + * hosts/solaris2.h: Remove alloca cruft. + * som.c: Replace alloca with a fixed size auto array. + * aoutx.h, elfcode.h, nlmcode.h, bout.c, coff-alpha.c, ecoff.c, + ecofflink.c, elf32-hppa.c, elf32-mips.c, linker.c, reloc.c, som.c, + sunos.c: Replace alloca with malloc and appropriate error checking and + freeing. + * linker.c: Replace alloca with obstack_alloc. + * libbfd.h: Rebuilt. + +Tue Mar 8 12:10:38 1994 Ian Lance Taylor (ian@cygnus.com) + + * coff-mips.c (mips_relocate_section): Handle MIPS_R_LITERAL like + MIPS_R_GPREL. + +Sat Mar 5 14:08:54 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) + + * elf32-hppa.h, elfcode.h: Replace uses of Elf*_Half, Elf*_Word, + Elf*_Off typedefs by their expansion, the typedefs have been + removed from include/elf/internal.h. + * elfcode.h (bfd_section_from_shdr): Handle SHT_DYNAMIC section like + SHT_PROGBITS section. + +Thu Mar 3 20:03:39 1994 Jeffrey A. Law (law@snake.cs.utah.edu) + + * som.h (_PA_RISC_ID): Treat HOST_HPPAOSF just like HOST_HPPABSD. + +Wed Mar 2 13:28:06 1994 Jim Kingdon (kingdon@deneb.cygnus.com) + + * configure.host: Recognize i[34]86-sequent-*. + + * trad-core.c (trad_unix_core_file_p): A non-zero, not zero, + return from bfd_seek indicates an error. + New macro TRAD_CORE_DSIZE_INCLUDES_TSIZE to replace + TRAD_CORE_STACK_OFFSET. + * hosts/symmetry.h: Define TRAD_CORE_DSIZE_INCLUDES_TSIZE and + TRAD_CORE_USER_OFFSET but not HOST_STACK_OFFSET. + +Wed Mar 2 11:57:03 1994 Jeffrey A. Law (law@snake.cs.utah.edu) + + * som.[ch]: Do not include libhppa.h in som.c, instead include + it in som.h. + + * elf32-hppa.[ch]: Do not include libhppa.h in elf32-hppa.c, instead + include it in elf32-hppa.h. + + * som.c (log2): Return -1 on error rather than aborting. + (setup_sections): Bubble up an error from log2. + + * Changes to make HP C compiler happy in both traditional + and ANSI mode. + * som.c (hppa_som_gen_reloc_type): Use correct enum type for + field parameter. + (bfd_som_set_section_attributes): Use unsigned int rather than + unsigned char to avoid GNU-C extensions. + (bfd_som_attach_aux_hdr): Return a boolean to indicate success + or failure rather than aborting on failure. + + * som.h (bfd_som_set_section_attributes): Fix prototype to match + som.c changes. + (bfd_som_attach_aux_hdr): Add prototype. + (hppa_som-gen_reloc_type): Likewise. + + * elf32-hppa.c: Add a couple casts to make HP compiler happy. + (hppa_look_for_stubs_in_section): Do not return false on failure + until rest of code is ready to handle it. Abort for now. + +Tue Mar 1 18:33:59 1994 Jim Kingdon (kingdon@deneb.cygnus.com) + + * bfd-in2.h: Rebuilt. + +Tue Mar 1 13:06:53 1994 Kung Hsu (kung@mexican.cygnus.com) + + * i386os9k.c: use new functions bfd_set_error and bfd_get_error. + * Makefile.in: delete an extra blank. + * configure.in : Add i396os9k_vec. + +Mon Feb 28 15:41:01 1994 Kung Hsu (kung@mexican.cygnus.com) + + * config.bfd : Add i386-os9k. + * config/i386-os9k.mt : Newly add os9k target makefile. + + * i386os9k.c : new file to handle os9k format bfd. + * Makefile.in : Handle new file i386os9k.c + * targets.c : Add bfd_target_os9k_flavour and i386os9k_vec. + * cache.c : Initialize cache_sentinel to 0. + +Sun Feb 27 16:30:55 1994 Jeffrey A. Law (law@snake.cs.utah.edu) + + * elf32-hppa.c (mismatches, retval_mismatches): Fix mismatch + action in case where caller specified no argument relocation. + (hppa_elf_build_linker_stub): Try again to get the sym_ptr_ptr + right in the original relocation and the stub's relocation. + + * elf32-hppa.h (hppa_look_for_stub_in_section): Fix typo. Delete + unused symbols argument. + + * elf32-hppa.c (hppa_elf_stub_reloc): Accept asymbol ** rather + than asymbol * for original target symbol. All callers changed. + Set reloc->sym_ptr_ptr appropriately. + (hppa_elf_build_linker_stub): Set reloc->sym_ptr_ptr correctly. + (hppa_elf_look_for_stubs_in_section): No longer need symbols + argument. Use the output symbols when canonicalizing the relocs, + creating them if necessary. + + * linker.c (_bfd_generic_link_output_symbols): Do not + rebuild/clobber the output symbols if they already exist. + +Sun Feb 27 15:22:36 1994 Stan Shebs (shebs@andros.cygnus.com) + + * targets.c (BFD_SEND, BFD_SEND_FMT): Add debugging versions that + check all the pointer dereferences. Enabled via DEBUG_BFD_SEND. + * bfd-in2.h: Rebuilt. + + * srec.c (hex_value): Always set to a size of 256 bytes. + (srec_init): Cosmetic changes. + +Sun Feb 27 11:18:47 1994 Jeffrey A. Law (law@snake.cs.utah.edu) + + * elf32-hppa.c: Second half of major cleanup. More comments, + PARAMize and staticize rest of functions. Delete unused + functions. Delete unused/unnecessary arguments to some functions. + Group static vars together. Abort for bad errors until we have + error code propogation working. Work on spacing and indention. + Add FIXMEs for unresolved problems. Use enums rather than + #defines for lots of things. Merge two functions which build + linker stubs into a single function (so they can easily share a + ton of common code). + +Sat Feb 26 10:00:45 1994 Ian Lance Taylor (ian@cygnus.com) + + * reloc.c (_bfd_relocate_contents): Adjust handling of overflow to + avoid depending upon right shifts of signed numbers, and to + correct handling of src_mask with lower bits zero. + + * aoutx.h, archive.c: Add casts to avoid warnings from SVR4 cc. + * 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. + +Fri Feb 25 21:34:58 1994 Ian Lance Taylor (ian@cygnus.com) + + * elfcode.h: Don't include assert.h. + (swap_out_syms): Use BFD_ASSERT rather than assert. + + * linker.c (_bfd_generic_link_write_global_symbol): Add missing + break in switch. + + * hosts/i386v4.h (qsort, strtol): Remove incorrect and useless + declarations. + +Fri Feb 25 16:35:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu) + + * libhppa.h (hppa_rebuild_insn): Moved here from elf32-hppa.c. + + * 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. + + * format.c (bfd_check_format_matches): Initialize matching_vector + to keep gcc -Wall quiet. + + * elfcode.h (elf_slurp_reloca_table): Fix typo. + + * som.c (som_get_symtab_upper_bound): Use "sizeof (asymbol *)" + not "sizeof (som_symbol_type *)". + + * elfcode.h (elf_get_symtab_upper_bound): Use "sizeof (asymbol *)" + not "sizeof (asymbol"). Opps. + +Fri Feb 25 13:19:04 1994 Ted Lemon (mellon@pepper.ncd.com) + + * bfd.c (bfd_get_gp_size): Can't return gp value on an archive. + (bfd_set_gp_size): Can't set gp value on an archive. + +Fri Feb 25 12:57:00 1994 Steve Chamberlain (sac@jonny.cygnus.com) + + * srec.c (pass_over): Don't skip too many characters when + end of line seen. + +Fri Feb 25 11:41:57 1994 Ian Lance Taylor (ian@cygnus.com) + + * ecoff.c (ecoff_sizeof_headers): Align result to 16 byte + boundary. + +Thu Feb 24 07:13:22 1994 Jeffrey A. Law (law@snake.cs.utah.edu) + + * som.c (som_bfd_derive_misc_symbol_info): Derive symbol_info + field for absolute symbols in the same manner as undefined + and common symbols. + +Thu Feb 24 04:29:19 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) + + * elfcode.h (elf_core_file_p): Check for core file e_machine match + like in elf_object_p. + +Wed Feb 23 18:28:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu) + + * elfcode.h (alloca): Delete declaration. + + * som.c (som_prep_headers): Use CPU_PA_RISC1_0 for magic + number rather than HP9000S800_ID. Note som.c is careful + to make sure CPU_PA_RISC1_0 is always defined. + +Mon Feb 21 10:12:02 1994 Stan Shebs (shebs@andros.cygnus.com) + + * Makefile.in (targets.o, archures.o): Use ALL_CFLAGS to supply + flags to explicit compile actions. + +Mon Feb 21 09:50:06 1994 Ian Lance Taylor (ian@lisa.cygnus.com) + + * ecofflink.c (ecoff_write_symhdr): Set symhdr->magic here. + * 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. + + * hosts/hp300.h: Include ; don't declare free. + + * som.c (som_bfd_count_ar_symbols): Use a pointer and alloca + rather than an array of variable size. + (som_bfd_fill_in_ar_symbols): Likewise. + (som_bfd_ar_write_symbol_stuff): Likewise. + + * coff-alpha.c (alpha_relocate_section): Rewrite mask and shift + 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. + +Sun Feb 20 16:06:54 1994 Ian Lance Taylor (ian@lisa.cygnus.com) + + * linker.c (_bfd_generic_link_add_archive_symbols): Consider + symbols in the order they appear in the archive map. + +Sat Feb 19 03:17:32 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) + + * coff-alpha.c (reloc_nil): Add forward declaration, add missing + 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. + +Fri Feb 18 11:41:58 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) + + start-sanitize-powerpc-netware + Support for PowerPC NetWare. + * nlm32-powerpc.c: New file. + * 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. + +Thu Feb 17 15:29:55 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) + + * coffgen.c (coff_write_linenumbers): Always return a value. + + * elfcode.h (elf_slurp_symbol_table): Handle zero symbols + reasonably. Allocate x_symp using alloca. + + * elfcode.h (map_program_segments): ELF program header entries + must be sorted by load address. This used to generate the entries + in reverse order. + + * section.c (SEC_IN_MEMORY): Define. + (asection): Rename unused field otheruserdata to contents, and + make it char *. + (bfd_make_section_anyway): Initialize contents field to NULL. + (bfd_get_section_contents): If SEC_IN_MEMORY is set, get section + contents from contents field rather than from file. + * bfd-in2.h: Rebuilt. + +Thu Feb 17 08:30:53 1994 David J. Mackenzie (djm@thepub.cygnus.com) + + * bfd.c (bfd_get_error, bfd_set_error): New functions. + (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. + +Tue Feb 15 22:27:27 1994 Jeffrey A. Law (law@snake.cs.utah.edu) + + * som.c: Remove FIXMEs for things which have been dealt with. + +Tue Feb 15 19:39:24 1994 Ken Raeburn (raeburn@cujo.cygnus.com) + + * section.c (bfd_get_section_contents): Since this function reads + unrelocated contents, the section's raw size is always the one to + use for bounds checking. + + * linker.c (default_indirect_link_order): In assertion, compare + link_order size field against cooked size, not raw size, of input + section. + + * bout.c (b_out_get_reloc_upper_bound): For BSS section, just + return 0. + (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->addend falls between the current source offset and the + raw size of the input section. + + * config.bfd: Support i960 vxworks versions > 5.0 with coff, not + bout. Default with no version number is still bout. Support + explicit i960-coff target too. + + * bout.c: 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. + +Tue Feb 15 09:00:16 1994 Jeffrey A. Law (law@snake.cs.utah.edu) + + * som.c (som_bfd_prep_for_ar_write): Iterate through the SOM + symbols, not the BFD symbols. + (som_bfd_ar_write_symbol_stuff): Likewise. + Mon Feb 14 22:55:20 1994 Jeffrey A. Law (law@snake.cs.utah.edu) * som.c (som_slurp_symbol_table): Do not die if a BFD doesn't