diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2021-11-28 20:35:00 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2021-11-28 20:35:00 +0100 |
| commit | 7e27ab09476870e4b37a04172043c66b4bd77c20 (patch) | |
| tree | 1200fa721801ac675842b160a437a63907da84ce /lib/std/debug.zig | |
| parent | aa61e03f244a72ea01f05c3ceea7c5fb5aadf1ff (diff) | |
| download | zig-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/debug.zig')
0 files changed, 0 insertions, 0 deletions
