Files
clang-p2996/lld/test/mach-o/Inputs/order_file-basic.order
Nick Kledzik 82d24bc932 [mach-o] Add support for -order_file option
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
2014-11-07 21:01:21 +00:00

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