Work around another gcc bug, where --as-needed breaks libasan. This

dies with a null pointer dereference calling crypt():

gcc -fsanitize=address -static-libasan -xc - -Wl,--as-needed -lcrypt \
  <<<$'#include<crypt.h>\nint main(void){crypt("one", "two");}' &&
  ./a.out
This commit is contained in:
Rob Landley 2025-07-02 13:04:51 -05:00
parent 4bf4509984
commit 635f1e0391

View File

@ -29,4 +29,4 @@ jobs:
- name: Setup - name: Setup
run: sudo apt-get install build-essential run: sudo apt-get install build-essential
- name: Configure build and test - name: Configure build and test
run: VERBOSE=all make defconfig tests run: VERBOSE=all CC=clang make defconfig tests