diff options
author | Marcus Shawcroft <marcus.shawcroft@linaro.org> | 2013-06-28 11:27:26 +0100 |
---|---|---|
committer | Marcus Shawcroft <marcus.shawcroft@linaro.org> | 2013-06-28 11:27:26 +0100 |
commit | ed0257f7d3378ec4a72e297f0dcba5159f2dd138 (patch) | |
tree | fd9b28c7c7d7a9192fd0329dbac22733cef74c53 /ports/sysdeps/aarch64 | |
parent | 03ea4d9b6916857e3c2a021f55d2a853cb837398 (diff) | |
download | glibc-ed0257f7d3378ec4a72e297f0dcba5159f2dd138.tar.gz |
[AArch64] Adjust elf_machine_dynamic to find _DYNAMIC via _GLOBAL_OFFSET_TABLE_
Diffstat (limited to 'ports/sysdeps/aarch64')
-rw-r--r-- | ports/sysdeps/aarch64/dl-machine.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/sysdeps/aarch64/dl-machine.h b/ports/sysdeps/aarch64/dl-machine.h index c91b0c42e0..71dd6b3894 100644 --- a/ports/sysdeps/aarch64/dl-machine.h +++ b/ports/sysdeps/aarch64/dl-machine.h @@ -36,8 +36,8 @@ elf_machine_matches_host (const ElfW(Ehdr) *ehdr) static inline ElfW(Addr) __attribute__ ((unused)) elf_machine_dynamic (void) { - ElfW(Addr) addr = (ElfW(Addr)) &_DYNAMIC; - return addr; + extern const ElfW(Addr) _GLOBAL_OFFSET_TABLE_[] attribute_hidden; + return _GLOBAL_OFFSET_TABLE_[0]; } /* Return the run-time load address of the shared object. */ |