From 635f1e0391b0a350d60a8139fa2d77f47012e9c5 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 2 Jul 2025 13:04:51 -0500 Subject: [PATCH] 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\nint main(void){crypt("one", "two");}' && ./a.out --- .github/workflows/toybox.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/toybox.yml b/.github/workflows/toybox.yml index 167d4b0e..c36cc6fa 100644 --- a/.github/workflows/toybox.yml +++ b/.github/workflows/toybox.yml @@ -29,4 +29,4 @@ jobs: - name: Setup run: sudo apt-get install build-essential - name: Configure build and test - run: VERBOSE=all make defconfig tests + run: VERBOSE=all CC=clang make defconfig tests