Bug 28151

Summary: elf: Some tst-audit* tests need ld --audit and --depaudit which do not work with gold or ld.lld
Product: glibc Reporter: Fangrui Song <i>
Component: dynamic-linkAssignee: Not yet assigned to anyone <unassigned>
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Fangrui Song 2021-07-28 20:52:45 UTC
My srcdir is at ~/Dev/glibc.

% cd ~/Dev/glibc/out/gold
% make -r -C ~/Dev/glibc/malloc objdir=$PWD check -j 20

has failures due to use of --depaudit.

## as of binutils 2.36
% gold --depaudit x a.o
gold: --depaudit: unknown option
gold: use the --help option for usage information

## as of 13.0.0
% ld.lld --depaudit x a.o
ld.lld: error: unknown argument '--depaudit'
ld.lld: error: cannot open x: No such file or directory

https://sourceware.org/pipermail/libc-alpha/2021-July/129452.html elf: Skip tst-auditlogmod-* if the linker doesn't support --depaudit

can skip the tests.
Comment 1 Fangrui Song 2021-11-01 02:58:16 UTC
Fixed by commit 9926f6e2eeb374cf729d4bb3f092dd4b36a8f861 ("elf: Skip tst-auditlogmod-* if the linker doesn't support --depaudit [BZ #28151]")