[PATCH] Fix section type of .eh_frame on Linux x86_64

Fangrui Song maskray@google.com
Wed Mar 11 21:27:13 GMT 2020


Clang since https://reviews.llvm.org/D73999 will error for the wrong
sh_type.
---
 sysdeps/unix/sysv/linux/x86_64/sigaction.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysdeps/unix/sysv/linux/x86_64/sigaction.c b/sysdeps/unix/sysv/linux/x86_64/sigaction.c
index c58a77c5c6..3b730bc9e3 100644
--- a/sysdeps/unix/sysv/linux/x86_64/sigaction.c
+++ b/sysdeps/unix/sysv/linux/x86_64/sigaction.c
@@ -80,7 +80,7 @@ asm									\
    "	movq $" #syscall ", %rax\n"					\
    "	syscall\n"							\
    ".LEND_" #name ":\n"							\
-   ".section .eh_frame,\"a\",@progbits\n"				\
+   ".section .eh_frame,\"a\",@unwind\n"					\
    ".LSTARTFRAME_" #name ":\n"						\
    "	.long .LENDCIE_" #name "-.LSTARTCIE_" #name "\n"		\
    ".LSTARTCIE_" #name ":\n"						\
-- 
2.25.1.481.gfbce0eb801-goog


More information about the Libc-alpha mailing list