Skip to content
  • Rui Ueyama's avatar
    [PECOFF] Make it possible to specify export ordinals. · fe1b3c09
    Rui Ueyama authored
    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
    fe1b3c09
Loading