diff options
author | emaste <emaste@FreeBSD.org> | 2016-01-05 15:52:16 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2016-01-05 15:52:16 +0000 |
commit | a30b72d57510edb7c82952836b9c70c107879ef1 (patch) | |
tree | 265597f93435cab4a790bb5a47d7e93151319d8b /contrib/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp | |
parent | 8c46f725d5083f7e2c52a22367c441fc217ca7b1 (diff) | |
download | FreeBSD-src-a30b72d57510edb7c82952836b9c70c107879ef1.zip FreeBSD-src-a30b72d57510edb7c82952836b9c70c107879ef1.tar.gz |
rtld: populate DT_DEBUG iff DYNAMIC segment is writable
MIPS has/had a read-only DYNAMIC segment, and uses an extra level of
indirection (through MIPS_RLD_MAP) to locate the debugger rendezvous
data.
Some linkers (e.g. LLVM's lld) may produce MIPS binaries with a writable
DYNAMIC segment, which would allow us to eventually drop a special case.
Therefore, instead of hardcoding knowledge that DYNAMIC is not writable
on MIPS just check the permissions on the segment.
Reviewed by: kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D4791
Diffstat (limited to 'contrib/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp')
0 files changed, 0 insertions, 0 deletions