aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2021-11-28 20:35:00 +0100
committerJakub Konka <kubkon@jakubkonka.com>2021-11-28 20:35:00 +0100
commit7e27ab09476870e4b37a04172043c66b4bd77c20 (patch)
tree1200fa721801ac675842b160a437a63907da84ce /lib/std/Thread.zig
parentaa61e03f244a72ea01f05c3ceea7c5fb5aadf1ff (diff)
downloadzig-7e27ab09476870e4b37a04172043c66b4bd77c20.tar.gz
zig-7e27ab09476870e4b37a04172043c66b4bd77c20.zip
macho: fix parsing addend for non-extern SIGNED_X reloc
If `r_extern == 0` (the relocation is non-extern, meaning it targets a specific memory offset within the object's section) and if the relocation type signifies that the relocation requires correction for RIP such as SIGNED_1, then we need to subtract the correction, here 1 for SIGNED_1, from the calculated addend value as it's implicitly included.
Diffstat (limited to 'lib/std/Thread.zig')
0 files changed, 0 insertions, 0 deletions