From 5380624471e4ac22edd397cd91289844650ef5e5 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Thu, 25 Apr 2019 10:38:53 -0700 Subject: Test that by_symbol returns the same nhdr as by_name --- dlopen-test.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dlopen-test.c') diff --git a/dlopen-test.c b/dlopen-test.c index ce0abe7..34e1904 100644 --- a/dlopen-test.c +++ b/dlopen-test.c @@ -56,6 +56,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); -- cgit v1.2.3