]> git.saurik.com Git - apple/ld64.git/blob - 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
1
2 TESTROOT = ../..
3 include ${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
10 run: all
11
12 all:
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
20 clean:
21 rm -f main main.actual