Fix address calculation for _DYNAMIC. We want to address of _DYNAMIC itself,
authorkettenis <kettenis@openbsd.org>
Tue, 24 Jul 2018 09:27:44 +0000 (09:27 +0000)
committerkettenis <kettenis@openbsd.org>
Tue, 24 Jul 2018 09:27:44 +0000 (09:27 +0000)
commit4e61412a9215922e6ef944624481c07968eba071
tree6491972eb151201d8676ebd3bfcc531e8d9874c0
parentacba80f253364b4870e2b650e653e41206b56694
Fix address calculation for _DYNAMIC.  We want to address of _DYNAMIC itself,
not the address of its GOT entry.  The current code mixed the high bits of
the GOT entry address with the low bits of the true address.  This only
worked by accident for small binaries where _DYNAMIC and its GOT entry
happen to reside on the same page.

ok guenther@, mortimer@
lib/csu/aarch64/md_init.h
libexec/ld.so/aarch64/ldasm.S