Bug 28151 - elf: Some tst-audit* tests need ld --audit and --depaudit which do not work with gold or ld.lld
Summary: elf: Some tst-audit* tests need ld --audit and --depaudit which do not work w...
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: dynamic-link (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-28 20:52 UTC by Fangrui Song
Modified: 2021-11-01 02:58 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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]")