aboutsummaryrefslogtreecommitdiff
path: root/elf/tst-audit25a.c
AgeCommit message (Collapse)AuthorFilesLines
2024-05-07support: Add envp argument to support_capture_subprogramAdhemerval Zanella1-2/+2
So tests can specify a list of environment variables. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
2024-01-01Update copyright dates with scripts/update-copyrightsPaul Eggert1-1/+1
2023-01-06Update copyright dates with scripts/update-copyrightsJoseph Myers1-1/+1
2022-12-12elf: Do not assume symbol order on tst-audit25{a,b}Adhemerval Zanella1-14/+24
The static linker might impose any order or internal function position, so change the test to check if the audit prints the symbol only once in any order.
2022-03-31elf: Remove unused functions from tst-audit25(a,b)Adhemerval Zanella1-8/+0
2022-02-01elf: Issue la_symbind for bind-now (BZ #23734)Adhemerval Zanella1-0/+129
The audit symbind callback is not called for binaries built with -Wl,-z,now or when LD_BIND_NOW=1 is used, nor the PLT tracking callbacks (plt_enter and plt_exit) since this would change the expected program semantics (where no PLT is expected) and would have performance implications (such as for BZ#15533). LAV_CURRENT is also bumped to indicate the audit ABI change (where la_symbind flags are set by the loader to indicate no possible PLT trace). To handle powerpc64 ELFv1 function descriptor, _dl_audit_symbind requires to know whether bind-now is used so the symbol value is updated to function text segment instead of the OPD (for lazy binding this is done by PPC64_LOAD_FUNCPTR on _dl_runtime_resolve). Checked on x86_64-linux-gnu, i686-linux-gnu, aarch64-linux-gnu, powerpc64-linux-gnu. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>