scripts: check for .text.startup sections #18603

issue fanquake opened this issue on April 12, 2020
  1. fanquake commented at 11:08 AM on April 12, 2020: member

    From #18553:

    theuni

    Sidenote: we could potentially add a check for illegal instructions in the .text.startup section in one of our python binary checking tools. Though we'd have to create a per-arch blacklist/whitelist to define "illegal".

    laanwj

    My idea was to forbid .text.startup sections completely in all 'special' compilation units, e.g. those compiled with non-default instruction sets. I think that's easier to implement a check for than instruction white/blacklists.

  2. fanquake added the label Scripts and tools on Apr 12, 2020
  3. willcl-ark commented at 12:38 PM on November 3, 2022: member

    The section parsing seems straightforward, but is there a less rudimentary way to determine which compilation units have been compiled with special instruction sets than globbing the names like this: https://gist.github.com/willcl-ark/bcc4fffe2abf6760c95913f0c42127d5

  4. willcl-ark referenced this in commit dd31adde98 on Dec 12, 2022
  5. willcl-ark referenced this in commit dac949209d on Dec 13, 2022
  6. willcl-ark referenced this in commit 6664ef1f64 on Dec 13, 2022
  7. willcl-ark referenced this in commit c7c9e30e98 on Dec 13, 2022
  8. willcl-ark referenced this in commit 77456e7e06 on Dec 13, 2022
  9. willcl-ark referenced this in commit 0a2ccd4576 on Dec 13, 2022
  10. willcl-ark referenced this in commit 26d19d60e3 on Dec 13, 2022
  11. willcl-ark referenced this in commit 94573bbbae on Dec 15, 2022
  12. willcl-ark referenced this in commit 39cca32eef on Dec 15, 2022
  13. willcl-ark referenced this in commit 4ba1254422 on Jun 7, 2023
  14. willcl-ark referenced this in commit 3b8fbaa1e0 on Jun 7, 2023
  15. willcl-ark referenced this in commit 44af058e73 on Jun 7, 2023
  16. willcl-ark referenced this in commit 5fc7be082c on Jun 7, 2023
  17. willcl-ark referenced this in commit ed0e4ec56b on Jun 9, 2023
  18. willcl-ark referenced this in commit 6f7cecafe7 on Apr 17, 2024
  19. maflcko commented at 11:11 AM on December 3, 2024: member

    #26693 was closed


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me