BSD: Use elf.h from os/kernel
Platform-dependant defines for Elf_* Change-Id: Ib86554eb497d20e60ad7c75de4321d5b516ad88c Reviewed-on: https://review.haiku-os.org/c/1635 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
6967695c4e
commit
3ddf0bbc29
@ -47,7 +47,7 @@
|
|||||||
#ifdef _BSD_SOURCE
|
#ifdef _BSD_SOURCE
|
||||||
|
|
||||||
|
|
||||||
#include <sys/elf.h>
|
#include <os/kernel/elf.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Flags that describe the origin of the entries in Dl_serinfo.
|
* Flags that describe the origin of the entries in Dl_serinfo.
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2016 Haiku, Inc. All rights reserved.
|
* Copyright 2002-2019 Haiku, Inc. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef _ELF_H
|
#ifndef _ELF_H
|
||||||
#define _ELF_H
|
#define _ELF_H
|
||||||
|
|
||||||
|
|
||||||
#include <SupportDefs.h>
|
#include <BeBuild.h>
|
||||||
#include <ByteOrder.h>
|
#include <ByteOrder.h>
|
||||||
|
#include <SupportDefs.h>
|
||||||
|
|
||||||
|
|
||||||
typedef uint32 Elf32_Addr;
|
typedef uint32 Elf32_Addr;
|
||||||
@ -28,6 +29,16 @@ typedef int64 Elf64_Sxword;
|
|||||||
|
|
||||||
typedef Elf64_Half Elf64_Versym;
|
typedef Elf64_Half Elf64_Versym;
|
||||||
|
|
||||||
|
#if B_HAIKU_32_BIT
|
||||||
|
#define Elf_Addr Elf32_Addr
|
||||||
|
#define Elf_Phdr Elf32_Phdr
|
||||||
|
#define Elf_Half Elf32_Half
|
||||||
|
#elif B_HAIKU_64_BIT
|
||||||
|
#define Elf_Addr Elf64_Addr
|
||||||
|
#define Elf_Phdr Elf64_Phdr
|
||||||
|
#define Elf_Half Elf64_Half
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*** ELF header ***/
|
/*** ELF header ***/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user