[ELF] - Disable relro when -omagic specified.
authorGeorge Rimar <grimar@accesssoftek.com>
Sat, 3 Dec 2016 07:09:28 +0000 (07:09 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Sat, 3 Dec 2016 07:09:28 +0000 (07:09 +0000)
commitd250618c3e7538a78d28cec0189ac23559b2d5a2
tree61e9ea9885726f8de42f3fd5310ef4be262f34d3
parent8e7498976aa3245b64f40000ab277e0bdaf1a538
[ELF] - Disable relro when -omagic specified.

--omagic is an option to create old-fashioned executables in which
.text segments are writable. Today, the option is still in use to
create special-purpose programs such as boot loaders. It doesn't
make sense to create PT_GNU_RELRO for such executables.

DIfferential revision: https://reviews.llvm.org/D27297

llvm-svn: 288579
lld/ELF/Driver.cpp
lld/test/ELF/relro-omagic.s [new file with mode: 0644]