elf: _dl_find_object may return 1 during early startup (bug 30515)
authorFlorian Weimer <fweimer@redhat.com>
Fri, 7 Jul 2023 08:11:26 +0000 (10:11 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 7 Jul 2023 08:11:26 +0000 (10:11 +0200)
commit1bcfe0f732066ae5336b252295591ebe7e51c301
treedbdb5fc80df296b97b50fb008610905786e1072f
parent0567edf1b2def04840e38e3610452c51a3f440a3
elf: _dl_find_object may return 1 during early startup (bug 30515)

Success is reported with a 0 return value, and failure is -1.
Enhance the kitchen sink test elf/tst-audit28 to cover
_dl_find_object as well.

Fixes commit 5d28a8962dcb ("elf: Add _dl_find_object function")
and bug 30515.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
elf/dl-find_object.c
elf/tst-auditmod28.c