Skip to content

hardening#4

Merged
gms1 merged 2 commits intomainfrom
feature/hardening
Mar 28, 2026
Merged

hardening#4
gms1 merged 2 commits intomainfrom
feature/hardening

Conversation

@gms1
Copy link
Copy Markdown
Owner

@gms1 gms1 commented Mar 28, 2026

  • Linux hardening flags (all builds): -fstack-protector-strong - Stack canary protection -fPIC - Position Independent Code -Wl,-z,relro,-z,now - Full RELRO (Read-only GOT)

  • Linux Release-only flags (via configurations.Release):

    _FORTIFY_SOURCE=2 - Buffer overflow detection -fcf-protection=full - Control Flow Integrity (Intel CET)

  • macOS hardening flags (all builds):

    -fstack-protector-strong in OTHER_CFLAGS

  • Windows hardening flags (all builds):

    BufferSecurityCheck: "true" (/GS) ControlFlowGuard: "Guard" (/guard:cf) /DYNAMICBASE - ASLR support /NXCOMPAT - DEP/NX bit support

  • Windows Release-only flags:

    /sdl - Additional security checks

gms1 added 2 commits March 28, 2026 09:36
- Linux hardening flags (all builds):
  -fstack-protector-strong - Stack canary protection
  -fPIC - Position Independent Code
  -Wl,-z,relro,-z,now - Full RELRO (Read-only GOT)

- Linux Release-only flags (via configurations.Release):

  _FORTIFY_SOURCE=2 - Buffer overflow detection
  -fcf-protection=full - Control Flow Integrity (Intel CET)

- macOS hardening flags (all builds):

  -fstack-protector-strong in OTHER_CFLAGS

- Windows hardening flags (all builds):

  BufferSecurityCheck: "true" (/GS)
  ControlFlowGuard: "Guard" (/guard:cf)
  /DYNAMICBASE - ASLR support
  /NXCOMPAT - DEP/NX bit support

- Windows Release-only flags:

  /sdl - Additional security checks
The -fcf-protection=full flag is now conditional on target_arch=='x64'
to prevent build failures on ARM64 architectures (Intel CET is
x86-only).
@gms1 gms1 merged commit d4e7a84 into main Mar 28, 2026
54 of 55 checks passed
@gms1 gms1 deleted the feature/hardening branch March 28, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant