mirror of
https://github.com/rui314/mold.git
synced 2024-11-15 04:10:40 +03:00
16 lines
325 B
Bash
Executable File
16 lines
325 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
cd $(dirname $0)
|
|
mold=`pwd`/../../ld64.mold
|
|
echo -n "Testing $(basename -s .sh $0) ... "
|
|
t=$(pwd)/../../out/test/macho/$(basename -s .sh $0)
|
|
mkdir -p $t
|
|
|
|
echo 'int main() {}' | cc -o $t/exe -xc -
|
|
$mold -dump $t/exe > $t/log
|
|
|
|
grep -q 'magic: 0xfeedfacf' $t/log
|
|
grep -q 'segname: __PAGEZERO' $t/log
|
|
|
|
echo OK
|