From e7894f6b5daf4ae6b8881520a4f59aa68ceaa044 Mon Sep 17 00:00:00 2001 From: Kim Knuttila Date: Fri, 19 Jan 1996 00:16:31 +0000 Subject: [PATCH] Numerous PowerPC PE fixes --- bfd/ChangeLog | 23 +++++++++++++++++++++++ bfd/coffcode.h | 4 ++++ 2 files changed, 27 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index dc00ab49e6..3832d1097e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,26 @@ +Thu Jan 18 18:25:34 1996 Kim Knuttila + + * coff-ppc.c (coff_ppc_relocate_section): changed TOCDEFN relocs. + (coff_ppc_relocate_section): Handle special values for gcc built dlls. + (dump_toc): fix diagnosing code to identify out-of-toc-bounds entries. + Also begin the toc at 4 as an eye catcher ('31313131' marks the first + toc entry in an objdump) for now. + (ppc_do_last, ppc_get_last): New function - needed to save processing + the toc owner to the end. + (ppc_coff_swap_sym_in_hook): Removed an incorrect hack for doing the + toc owner last. + + * cofflink.c (_bfd_coff_final_link): Added a new hack to keep the + toc owner from being done till last. Must define POWERPC_LE_PC + to enable it. + + * coffcode.h (coff_set_alignment_hook): alignment setting for .stab + + * peicode.h (coff_swap_scnhdr_out): set section flags for stab/str + to INFO. + (coff_swap_aouthdr_out): Removed a non-working hack for computing the + SizeOfImage for PowerPC. Ignore the size of the .junk section. + Thu Jan 18 17:42:12 1996 Ian Lance Taylor * elfcore.h: Include before . diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 1eb9ba8202..069acda5b6 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -985,6 +985,10 @@ coff_set_alignment_hook (abfd, section, scnhdr) { section->alignment_power = 1; } + else if (strncmp (section->name, ".stab", 5) == 0) + { + section->alignment_power = 2; + } #endif } #undef ALIGN_SET