Skip to content

Commit 4f4c4ee

Browse files
sravnborgSam Ravnborg
authored andcommitted
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>
1 parent 782e3b3 commit 4f4c4ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎scripts/mod/modpost.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#define Elf_Shdr Elf32_Shdr
1818
#define Elf_Sym Elf32_Sym
1919
#define Elf_Addr Elf32_Addr
20-
#define Elf_Section Elf32_Section
20+
#define Elf_Section Elf32_Half
2121
#define ELF_ST_BIND ELF32_ST_BIND
2222
#define ELF_ST_TYPE ELF32_ST_TYPE
2323

@@ -31,7 +31,7 @@
3131
#define Elf_Shdr Elf64_Shdr
3232
#define Elf_Sym Elf64_Sym
3333
#define Elf_Addr Elf64_Addr
34-
#define Elf_Section Elf64_Section
34+
#define Elf_Section Elf64_Half
3535
#define ELF_ST_BIND ELF64_ST_BIND
3636
#define ELF_ST_TYPE ELF64_ST_TYPE
3737

0 commit comments

Comments
 (0)