diff options
| author | Mike Frysinger <vapier@gentoo.org> | 2015-08-18 03:28:01 -0400 |
|---|---|---|
| committer | Michal Simek <michal.simek@xilinx.com> | 2015-09-10 00:54:15 -0400 |
| commit | b14132797d8041a42e03f4ffa1e722da1425adfb (patch) | |
| tree | c94877001c4925aabb7536acf4d2d9e92b677615 /arch/microblaze/include/uapi | |
| parent | b8889c4fc6ba03e289cec6a4d692f6f080a55e53 (diff) | |
elf-em.h: move EM_MICROBLAZE to the common header
The linux/audit.h header uses EM_MICROBLAZE in order to define
AUDIT_ARCH_MICROBLAZE, but it's only available in the microblaze
asm headers. Move it to the common elf-em.h header so that the
define can be used on non-microblaze systems. Otherwise we get
build errors that EM_MICROBLAZE isn't defined when we try to use
the AUDIT_ARCH_MICROBLAZE symbol.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze/include/uapi')
| -rw-r--r-- | arch/microblaze/include/uapi/asm/elf.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/microblaze/include/uapi/asm/elf.h b/arch/microblaze/include/uapi/asm/elf.h index be1731d5e2fa..e9bcdb6e0086 100644 --- a/arch/microblaze/include/uapi/asm/elf.h +++ b/arch/microblaze/include/uapi/asm/elf.h | |||
| @@ -11,12 +11,13 @@ | |||
| 11 | #ifndef _UAPI_ASM_MICROBLAZE_ELF_H | 11 | #ifndef _UAPI_ASM_MICROBLAZE_ELF_H |
| 12 | #define _UAPI_ASM_MICROBLAZE_ELF_H | 12 | #define _UAPI_ASM_MICROBLAZE_ELF_H |
| 13 | 13 | ||
| 14 | #include <linux/elf-em.h> | ||
| 15 | |||
| 14 | /* | 16 | /* |
| 15 | * Note there is no "official" ELF designation for Microblaze. | 17 | * Note there is no "official" ELF designation for Microblaze. |
| 16 | * I've snaffled the value from the microblaze binutils source code | 18 | * I've snaffled the value from the microblaze binutils source code |
| 17 | * /binutils/microblaze/include/elf/microblaze.h | 19 | * /binutils/microblaze/include/elf/microblaze.h |
| 18 | */ | 20 | */ |
| 19 | #define EM_MICROBLAZE 189 | ||
| 20 | #define EM_MICROBLAZE_OLD 0xbaab | 21 | #define EM_MICROBLAZE_OLD 0xbaab |
| 21 | #define ELF_ARCH EM_MICROBLAZE | 22 | #define ELF_ARCH EM_MICROBLAZE |
| 22 | 23 | ||
