mirror of
https://github.com/ziglang/zig.git
synced 2025-12-12 17:23:09 +00:00
glibc patch: inline x86-lp_size.h
I could have just included the file from upstream glibc, but it was too silly so I just inlined it. This patch could be dropped in a future glibc update if desired. If omitted it will cause easily solvable C compilation failures building glibc nonshared.
This commit is contained in:
parent
9e76385afc
commit
4c068c3be1
6
lib/libc/glibc/sysdeps/x86_64/sysdep.h
vendored
6
lib/libc/glibc/sysdeps/x86_64/sysdep.h
vendored
@ -20,7 +20,11 @@
|
|||||||
#define _X86_64_SYSDEP_H 1
|
#define _X86_64_SYSDEP_H 1
|
||||||
|
|
||||||
#include <sysdeps/x86/sysdep.h>
|
#include <sysdeps/x86/sysdep.h>
|
||||||
#include <x86-lp_size.h>
|
#ifdef __ASSEMBLER__
|
||||||
|
# define LP_SIZE 8
|
||||||
|
#else
|
||||||
|
# define LP_SIZE "8"
|
||||||
|
#endif
|
||||||
|
|
||||||
/* __CET__ is defined by GCC with Control-Flow Protection values:
|
/* __CET__ is defined by GCC with Control-Flow Protection values:
|
||||||
|
|
||||||
|
|||||||
6
lib/libc/glibc/sysdeps/x86_64/x32/sysdep.h
vendored
6
lib/libc/glibc/sysdeps/x86_64/x32/sysdep.h
vendored
@ -17,7 +17,11 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <sysdeps/x86_64/sysdep.h>
|
#include <sysdeps/x86_64/sysdep.h>
|
||||||
#include <x86-lp_size.h>
|
#ifdef __ASSEMBLER__
|
||||||
|
# define LP_SIZE 4
|
||||||
|
#else
|
||||||
|
# define LP_SIZE "4"
|
||||||
|
#endif
|
||||||
|
|
||||||
#undef LP_OP
|
#undef LP_OP
|
||||||
#undef ASM_ADDR
|
#undef ASM_ADDR
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user