diff options
author | Rui Ueyama <ruiu@google.com> | 2013-12-16 05:46:07 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2013-12-16 05:46:07 +0000 |
commit | fe1b3c09330705301bba4825b10260e4fe400d31 (patch) | |
tree | ac30e58c5c19c570519ca5d226aeb6b101452ea1 /clang/unittests/Format/FormatTest.cpp | |
parent | d68c7aa7e633e6bd191d3964eb5a941f8d66f152 (diff) | |
download | bcm5719-llvm-fe1b3c09330705301bba4825b10260e4fe400d31.tar.gz bcm5719-llvm-fe1b3c09330705301bba4825b10260e4fe400d31.zip |
[PECOFF] Make it possible to specify export ordinals.
You can specify exported function's ordinal by /export:func,@<number> command
line option, but LLD ignored the option until now. This patch implements the
feature.
Ordinal is basically the index into the exported function address table. So,
for example, if /export:foo,@42 is specified, the linker writes foo's address
to 42th entry in the address table. Windows supports import-by-ordinal; you
can not only import a function by name, but by its ordinal. If you want to
allow your DLL users to import your functions by their ordinals, you need to
make sure that your functions are always exported with the same ordinals.
This is the feature for that situation.
llvm-svn: 197364
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
0 files changed, 0 insertions, 0 deletions