[llvm-bugs] [Bug 48549] New: Should LLD not set the RELRO program header when targeting -maarch64elf?
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Dec 17 12:59:44 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48549
Bug ID: 48549
Summary: Should LLD not set the RELRO program header when
targeting -maarch64elf?
Product: lld
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: ndesaulniers at google.com
CC: i at maskray.me, kristof.beyls at arm.com,
llvm-bugs at lists.llvm.org, maskray at google.com,
smithp352 at googlemail.com, srhines at google.com
Blocks: 4068
In
https://lore.kernel.org/lkml/20201214231827.GG8873@bubble.grove.modra.org/
Alan Modra notes about BFD:
The default linker emulation for an aarch64-linux ld.bfd is
-maarch64linux, the default for an aarch64-elf linker is
-maarch64elf. They are not equivalent. If you choose -maarch64elf
you get an emulation that doesn't support -z relro.
Should LLD not set the RELRO program header when targeting -maarch64elf to
better match compatibility with GNU BFD?
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=4068
[Bug 4068] [Meta] Compiling the Linux kernel with clang
--
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/20201217/2e974f3e/attachment.html>
More information about the llvm-bugs
mailing list