diff options
author | Matt Turner <mattst88@gmail.com> | 2016-12-14 16:04:26 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2016-12-14 16:19:48 -0800 |
commit | 838ebbcf92352217ea7ed16e0894ea585a357f88 (patch) | |
tree | f4a4a1217c84210da3f785e0836d23ab10e5896e /build-id.lds | |
parent | 9728a8bdc1d882acf534df6a86dbb435146a5ca8 (diff) |
Use dl_iterate_phdr() instead of a linker script.
According to Mike Frysinger [1] it is not reliable to read ELF sections
at runtime, which the previous method involving the linker script was
doing.
Instead, use dl_iterate_phdr() to find the build id.
[1] https://sourceware.org/ml/binutils/2016-12/msg00207.html
Diffstat (limited to 'build-id.lds')
-rw-r--r-- | build-id.lds | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/build-id.lds b/build-id.lds deleted file mode 100644 index 63a23f2..0000000 --- a/build-id.lds +++ /dev/null @@ -1,9 +0,0 @@ -SECTIONS -{ - build-id : { - PROVIDE(__note_gnu_build_id_start = .); - *(.note.gnu.build-id); - PROVIDE(__note_gnu_build_id_end = .); - } -} -INSERT AFTER .note.gnu.build-id; |