This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Treat .openbsd.randomdata as relro section
ClosedPublic

Authored by grimar on Dec 20 2016, 2:41 AM.

Details

Summary

That was requested by Mark Kettenis in llvm-dev:

"It is the intention that .openbsd.randomdata sections are made
read-only after initialization. The native (ld.bfd based) OpenBSD
toolchain accomplishes this by including .openbsd.randomdata into the
PT_GNU_RELRO segment."

He suggested diff code change, I added testcase.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar updated this revision to Diff 82077.Dec 20 2016, 2:41 AM
grimar retitled this revision from to [ELF] - Treat .openbsd.randomdata as relro section.
grimar updated this object.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar, evgeny777.
This revision was automatically updated to reflect the committed changes.