summaryrefslogtreecommitdiff
path: root/so-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'so-test.c')
-rw-r--r--so-test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/so-test.c b/so-test.c
index 824191c..9159ec1 100644
--- a/so-test.c
+++ b/so-test.c
@@ -35,6 +35,11 @@ main(int argc, char *argv[])
if (!note)
return -1;
+ const struct build_id_note *note_by_symbol =
+ build_id_find_nhdr_by_symbol(build_id_length);
+ if (note != note_by_symbol)
+ return -1;
+
ElfW(Word) len = build_id_length(note);
const uint8_t *build_id = build_id_data(note);