mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
tools/nolibc: add elf.h
The UAPI header do already provide an elf.h implementation. Reexport it under its libc name. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Acked-by: Willy Tarreau <w@1wt.eu> Link: https://lore.kernel.org/r/20250416-nolibc-split-sys-v1-2-a069a3f1d145@linutronix.de Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
This commit is contained in:
parent
060525302b
commit
2b45ceb915
3 changed files with 17 additions and 0 deletions
|
@ -30,6 +30,7 @@ all_files := \
|
|||
crt.h \
|
||||
ctype.h \
|
||||
dirent.h \
|
||||
elf.h \
|
||||
errno.h \
|
||||
limits.h \
|
||||
nolibc.h \
|
||||
|
|
15
tools/include/nolibc/elf.h
Normal file
15
tools/include/nolibc/elf.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/* SPDX-License-Identifier: LGPL-2.1 OR MIT */
|
||||
/*
|
||||
* Shim elf.h header for NOLIBC.
|
||||
* Copyright (C) 2025 Thomas Weißschuh <thomas.weissschuh@linutronix.de>
|
||||
*/
|
||||
|
||||
#ifndef _NOLIBC_SYS_ELF_H
|
||||
#define _NOLIBC_SYS_ELF_H
|
||||
|
||||
#include <linux/elf.h>
|
||||
|
||||
/* make sure to include all global symbols */
|
||||
#include "nolibc.h"
|
||||
|
||||
#endif /* _NOLIBC_SYS_ELF_H */
|
|
@ -97,6 +97,7 @@
|
|||
#include "types.h"
|
||||
#include "sys.h"
|
||||
#include "ctype.h"
|
||||
#include "elf.h"
|
||||
#include "signal.h"
|
||||
#include "unistd.h"
|
||||
#include "stdio.h"
|
||||
|
|
Loading…
Add table
Reference in a new issue