* peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 3061ae18227464eb0769b03c463f6e345f528416..346d02218944975868dcdef540824d01c7186c99 100644 (file)
@@ -1,3 +1,175 @@
+2001-02-13  David Mosberger  <davidm@hpl.hp.com>
+
+       * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
+       as _bfd_XXi_only_swap_filehdr_out.
+       (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
+       pe->force_minimum_alignment to TRUE.
+       (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
+       PEI_TARGET_SUBSYSTEM.
+       (pe_print_private_bfd_data): Call
+       _bfd_XX_print_private_bfd_data_common() instead of
+       _bfd_pe_print_private_bfd_data_common().
+       (pe_bfd_copy_private_bfd_data): Call
+       _bfd_XX_bfd_copy_private_bfd_data_common() instead of
+       _bfd_pe_bfd_copy_private_bfd_data_common().
+       (coff_bfd_copy_private_section_data): Define as
+       _bfd_XX_bfd_copy_private_section_data instead of
+       _bfd_pe_bfd_copy_private_section_data.
+       (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
+       of a _bfd_pe_get_symbol_info.
+
+       * peigen.c: Delete.
+
+       * peXXigen.c: Renamed from peigen.c.
+       (COFF_WITH_XX): Define this macro (will get expanded into
+       COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
+       compiled as peigen.c or pepigen.c.
+       [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
+       define the canonical PEP structures and definitions.
+       (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
+       effect, enforce minimum file and section alignments.  If
+       extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
+       pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
+       so, by default, this is a no-op).
+
+       * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
+       (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
+       _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
+       _bfd_pefoo if it's not defined.  Use these macros to define
+       coff swap macros.
+
+       * libcoff.h (pe_tdata): Add members target_subsystem and
+       force_minimum_alignment.
+
+       * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
+       COFF_WITH_pep.
+       (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
+
+       * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
+       peigen.lo.
+
+       * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
+       (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
+       PEPAOUTHDR.
+
+       * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
+       (BFD64_BACKENDS_CFILES): Mention pepigen.c
+       (peigen.c): Add rule to generate from peXXigen.c.
+       (pepigen.c): Ditto.
+       (pepigen.lo): List dependencies for pepigen.lo.
+
+2001-02-13  Alan Modra  <alan@linuxcare.com.au>
+
+       * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$.  If
+       $global$ referenced but not defined, set its value here.
+
+2001-02-09  Bo Thorsen  <bo@suse.de>
+
+       * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
+       alignment to 3.
+       (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
+       and relocation.
+       (elf64_x86_64_relocate_section): Fix formatting.
+       (elf64_x86_64_relocate_section): Fix addend for relocation of
+       R_X86_64_(8|16|32|PC8|PC16|PC32).
+
+Mon Feb 12 17:46:24 CET 2001  Jan Hubicka  <jh@suse.cz>
+
+       * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
+
+2001-02-11  H.J. Lu  <hjl@gnu.org>
+
+       * elflink.h (elf_bfd_final_link): Use file_align for STMTAB
+       alignment.
+
+2001-02-11  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
+
+       * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
+       from 2000-10-13.  Do not add the symbol's value for R_MIPS_REL32
+       relocations against dynsym symbols.
+
+       * elf32-mips.c (elf_mips_howto_table): Fix the comment on
+       the R_MIPS_26 relocation.
+       (mips_elf_calculate_relocation): Use (p + 4) instead of p for
+       the R_MIPS_26 relocation.
+       (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
+       relocation.
+       * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
+       the R_MIPS_26 relocation.
+       (mips_elf64_howto_table_rela): Likewise.
+
+       * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
+       member to mark symbols that have non-CALL relocations against
+       them.
+       (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
+       (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
+       R_MIPS_GOT16.
+       (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
+       non-CALL relocation against it is encountered.
+       (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
+       (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
+       no_fn_stub is not set.
+
+       * elf32-mips.c (mips_elf_output_extsym): Get the output section
+       information from the real symbol for indirect ones.
+       Check no_fn_stub to find out if a symbol has a function stub
+       indeed.
+
+2001-02-11  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
+
+       * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
+       * Makefile.in: Regenerate.
+
+2001-02-09  David Mosberger  <davidm@hpl.hp.com>
+
+       * elfxx-ia64.c (is_unwind_section_name): New function.  Returns
+       true if section name is an unwind table section name.
+       (elfNN_ia64_additional_program_headers): Count each unwind section
+       separately.
+       (elfNN_ia64_modify_segment_map): Install one unwind program header
+       for each unwind separate section.  Note: normally the linker
+       script merges the unwind sections that go into a single segment,
+       so this still generates at most one unwind program header per
+       segment.
+
+       * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
+       name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
+       (elfNN_ia64_fake_sections): Mark sections with names that start
+       with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
+       unwind section.
+
+       * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
+       Use it to make sh_info in unwind section point to the text section
+       it applies to.
+
+2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
+
+       * Makefile.am: Add linux target for S/390.
+       * archures.c: Likewise.
+       * bfd-in2.h: Likewise.
+       * config.bfd: Likewise.
+       * configure.in: Likewise.
+       * elf.c: Likewise.
+       * libbfd.h: Likewise.
+       * targets.c: Likewise.
+       * cpu-s390.c: New file.
+       * elf32-s390.c: New file.
+       * elf64-s390.c: New file.
+
+2001-02-09  Nick Clifton  <nickc@redhat.com>
+
+       * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
+       ImageBase.  This has already been done by coff_swap_hdr_in.
+
+2001-02-09  Jakub Jelinek  <jakub@redhat.com>
+
+       * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
+
+2001-02-09  Jakub Jelinek  <jakub@redhat.com>
+
+       * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
+       (sparc64_elf_relocate_section): Likewise.
+
 2001-02-09  Mark Kettenis  <kettenis@gnu.org>
 
        * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
        * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
        * libbfd.h (bfd_target_vector): Likewise.
        * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
-        make static; create pointer reference named bfd_target_vector.
+       make static; create pointer reference named bfd_target_vector.
        (_bfd_target_vector_entries): Calculate this based on the array
        typed _bfd_target_vector.
 
        * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
        is has the SEC_HAS_CONTENTS flag set.
 
-2000-09-28  Örjan Friberg  <orjanf@axis.com>
+2000-09-28  Vrjan Friberg  <orjanf@axis.com>
            Hans-Peter Nilsson  <hp@axis.com>
 
        * aout-cris.c (N_TXTADDR): Define.
 
        * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
 
-2000-05-03  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
+2000-05-03  Martin v. Lvwis  <loewis@informatik.hu-berlin.de>
 
        * elflink.h (elf_link_add_object_symbols): Reset dynindx for
        hidden and internal symbols.
This page took 0.029361 seconds and 4 git commands to generate.