authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2021-05-07 09:39:55+02:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2021-05-11 12:33:47+02:00
log28a9e4c4aaff3a186c344d98d2a2bf918d20a13c
tree8afb326737d3cf588f63b220a7858f28a7195314
parentac546f56eb2b9fd50a69f1d0bda3d0d070b76f52

libc: Add workaround for #4926

This change was cherry-picked from an updated version of the sysdep folder contents, we're still shipping an outdated and incomplete set of files.

1 files changed, 3 insertions(+), 2 deletions(-)

lib/libc/glibc/sysdeps/i386/sysdep.h+3-2
...@@ -61,7 +61,7 @@ lose: SYSCALL_PIC_SETUP \...@@ -61,7 +61,7 @@ lose: SYSCALL_PIC_SETUP \
6161
62# define SETUP_PIC_REG(reg) \62# define SETUP_PIC_REG(reg) \
63 .ifndef GET_PC_THUNK(reg); \63 .ifndef GET_PC_THUNK(reg); \
64 .section .gnu.linkonce.t.GET_PC_THUNK(reg),"ax",@progbits; \64 .section .text.GET_PC_THUNK(reg),"axG",@progbits,GET_PC_THUNK(reg),comdat; \
65 .globl GET_PC_THUNK(reg); \65 .globl GET_PC_THUNK(reg); \
66 .hidden GET_PC_THUNK(reg); \66 .hidden GET_PC_THUNK(reg); \
67 .p2align 4; \67 .p2align 4; \
...@@ -97,8 +97,9 @@ GET_PC_THUNK(reg): \...@@ -97,8 +97,9 @@ GET_PC_THUNK(reg): \
9797
98# define SETUP_PIC_REG_STR(reg) \98# define SETUP_PIC_REG_STR(reg) \
99 ".ifndef " GET_PC_THUNK_STR (reg) "\n" \99 ".ifndef " GET_PC_THUNK_STR (reg) "\n" \
100 ".section .gnu.linkonce.t." GET_PC_THUNK_STR (reg) ",\"ax\",@progbits\n" \100 "section .text." GET_PC_THUNK_STR (reg) ",\"axG\",@progbits," \
101 ".globl " GET_PC_THUNK_STR (reg) "\n" \101 ".globl " GET_PC_THUNK_STR (reg) "\n" \
102 GET_PC_THUNK_STR (reg) ",comdat\n" \
102 ".hidden " GET_PC_THUNK_STR (reg) "\n" \103 ".hidden " GET_PC_THUNK_STR (reg) "\n" \
103 ".p2align 4\n" \104 ".p2align 4\n" \
104 ".type " GET_PC_THUNK_STR (reg) ",@function\n" \105 ".type " GET_PC_THUNK_STR (reg) ",@function\n" \