diff options
author | Jeff Law <law@redhat.com> | 1999-06-24 20:01:43 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1999-06-24 20:01:43 +0000 |
commit | 95cbae0b17d6066852371c499d07a140784287de (patch) | |
tree | 4dc594eed5d0a854e86a8a9b7c99f9e27b669d7f | |
parent | 4517897e013104c34679aef9982de97aaab90334 (diff) | |
download | gdb-95cbae0b17d6066852371c499d07a140784287de.zip gdb-95cbae0b17d6066852371c499d07a140784287de.tar.gz gdb-95cbae0b17d6066852371c499d07a140784287de.tar.bz2 |
*** empty log message ***
-rw-r--r-- | bfd/elf-hppa.h | 26 |
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 + } + +} |