zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 28a9e4c4aaff3a186c344d98d2a2bf918d20a13c (tree)
parent ac546f56eb2b9fd50a69f1d0bda3d0d070b76f52
Author: LemonBoy <thatlemon@gmail.com>
Date:   Fri,  7 May 2021 09:39:55 +0200

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.

Diffstat:
Mlib/libc/glibc/sysdeps/i386/sysdep.h | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/libc/glibc/sysdeps/i386/sysdep.h b/lib/libc/glibc/sysdeps/i386/sysdep.h @@ -61,7 +61,7 @@ lose: SYSCALL_PIC_SETUP \ # define SETUP_PIC_REG(reg) \ .ifndef GET_PC_THUNK(reg); \ - .section .gnu.linkonce.t.GET_PC_THUNK(reg),"ax",@progbits; \ + .section .text.GET_PC_THUNK(reg),"axG",@progbits,GET_PC_THUNK(reg),comdat; \ .globl GET_PC_THUNK(reg); \ .hidden GET_PC_THUNK(reg); \ .p2align 4; \ @@ -97,8 +97,9 @@ GET_PC_THUNK(reg): \ # define SETUP_PIC_REG_STR(reg) \ ".ifndef " GET_PC_THUNK_STR (reg) "\n" \ - ".section .gnu.linkonce.t." GET_PC_THUNK_STR (reg) ",\"ax\",@progbits\n" \ + "section .text." GET_PC_THUNK_STR (reg) ",\"axG\",@progbits," \ ".globl " GET_PC_THUNK_STR (reg) "\n" \ + GET_PC_THUNK_STR (reg) ",comdat\n" \ ".hidden " GET_PC_THUNK_STR (reg) "\n" \ ".p2align 4\n" \ ".type " GET_PC_THUNK_STR (reg) ",@function\n" \