Skip to content

Conversation

davidlattimore
Copy link
Owner

@davidlattimore davidlattimore commented Mar 24, 2025

Fixes #576

The ELF spec says that GLOB_DAT resolves to the address of the symbol and
doesn't mention applying any addend. Some runtimes do apply an addend, but we
can't rely on that. So only use GLOB_DAT for GOT entries, which don't have an
addend. For other absolute symbol relocations, use R_x86_64_64.

Fixes #576
@davidlattimore davidlattimore changed the title Add test for data pointers to data with addends Only use GLOB_DAT for GOT entries Mar 24, 2025
@davidlattimore davidlattimore merged commit 735e8ab into main Mar 24, 2025
18 checks passed
@davidlattimore davidlattimore deleted the push-vxzkoznslzso branch March 24, 2025 07:50
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.

SIGSEGV (Address boundary error) in openh264 tests with wild
1 participant