[llvm-bugs] [Bug 49846] New: LLD executable segfaults with ld.bfd linker script
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Apr 5 13:06:39 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=49846
Bug ID: 49846
Summary: LLD executable segfaults with ld.bfd linker script
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: bharathi.seshadri at gmail.com
CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com
Created attachment 24720
--> https://bugs.llvm.org/attachment.cgi?id=24720&action=edit
Linker script
bash-4.4$ ld --verbose > main.link
(Trim header and footer of main.link. See attached)
bash-4.4$ clang hello.c -fuse-ld=lld -Wl,-T -Wl,main.link -o hello
bash-4.4$ ./hello
Segmentation fault
bash-4.4$ clang --version
clang version 13.0.0 (https://github.com/llvm/llvm-project.git
3c19b4f34d6a2a2fb628a3db9225a5167e363234)
The issue can be worked around by passing -Wl,--no-rosegment
This issue was previously fixed in 2017
(https://bugs.llvm.org/show_bug.cgi?id=35265), but it appears to have regressed
again at some point between llvm 9.0 and llvm 11.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210405/6a910ef4/attachment.html>
More information about the llvm-bugs
mailing list