]> git.saurik.com Git - apple/ld64.git/blame - unit-tests/test-cases/order_file-zero-fill/Makefile
ld64-409.12.tar.gz
[apple/ld64.git] / unit-tests / test-cases / order_file-zero-fill / Makefile
CommitLineData
b2fa67a8
A
1
2TESTROOT = ../..
3include ${TESTROOT}/include/common.makefile
4
5#
6# Check that -order_file will transform zero-fill (tentative def)
7# symbols to __data symbols to achieve ordering.
8#
9
10run: all
11
12all:
13 ${CC} ${CCFLAGS} main.c foo.c -Wl,-order_file,main.order -o main
14 nm -nj main | grep _xyz_ > main.actual
15 diff main.expected main.actual
16 nm -nm main | grep _xyz_f4 | grep __data | ${FAIL_IF_EMPTY}
17 nm -nm main | grep _other | grep __common | ${FAIL_IF_EMPTY}
18 ${PASS_IFF_GOOD_MACHO} main
19
20clean:
21 rm -f main main.actual