]> Cypherpunks repositories - gostls13.git/commit
runtime: support DT_GNU_HASH in VDSO
authorAustin Clements <austin@google.com>
Tue, 13 Jun 2017 12:52:53 +0000 (08:52 -0400)
committerAustin Clements <austin@google.com>
Sun, 13 Aug 2017 22:08:55 +0000 (22:08 +0000)
commit9065c3bf3464f6a94e2b60992a9cba76effc16bc
tree7becc1b3f546a2f4cb7e9417566917ce78ef0926
parent816deacc70f48d14638104e284b3b75d5b1e8036
runtime: support DT_GNU_HASH in VDSO

Currently we only support finding symbols in the VDSO using the old
DT_HASH. These days everything uses DT_GNU_HASH instead. To keep up
with the times and future-proof against DT_HASH disappearing from the
VDSO in the future, this commit adds support for DT_GNU_HASH and
prefers it over DT_HASH.

Tested by making sure it found a DT_GNU_HASH section and all of the
expected symbols in it, and then disabling the DT_GNU_HASH path and
making sure the old DT_HASH path still found all of the symbols.

Fixes #19649.

Change-Id: I508c8b35a019330d2c32f04f3833b69cb2686f13
Reviewed-on: https://go-review.googlesource.com/45511
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/vdso_linux_amd64.go