aboutsummaryrefslogtreecommitdiff
path: root/lib/std/array_hash_map.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2021-05-09 16:24:53 +0200
committerJakub Konka <kubkon@jakubkonka.com>2021-05-09 16:24:53 +0200
commitf67e756211b6e69cc8fadbb6b1ec5af1bd5c7049 (patch)
tree69d8704e34a0855ca855de3cf096df26b6b5eced /lib/std/array_hash_map.zig
parent15d6efecfbe8be46e5dbd7765f0ef9726144db5d (diff)
downloadzig-f67e756211b6e69cc8fadbb6b1ec5af1bd5c7049.tar.gz
zig-f67e756211b6e69cc8fadbb6b1ec5af1bd5c7049.zip
zld: adjust signed displacement source target addr
Previously, I mistakenly assumed that offset of the relocation is enough when calculating relative offset of the target from the source target section base address in case of section-based relocs on x86_64. While this is true for `__TEXT,__text` section which always starts at 0x0 in object files, this is absolutely not true for `__TEXT,__StaticInit` section which will have nonzero base address hence resulting in incorrect displacement calculations for SIGNED relocs.
Diffstat (limited to 'lib/std/array_hash_map.zig')
0 files changed, 0 insertions, 0 deletions