FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add support for version node dependencies in version scripts by parth-07 · Pull Request #1920 · qualcomm/eld · GitHub

/ eld Public

Add support for version node dependencies in version scripts - #1920

Open
Parth (parth-07) wants to merge 1 commit into
qualcomm:mainfrom
parth-07:VersionNodeDependency
Open

Parth (parth-07) wants to merge 1 commit into
qualcomm:mainfrom
parth-07:VersionNodeDependency

Conversation

Copy link
Copy Markdown
Contributor

This commit adds real support for GNU version-script node dependencies instead of warning and discarding them. A dependent node such as

V1 { ... };
V2 { ... } V1;

previously triggered Dependent nodes are not supported and the dependency was silently dropped. Now, a dependency is validated against already-registered named version nodes when symbol versioning is enabled, rejecting unknown, forward, and self references the same way GNU ld does. Symbol scope, version ID assignment, and .gnu.version continue to be driven purely by node order and symbol rules, so this is metadata-only.

The .gnu.version_d writer now emits a dependency as an additional Verdaux entry on the dependent version definition.

Resolves #1581

quic-areg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

Steven Ramirez Rosa (Steven6798) left a comment •
edited
Loading

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good. Remember to use proper labeling for the release notes and documentation purposes.

Parth (parth-07) added the enhancement New feature or request label Oct 6, 2026
This commit adds real support for GNU version-script node dependencies
instead of warning and discarding them. A dependent node such as

    V1 { ... };
    V2 { ... } V1;

previously triggered `Dependent nodes are not supported` and the
dependency was silently dropped. Now, a dependency is validated against
already-registered named version nodes when symbol versioning is
enabled, rejecting unknown, forward, and self references the same way
GNU ld does. Symbol scope, version ID assignment, and `.gnu.version`
continue to be driven purely by node order and symbol rules, so this is
metadata-only.

The `.gnu.version_d` writer now emits a dependency as an additional
`Verdaux` entry on the dependent version definition.

Resolves qualcomm#1581

Signed-off-by: Parth Arora <partaror@qti.qualcomm.com>

This branch has not been deployed

No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[version-script] Warning : dependent nodes not supported

4 participants


Back | FazBrowse Home | New Git URL