Check both failure cases:
- Use a glibc symbol from a version that is too new
- Use a symbol from a library that is not in the allowlist
And also check a conforming binary.
Adding a similar check for Windows PE can be done in a separate PR.
Check both failure cases:
And also check a conforming binary.
Adding a similar check for Windows PE can be done in a separate PR.
26 | + # there's no way to do this test for RISC-V at the moment; bionic's libc is 2.27 27 | + # and we allow all symbols from 2.27. 28 | + if 'riscv' in get_machine(cc): 29 | + self.skipTest("test not available for RISC-V") 30 | + 31 | + # emfd_create was introduced in GLIBC 2.27, so is newer than the upper limit of
s/emfd_create/memfd_create
Concept ACK - thanks for putting this together. Will actually test shortly.
I added a test for macOS if you wanted to pull that in as well: https://github.com/fanquake/bitcoin/commit/9e6e59b01e1e4e3325bab59cf97139b462b42651.
<!--a722867cd34abeea1fadc8d60700f111-->
Check both failure cases:
- Use a glibc symbol from a version that is too new
- Use a symbol from a library that is not in the allowlist
And also check a conforming binary.
Adding a similar check for Windows PE can be done in a separate PR.
I added a test for macOS if you wanted to pull that in as well: fanquake@9e6e59b.
Thanks ! I didn't mention macOS in the OP because I (mistakenly) thought we only had a symbol check for windows and linux. Good to have a test for that too.
I've fixed the comment and cherry-picked that commit.
(close/ropen was to test the IRC bot)
ACK ed1bbcefeaafef460b6e5609de85e13c12e0d2a4