The darwin linker lets you rearrange functions and data for better locality (less paging). You do this with the -order_file option which supplies a text file containing one symbol per line. Implementing this required a small change to LayoutPass to add a custom sorter hook. llvm-svn: 221545
12 lines
331 B
Plaintext
12 lines
331 B
Plaintext
|
|
# input file for order_file-basic.yaml
|
|
|
|
_func2
|
|
libfoo.a(foo.o):_foo # tests file specific ordering within archive
|
|
i386:_func3 # wrong arch, so ignored
|
|
armv7:_func3 # wrong arch, so ignored
|
|
_func1
|
|
_notfound # unknown symbol silently ignored
|
|
_data3 # data symbols should be orderable
|
|
|