Skip to content
Discussion options

You must be logged in to vote

Hello Miguel,

The MS-specific format contains an object called __NULL_IMPORT_DESCRIPTOR. This object is a set of null bytes to mark the end of the IAT. GNU LD appends the null bytes automatically. If __NULL_IMPORT_DESCRIPTOR is present, null bytes are appended twice. Therefore, I'd rather use the GNU format, not the MS-specific, to prevent appending duplicate null bytes.

In order to switch the import library format to the one compatible with GNU LD and lld-link, just change the value of RENAME_AR_MEMBERS to 1.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by miguelangelcano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants