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: UNCONFIRMED
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-07-28 20:52 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.