aboutsummaryrefslogtreecommitdiff
path: root/src/stage1/codegen.cpp
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2020-11-23 14:58:08 +0100
committerLemonBoy <thatlemon@gmail.com>2020-11-23 15:06:07 +0100
commit3e22077d46a02d1c4e02dd603b560978dc184a87 (patch)
tree471896cda055375d4c647e69c6ee2602665f4915 /src/stage1/codegen.cpp
parent0a84f85945a4d22c43b467c69ba7c26cd264659a (diff)
downloadzig-3e22077d46a02d1c4e02dd603b560978dc184a87.tar.gz
zig-3e22077d46a02d1c4e02dd603b560978dc184a87.zip
Fix the ELF base calculation
Find the effective ELF load address in dl_iterate_phdr by computing the difference between the in-memory phdr and its p_vaddr specified in the ELF file. This makes the dl_iterate_phdr test pass and restores the stack traces.
Diffstat (limited to 'src/stage1/codegen.cpp')
0 files changed, 0 insertions, 0 deletions