Skip to content

fix: Prevent GC of linker script symbol aliases#1956

Merged
davidlattimore merged 1 commit into
mainfrom
push-rokxstmsrumy
May 21, 2026
Merged

fix: Prevent GC of linker script symbol aliases#1956
davidlattimore merged 1 commit into
mainfrom
push-rokxstmsrumy

Conversation

@davidlattimore

Copy link
Copy Markdown
Member

Related to #1948. Note, that dealing with archive activation is left to a subsequent PR.

The newly added test has two configs. Config defsym-obj was already passing. Config script-obj was failing and is what's being fixed by this PR.

//#DiffIgnore:section.got
//#DiffIgnore:section.gnu.version_d.alignment
//#DiffIgnore:version_d.verdef_1
//#DiffIgnore:dynsym.mysql_affected_rows.section

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.

Neither LD nor LLD export this symbol. Is it an issue with version script parser or the linker?

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.

Not sure where the bug is, but I've added a TODO.

@davidlattimore davidlattimore merged commit 13a35a7 into main May 21, 2026
25 checks passed
@davidlattimore davidlattimore deleted the push-rokxstmsrumy branch May 21, 2026 00:17
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