[llvm-bugs] [Bug 33819] New: Round executable PT_LOAD to page size and pad it traps
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jul 17 09:33:03 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33819
Bug ID: 33819
Summary: Round executable PT_LOAD to page size and pad it traps
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: rafael.espindola at gmail.com
CC: llvm-bugs at lists.llvm.org
When not using a linker script with SECTIONS we should probably round the size
of executable PT_LOAD to a page size and pad it with traps.
The reasoning is that if we don't do it any tool editing the file can remove
the traps.
Currently even lld will put non SHF_ALLOC bits if the executable PT_LOAD is at
the end.
There was an old attempt at it in D33630. We can hopefully make it simpler now.
--
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/20170717/8fad007a/attachment.html>
More information about the llvm-bugs
mailing list