From 95cbae0b17d6066852371c499d07a140784287de Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 24 Jun 1999 20:01:43 +0000 Subject: [PATCH] *** empty log message *** --- bfd/elf-hppa.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h index 5392f783ea2..08523e31740 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 + } + +} -- 2.30.2