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: unassignedb...@nondot.org
Reporter: rafael.espind...@gmail.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs