aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-ppc.c
AgeCommit message (Collapse)AuthorFilesLines
1997-03-18 * bfd-in.h: Don't include obstack.h.Ian Lance Taylor1-491/+93
(struct bfd_hash_table): Change memory field to PTR. * bfd.c (struct _bfd): Change memory field to PTR. * bfd-in2.h: Rebuild. * libbfd-in.h (bfd_release): Declare as function, don't define as macro. * libbfd.h: Rebuild. * opncls.c: Include "objalloc.h" rather than "obstack.h". Use objalloc routines rather than obstack routines. (obstack_chunk_alloc, obstack_chunk_free): Don't define. (getpagesize): Don't define. (_bfd_new_bfd): Don't set _bfd_chunksize. (bfd_openr): Free new bfd and objalloc on failure. (bfd_fdopenr, bfd_openstreamr, bfd_openw): Likewise. (bfd_alloc_size): Remove. (bfd_release): New function. * hash.c: Include "objalloc.h" rather than "obstack.h". Use objalloc routines rather than obstack routines. (obstack_chunk_alloc, obstack_chunk_free): Don't define. * ecofflink.c: Include "objalloc.h" rather than "obstack.h". Use objalloc routines rather than obstack routines. (obstack_chunk_alloc, obstack_chunk_free): Don't define. (struct accumulate): Change memory to struct objalloc *. * liboasys.h (oasys_data_type): Remove oasys_obstack field. * dep-in.sed: Don't remove obstack.h from dependency list. * Makefile.in: Rebuild dependencies. (BFD_H_DEPS): Remove obstack.h. (install): Don't install obstack.h. * Many files: Don't include "obstack.h". * VERSION: Bump.
1996-07-17Removed bogus printfKim Knuttila1-13/+25
1996-04-19 * coff-ppc.c (record_toc): Add cast to avoid warning.Ian Lance Taylor1-8/+5
(ppc_allocate_toc_section): Likewise. (coff_ppc_relocate_section): Remove ANSI C string concatenation. (ppc_coff_reloc_type_lookup): Remove unreached code. * coffcode.h (coff_write_object_contents): Don't take the address of an array. * peicode.h (pe_print_idata): Add casts to avoid warning. (pe_print_edata): Likewise. (pe_print_reloc): Remove ANSI C string concatenation.
1996-04-18 * libcoff-in.h (struct coff_final_link_info): Add last_bf_indexIan Lance Taylor1-0/+1
and last_bf fields. * libcoff.h: Rebuild. * coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN symbols. (coff_swap_aux_out): Likewise. * peicode.h (coff_swap_aux_in): Likewise. (coff_swap_aux_out): Likewise. * coffgen.c (coff_pointerize_aux): Check endndx field for C_FCN symbols. * cofflink.c (_bfd_coff_final_link): Initialize last_bf_index field. (_bfd_coff_link_input_bfd): Check endndx field for C_FCN symbols. Fix up .bf endndx link fields. * coff-ppc.c (ppc_bfd_coff_final_link): Initialize last_bf_index field. * xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN symbols. PR 9467.
1996-03-29 * section.c (SEC_LINK_ONCE): Define.Ian Lance Taylor1-0/+12
(SEC_LINK_DUPLICATES): Define. (SEC_LINK_DUPLICATES_DISCARD): Define. (SEC_LINK_DUPLICATES_ONE_ONLY): Define. (SEC_LINK_DUPLICATES_SAME_SIZE): Define. (SEC_LINK_DUPLICATES_SAME_CONTENTS): Define. * bfd-in2.h: Rebuild. * coffcode.h (sec_to_styp_flags): If COFF_WITH_PE, turn SEC_LINK_ONCE into IMAGE_SCN_LNK_COMDAT. (styp_to_sec_flags): If COFF_WITH_PE, turn IMAGE_SCN_LNK_REMOVE into SEC_EXCLUDE. If IMAGE_SCN_LNK_COMDAT is set, set SEC_LINK_ONCE, and look through the symbol table for the setting for SEC_LINK_DUPLICATES. (coff_write_object_contents): If COFF_WITH_PE, if SEC_LINK_ONCE is set for a section, find the section symbol in the symbol table, and set the aux entry based on SEC_LINK_DUPLICATES. * coffgen.c (coff_print_symbol): Add a space before "checksum". * coff-arm.c (armcoff_big_vec): If COFF_WITH_PE is defined, add SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags. * coff-i386.c (i386coff_vec): Likewise. * coff-ppc.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise.
1996-03-27update copyrightsIan Lance Taylor1-1/+1
1996-03-27Remove SEC_LINKER_MARK, and add a linker_mark bitfield to the asectionIan Lance Taylor1-1/+1
structure instead.
1996-03-27 * coff-ppc.c (ppc_record_toc_entry): Put inside COFF_IMAGE_WITH_PEIan Lance Taylor1-32/+45
ifdef. Remove unused variables. (ppc_record_data_in_toc_entry): Ifdef out. Removed unused variables. (ppc_mark_symbol_as_glue): Put inside COFF_IMAGE_WITH_PE ifdef. (get_symbol_value): Ifdef out. (pe_ppc_reloc): Ifdef out. Remove unused variables. (coff_ppc_relocate_section): Remove unused variables. Make fprintf strings and argument types correspond. Put before_addr in DEBUG_RELOC ifdef. (ppc_reflo_reloc): Ifdef out. (ppc_addr32nb_reloc): Ifdef out. (ppc_coff_rtype2howto): Make fprintf strings and argument types correspond. (coff_ppc_rtype_to_howto): Likewise. (ppc_coff_swap_sym_in_hook): Remove unused variables.
1996-03-27 * section.c (SEC_LINKER_MARK): Define.Ian Lance Taylor1-6/+12
* bfd-in2.h: Rebuild. * aoutx.h (NAME(aout,final_link)): Mark sections included in the link. (aout_link_input_bfd): Don't link unmarked sections. * cofflink.c (_bfd_coff_final_link): Mark sections included in the link. (_bfd_coff_link_input_bfd): Don't link unmarked sections. * coff-ppc.c (ppc_bfd_coff_final_link): Mark sections included in the link. * elflink.h (elf_bfd_final_link): Mark sections included in the link. (elf_link_input_bfd): Don't link unmarked sections. * xcofflink.c (_bfd_xcoff_bfd_final_link): Mark sections included in the link. (xcoff_link_input_bfd): Don't link unmarked sections.
1996-01-29Removed a ppc hack from cofflink, promoted some types to libcoff-in.hKim Knuttila1-15/+620
1995-12-13Protected debugging code. (duh)Kim Knuttila1-3/+6
1995-12-12Fixes for .relocKim Knuttila1-5/+18
1995-12-01 * libbfd.c (bfd_malloc, bfd_realloc): New functions.Ian Lance Taylor1-1/+3
(bfd_zmalloc): Return PTR, not char *. Take size_t, not bfd_size_type. * libbfd-in.h (bfd_malloc, bfd_realloc): Declare. (bfd_zmalloc): Change declaration. * libbfd.h: Rebuild. * Many files: Use bfd_malloc and bfd_realloc rather than malloc and realloc. Don't set bfd_error_no_memory if they fail.
1995-12-01PowerPC DLL SupportKim Knuttila1-57/+117
1995-11-29 * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory ifIan Lance Taylor1-35/+134
obstack_alloc fails. (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish fails. * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails. * Many files: don't set bfd_error_no_memory if one of the above routines fails.
1995-11-16Reloc fixes for PowerPC PEKim Knuttila1-26/+151
1995-11-13Implemented IMGLUE reloc + dumpingKim Knuttila1-96/+321
1995-11-07First round ld support for PPC PEKim Knuttila1-256/+910
1995-09-27First round BFD for PE/PowerPCKim Knuttila1-0/+1469