From: Michael Meissner Date: Fri, 12 Jan 1996 20:31:05 +0000 (+0000) Subject: Add PowerPC support for SHF_EXCLUDE, SHT_ORDERED X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57081126b691c36eca36d7c362a89b591fa77cc3;p=binutils-gdb.git Add PowerPC support for SHF_EXCLUDE, SHT_ORDERED --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2dfb6703f87..3637a4e86cf 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +Fri Jan 12 15:27:59 1996 Michael Meissner + + * elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new + section flags for V.4 and eabi. + Fri Jan 12 13:59:16 1996 Ian Lance Taylor * elf.c (_bfd_elf_print_private_bfd_data): Dump contents of diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 2e56e256d4d..5b3b8abdada 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -1159,6 +1159,22 @@ ppc_elf_section_from_shdr (abfd, hdr, name) return true; } + +/* Set up any other section flags and such that may be necessary. */ + +boolean +ppc_elf_fake_sections (abfd, shdr, asect) + bfd *abfd; + Elf32_Internal_Shdr *shdr; + asection *asect; +{ + if ((asect->flags & SEC_EXCLUDE) != 0) + shdr->sh_flags |= SHF_EXCLUDE; + + if ((asect->flags & SEC_SORT_ENTRIES) != 0) + shdr->sh_type = SHT_ORDERED; +} + /* Adjust a symbol defined by a dynamic object and referenced by a regular object. The current definition is in some section of the @@ -2301,6 +2317,7 @@ ppc_elf_relocate_section (output_bfd, info, input_bfd, input_section, return ret; } + #define TARGET_LITTLE_SYM bfd_elf32_powerpcle_vec #define TARGET_LITTLE_NAME "elf32-powerpcle" #define TARGET_BIG_SYM bfd_elf32_powerpc_vec @@ -2330,5 +2347,6 @@ ppc_elf_relocate_section (output_bfd, info, input_bfd, input_section, #define elf_backend_size_dynamic_sections ppc_elf_size_dynamic_sections #define elf_backend_finish_dynamic_symbol ppc_elf_finish_dynamic_symbol #define elf_backend_finish_dynamic_sections ppc_elf_finish_dynamic_sections +#define elf_backend_fake_sections ppc_elf_fake_sections #include "elf32-target.h"