Improve read-write .eh_frame check (#546)
authorFangrui Song <i@maskray.me>
Tue, 10 Mar 2020 11:36:09 +0000 (04:36 -0700)
committerGitHub <noreply@github.com>
Tue, 10 Mar 2020 11:36:09 +0000 (07:36 -0400)
commit8c50837f0b58ba5b2bcb1b424a2a4bfa01559fb2
treef395da55c9426a2a44c92464b90e267a5c3645cf
parent4a6414f2785a60f455c91fdd04f7745fe7fc11e0
Improve read-write .eh_frame check (#546)

llvm-objdump -h does not print BFD SEC_* constants like "READONLY",
so the check will consider .eh_frame writable.
clang 11 (since https://reviews.llvm.org/D73999) will error for mismatching section flags.

Use readelf -S and check "WA" instead.
configure.ac