Skip to content

Commit

Permalink
Do not copy mold executable to a test directory
Browse files Browse the repository at this point in the history
mold executable can be quite large (~600 MiB with debug info),
so we don't want to casually copy that file.
  • Loading branch information
rui314 committed May 3, 2024
1 parent fdbe7ee commit ed1e3c0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/elf/mold-wrapper2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
. $(dirname $0)/common.inc

ldd mold-wrapper.so | grep -q libasan && skip

nm mold | grep -q '__[at]san_init' && skip

rm -rf $t
mkdir -p $t/bin $t/lib/mold
cp mold $t/bin
cp mold-wrapper.so $t/bin

$t/bin/mold -run bash -c 'echo $LD_PRELOAD' | grep -q '/bin/mold-wrapper.so'
./mold -run bash -c 'echo $LD_PRELOAD' | grep -Fq mold-wrapper.so

0 comments on commit ed1e3c0

Please sign in to comment.