From 838ebbcf92352217ea7ed16e0894ea585a357f88 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 14 Dec 2016 16:04:26 -0800 Subject: 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 --- build-id.lds | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 build-id.lds (limited to 'build-id.lds') 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; -- cgit v1.2.3