Skip to content
Commit 5d72e7e4 authored by Stefan Liebler's avatar Stefan Liebler
Browse files

Fix getting return address in elf/tst-audit28.c.



Starting with commit 1bcfe0f7, the
test was enhanced and the object for __builtin_return_address (0)
is searched with _dl_find_object.

Unfortunately on e.g. s390 (31bit), a postprocessing step is needed
as the highest bit has to be masked out.  This can be done with
__builtin_extract_return_addr.

Without this postprocessing, _dl_find_object returns with -1 and the
content of dlfo is invalid, which may lead to segfaults in basename.
Therefore those checks are now only done on success.
Reviewed-by: default avatarFlorian Weimer <fweimer@redhat.com>
parent 8b9a0af8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment