Skip to content

Conversation

@llvmbot
Copy link
Member

@llvmbot llvmbot commented Aug 25, 2022

When an object file contains an export directive, we normally do some
amount of deferred processing of them at the end of the linking
process. The -includeoptional option was handled after this, and
any object files (defining new exports) weren't handled.

Move the handling of the -includeoptional into the same late loop
which does the fixups for e.g. export directives.

Ideally, this would also be done for object files that are pulled
in by the wrap options, and for mingw autoimports, but those changes
require more modifications, to make them safe for potentially
being executed multiple times.

This fixes llvm/llvm-project#57243.

Differential Revision: https://reviews.llvm.org/D132361

(cherry picked from commit af39e6f)
@llvmbot
Copy link
Member Author

llvmbot commented Aug 25, 2022

@mstorsjo What do you think about merging this PR to the release branch?

@mstorsjo
Copy link
Member

@mstorsjo What do you think about merging this PR to the release branch?

Obviously, I myself think it's a good idea, and I guess others would agree too :-)

@tru tru merged commit 9c29291 into release/15.x Aug 25, 2022
@tru tru deleted the llvm-issue57243 branch August 25, 2022 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ld.lld crashing when linking Gimp 3 (2.99)

4 participants