URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1150 |
Rev 1244 |
Line 1... |
Line 1... |
#ifndef _LINUX_ELF_H
|
#ifndef _LINUX_ELF_H
|
#define _LINUX_ELF_H
|
#define _LINUX_ELF_H
|
|
|
|
#if HAVE_CONFIG_H
|
|
#include <config.h>
|
|
#endif
|
|
|
|
#ifdef WORDS_BIGENDIAN
|
|
#define ELF_SHORT_H
|
|
#define ELF_LONG_H
|
|
#else
|
/* Load a short int from the following tables with big-endian formats */
|
/* Load a short int from the following tables with big-endian formats */
|
#define ELF_SHORT_H(ps) ((((unsigned short)(ps) >> 8) & 0xff) |\
|
#define ELF_SHORT_H(ps) ((((unsigned short)(ps) >> 8) & 0xff) |\
|
(((unsigned short)(ps) << 8) & 0xff00))
|
(((unsigned short)(ps) << 8) & 0xff00))
|
|
|
/* Load a long int from the following tables with big-endian formats */
|
/* Load a long int from the following tables with big-endian formats */
|
#define ELF_LONG_H(ps) ((((unsigned long)(ps) >> 24) & 0xff) |\
|
#define ELF_LONG_H(ps) ((((unsigned long)(ps) >> 24) & 0xff) |\
|
(((unsigned long)(ps) >> 8) & 0xff00)|\
|
(((unsigned long)(ps) >> 8) & 0xff00)|\
|
(((unsigned long)(ps) << 8) & 0xff0000)|\
|
(((unsigned long)(ps) << 8) & 0xff0000)|\
|
(((unsigned long)(ps) << 24) & 0xff000000))
|
(((unsigned long)(ps) << 24) & 0xff000000))
|
|
#endif
|
|
|
typedef unsigned long Elf32_Addr;
|
typedef unsigned long Elf32_Addr;
|
typedef unsigned short Elf32_Half;
|
typedef unsigned short Elf32_Half;
|
typedef unsigned long Elf32_Off;
|
typedef unsigned long Elf32_Off;
|
typedef long Elf32_Sword;
|
typedef long Elf32_Sword;
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.