Skip to content

fix: Don't report undefined symbols when writing executables with -z undefs#1741

Merged
davidlattimore merged 1 commit into
mainfrom
push-vzlrrltkyuuw
Mar 21, 2026
Merged

fix: Don't report undefined symbols when writing executables with -z undefs#1741
davidlattimore merged 1 commit into
mainfrom
push-vzlrrltkyuuw

Conversation

@davidlattimore

Copy link
Copy Markdown
Member

No description provided.

@@ -1,18 +1,29 @@
//#AbstractConfig:default
//#EnableLinker:lld

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the reason for LLD here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly to verify that LLD has the same behaviour as GNU ld. i.e that it errors and doesn't error in the same circumstances. I wonder if we should change linker-diff's default behaviour to match-all rather than match-any, then we could enable match-any just for tests that need it. It doesn't affect this test much, since diffing isn't so important for this test - all that really matters is whether we're failing or succeeding the link.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right. Expect error makes it so all the linkers must fail similar way.
I don't have strong opinion on whether running all tests with additional linker is worthwhile. It might prove time-consuming, but on high core count machines it likely won't be very noticeable since c++/libc/rust integration tests dwarf all the other tests.

@davidlattimore davidlattimore merged commit e80b116 into main Mar 21, 2026
23 checks passed
@davidlattimore davidlattimore deleted the push-vzlrrltkyuuw branch March 21, 2026 21:25
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.

2 participants