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 \
6161
6262# define SETUP_PIC_REG(reg) \
6363 .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; \
6565 .globl GET_PC_THUNK(reg); \
6666 .hidden GET_PC_THUNK(reg); \
6767 .p2align 4; \
......@@ -97,8 +97,9 @@ GET_PC_THUNK(reg): \
9797
9898# define SETUP_PIC_REG_STR(reg) \
9999 ".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," \
101101 ".globl " GET_PC_THUNK_STR (reg) "\n" \
102 GET_PC_THUNK_STR (reg) ",comdat\n" \
102103 ".hidden " GET_PC_THUNK_STR (reg) "\n" \
103104 ".p2align 4\n" \
104105 ".type " GET_PC_THUNK_STR (reg) ",@function\n" \