Page MenuHomePhabricator

[CMAKE] Add the linker flags to make the relocated sections read only
AbandonedPublic

Authored by Fabien on Mar 6 2019, 15:20.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Summary

This is part of the binary hardening process.

Depends on D2657

Test Plan
make buildcmake && cd buildcmake
cmake -GNinja ..
ninja -v
../contrib/devtools/security-check.py src/bitcoind

Before the patch, the output of the security-check script would
contain 'RELRO`, no longer after the patch.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
cmake_hardening_relro
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 5165
Build 8393: Bitcoin ABC Buildbot (legacy)
Build 8392: arc lint + arc unit

Event Timeline

Fabien planned changes to this revision.Mar 8 2019, 12:55

Need an option to disable hardening

Fabien planned changes to this revision.Mar 13 2019, 14:52

Superseeded by D2687, can be removed when landed.