WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@parth-07
Copy link
Contributor

@parth-07 parth-07 commented Jan 2, 2026

This commit fixes the incorrect NEEDED entry when --as-needed is used and a shared library symbol is referenced by an another unneeded shared library.

The root cause of the issue was the logic that was used to determine whether a shared library symbol ResolveInfo should have an outSymbol or not.

Resolves #668


InputSym->setResolveInfo(*(ResolvedResult.Info));

if (ResolvedResult.Overriden || !ResolvedResult.Existent) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the condition be changed here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, this does not need to be changed.

@parth-07 parth-07 requested a review from quic-seaswara January 5, 2026 06:39
This commit fixes the incorrect NEEDED entry when --as-needed is used
and a shared library symbol is referenced by an another unneeded shared
library.

The root cause of the issue was the logic that was used to determine
whether a shared library symbol ResolveInfo should have an outSymbol or
not.

Resolves qualcomm#668

Signed-off-by: Parth Arora <[email protected]>
@partaror partaror force-pushed the UnnecessaryDTNeeded branch from 27ca78c to 881932d Compare January 6, 2026 19:12
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.

Shared library is incorrectly marked as needed when it is referenced by an another (un)needed shared library

2 participants