aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1996-01-12 20:31:05 +0000
committerMichael Meissner <gnu@the-meissners.org>1996-01-12 20:31:05 +0000
commit57081126b691c36eca36d7c362a89b591fa77cc3 (patch)
treea4d1a82023afa3f10a06be8929ba7ff744209558
parentb5ae84191310fad7720453da41fa86ec21590004 (diff)
downloadgdb-57081126b691c36eca36d7c362a89b591fa77cc3.zip
gdb-57081126b691c36eca36d7c362a89b591fa77cc3.tar.gz
gdb-57081126b691c36eca36d7c362a89b591fa77cc3.tar.bz2
Add PowerPC support for SHF_EXCLUDE, SHT_ORDERED
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-ppc.c18
2 files changed, 23 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 2dfb670..3637a4e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jan 12 15:27:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
+
+ * 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 <ian@cygnus.com>
* elf.c (_bfd_elf_print_private_bfd_data): Dump contents of
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index 2e56e25..5b3b8ab 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -1160,6 +1160,22 @@ ppc_elf_section_from_shdr (abfd, hdr, name)
}
+/* 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
dynamic object, but we're not including those sections. We have to
@@ -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"