Skip to content

Integrate ELF RELR and IFUNC safety with the TLS runtime stack - #35

Open
moloch-- wants to merge 7 commits into
feat/elf-tls-runtimefrom
feat/elf-integration
Open

moloch-- wants to merge 7 commits into
feat/elf-tls-runtimefrom
feat/elf-integration

Conversation

@moloch--

Copy link
Copy Markdown
Contributor

Summary

Local verification

Pinned Linux/amd64 Docker image: Go 1.26.6, Zig 0.14.0, GCC 12.2.

  • CGO_ENABLED=1 targeted integration fixtures passed: RELR root/native/recursive, local dynamic TLS root/native/recursive, initial-exec and external TLS rejection, and IFUNC/IRELATIVE rejection across all three loader paths.
  • CGO_ENABLED=0 targeted integration fixtures passed: RELR root/native/recursive, general TLS registration rejection, and IFUNC/IRELATIVE rejection across all three loader paths.
  • go test ./memmod ./native/internal/linuxmem ./internal/elfrelr ./internal/elftls -count=1 passed with both CGO modes.
  • Cross-compiled the integration test binary with CGO_ENABLED=0 for Linux ARMv7, 386, arm64, ppc64le, riscv64, and FreeBSD amd64/arm64 (with the documented PureGo fake-CGO flag).

This is a stacked integration PR targeting #30. The source PR branches remain unchanged.

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