diff options
author | Alan Modra <amodra@bigpond.net.au> | 2001-01-14 11:12:52 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2001-01-14 11:12:52 +0000 |
commit | 0491a74fad9e1823b6d8dec091257a1764980206 (patch) | |
tree | ba990224579b95b1ec8319d5393cec368a995f6a /bfd/elf64-hppa.c | |
parent | 6e4743fc45bdc0ff992b016397fae8c4d56cebdc (diff) | |
download | gdb-0491a74fad9e1823b6d8dec091257a1764980206.tar.gz |
Linux target variants for elfxx-hppa.
Diffstat (limited to 'bfd/elf64-hppa.c')
-rw-r--r-- | bfd/elf64-hppa.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c index 42dbf606023..465a2db40af 100644 --- a/bfd/elf64-hppa.c +++ b/bfd/elf64-hppa.c @@ -1166,8 +1166,15 @@ elf64_hppa_post_process_headers (abfd, link_info) i_ehdrp = elf_elfheader (abfd); - i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_HPUX; - i_ehdrp->e_ident[EI_ABIVERSION] = 1; + if (strcmp (bfd_get_target (abfd), "elf64-hppa-linux") == 0) + { + i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_LINUX; + } + else + { + i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_HPUX; + i_ehdrp->e_ident[EI_ABIVERSION] = 1; + } } /* Create function descriptor section (.opd). This section is called .opd @@ -2657,3 +2664,11 @@ const struct elf_size_info hppa64_elf_size_info = #define elf_backend_type_change_ok true #include "elf64-target.h" + +#undef TARGET_BIG_SYM +#define TARGET_BIG_SYM bfd_elf64_hppa_linux_vec +#undef TARGET_BIG_NAME +#define TARGET_BIG_NAME "elf64-hppa-linux" + +#define INCLUDED_TARGET_FILE 1 +#include "elf64-target.h" |