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
lib/libc/glibc/sysdeps/x86_64/sysdep.h+5-1
| ... | ... | @@ -20,7 +20,11 @@ |
| 20 | 20 | #define _X86_64_SYSDEP_H 1 |
| 21 | 21 | |
| 22 | 22 | #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 |
| 24 | 28 | |
| 25 | 29 | /* __CET__ is defined by GCC with Control-Flow Protection values: |
| 26 | 30 | |
lib/libc/glibc/sysdeps/x86_64/x32/sysdep.h+5-1
| ... | ... | @@ -17,7 +17,11 @@ |
| 17 | 17 | <https://www.gnu.org/licenses/>. */ |
| 18 | 18 | |
| 19 | 19 | #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 |
| 21 | 25 | |
| 22 | 26 | #undef LP_OP |
| 23 | 27 | #undef ASM_ADDR |