diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2012-06-04 22:40:14 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-06-05 21:40:15 +0200 |
commit | f324a85e8b9ed5efb6c135a2c76df2347300f100 (patch) | |
tree | 281ac0d074e2fb369dc9aeaa86d80c3e69741e24 /scripts/mod | |
parent | 902b4984583a30a3faf6c4e749d365da3b9cc020 (diff) | |
download | barebox-f324a85e8b9ed5efb6c135a2c76df2347300f100.tar.gz barebox-f324a85e8b9ed5efb6c135a2c76df2347300f100.tar.xz |
kbuild: Use Elfnn_Half as replacement for Elfnn_Section
The Elfnn_Section is not available on all platforms,
noteworthy are cygwin.
Use the safe replacement _Half.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/mod')
-rw-r--r-- | scripts/mod/modpost.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mod/modpost.h b/scripts/mod/modpost.h index 0c23259836..497d614118 100644 --- a/scripts/mod/modpost.h +++ b/scripts/mod/modpost.h @@ -17,7 +17,7 @@ #define Elf_Shdr Elf32_Shdr #define Elf_Sym Elf32_Sym #define Elf_Addr Elf32_Addr -#define Elf_Section Elf32_Section +#define Elf_Section Elf32_Half #define ELF_ST_BIND ELF32_ST_BIND #define ELF_ST_TYPE ELF32_ST_TYPE @@ -31,7 +31,7 @@ #define Elf_Shdr Elf64_Shdr #define Elf_Sym Elf64_Sym #define Elf_Addr Elf64_Addr -#define Elf_Section Elf64_Section +#define Elf_Section Elf64_Half #define ELF_ST_BIND ELF64_ST_BIND #define ELF_ST_TYPE ELF64_ST_TYPE |