HomePhabricator

COFF: Implement DLL symbol forwarding.
Audit RequiredrL257243

Description

COFF: Implement DLL symbol forwarding.

DLL export tables usually contain dllexport'ed symbol RVAs so that
applications which use the DLLs can find symbols from the DLLs.
However, there's a minor feature to "forward" DLL symbols to other
DLLs.

If you set an RVA to a string whose form is "<dllname>.<symbolname>"
(e.g. "KERNEL32.ExitProcess") instead of symbol RVA to the export
table, the loader interprets that as a forwarder symbol, and resolve
that symbol from the specified DLL.

This patch implements that feature.

Details

Auditors
Bigcheese
Committed
ruiuJan 8 2016, 5:22 PM
Parents
rL257242: Writing a test case for r257234 I found another place that was
Branches
Unknown
Tags
Unknown