authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-10-13 18:01:50-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-06-05 22:43:53-07:00
log4c068c3be1e8501ba85d4b98f6b869474fc967df
tree6cb49c52e97df89515ba3ccacdbb102504539626
parent9e76385afcc341f7366c733b28efb88f8bdd33d8

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.

2 files changed, 10 insertions(+), 2 deletions(-)

lib/libc/glibc/sysdeps/x86_64/sysdep.h+5-1
......@@ -20,7 +20,11 @@
2020#define _X86_64_SYSDEP_H 1
2121
2222#include <sysdeps/x86/sysdep.h>
23#include <x86-lp_size.h>
23#ifdef __ASSEMBLER__
24# define LP_SIZE 8
25#else
26# define LP_SIZE "8"
27#endif
2428
2529/* __CET__ is defined by GCC with Control-Flow Protection values:
2630
lib/libc/glibc/sysdeps/x86_64/x32/sysdep.h+5-1
......@@ -17,7 +17,11 @@
1717 <https://www.gnu.org/licenses/>. */
1818
1919#include <sysdeps/x86_64/sysdep.h>
20#include <x86-lp_size.h>
20#ifdef __ASSEMBLER__
21# define LP_SIZE 4
22#else
23# define LP_SIZE "4"
24#endif
2125
2226#undef LP_OP
2327#undef ASM_ADDR