aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-hppa.h
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1999-06-24 20:01:43 +0000
committerJeff Law <law@redhat.com>1999-06-24 20:01:43 +0000
commit95cbae0b17d6066852371c499d07a140784287de (patch)
tree4dc594eed5d0a854e86a8a9b7c99f9e27b669d7f /bfd/elf-hppa.h
parent4517897e013104c34679aef9982de97aaab90334 (diff)
downloadgdb-95cbae0b17d6066852371c499d07a140784287de.zip
gdb-95cbae0b17d6066852371c499d07a140784287de.tar.gz
gdb-95cbae0b17d6066852371c499d07a140784287de.tar.bz2
*** empty log message ***
Diffstat (limited to 'bfd/elf-hppa.h')
-rw-r--r--bfd/elf-hppa.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h
index 5392f78..08523e3 100644
--- a/bfd/elf-hppa.h
+++ b/bfd/elf-hppa.h
@@ -545,3 +545,29 @@ elf_hppa_reloc_type_lookup (abfd, code)
}
return NULL;
}
+
+static void
+elf_hppa_final_write_processing (abfd, linker)
+ bfd *abfd;
+ boolean linker;
+{
+ int mach = bfd_get_mach (abfd);
+
+ elf_elfheader (abfd)->e_flags &= ~(EF_PARISC_ARCH | EF_PARISC_TRAPNIL
+ | EF_PARISC_EXT | EF_PARISC_LSB
+ | EF_PARISC_WIDE | EF_PARISC_NO_KABP
+ | EF_PARISC_LAZYSWAP);
+
+ if (mach == 10)
+ elf_elfheader (abfd)->e_flags |= EFA_PARISC_1_0;
+ else if (mach == 11)
+ elf_elfheader (abfd)->e_flags |= EFA_PARISC_1_1;
+ else if (mach == 20)
+ {
+ elf_elfheader (abfd)->e_flags |= EFA_PARISC_2_0;
+#if ARCH_SIZE == 64
+ elf_elfheader (abfd)->e_flags |= EF_PARISC_WIDE;
+#endif
+ }
+
+}