Skip to content

fix(LoongArch64/RV64): allow empty sequence for merge_eflags#1996

Merged
marxin merged 2 commits into
wild-linker:mainfrom
marxin:fix-loongarch64-empty-eflags
May 30, 2026
Merged

fix(LoongArch64/RV64): allow empty sequence for merge_eflags#1996
marxin merged 2 commits into
wild-linker:mainfrom
marxin:fix-loongarch64-empty-eflags

Conversation

@marxin
Copy link
Copy Markdown
Collaborator

@marxin marxin commented May 29, 2026

Noticed that while debugging the Mold external tests on LoongArch64 (and RV64) - for an empty shared library, we can have none eflags to be merged and so we should allow empty sequence and build object::elf::FileFlags::(0).

@marxin marxin force-pushed the fix-loongarch64-empty-eflags branch from a3bb5c8 to 14778ca Compare May 29, 2026 15:36
@marxin marxin changed the title fix(LoongArch64): allow empty sequence for merge_eflags fix(LoongArch64/RV64): allow empty sequence for merge_eflags May 29, 2026
@marxin marxin force-pushed the fix-loongarch64-empty-eflags branch from 14778ca to 242e5db Compare May 29, 2026 15:38
@marxin marxin marked this pull request as draft May 29, 2026 15:58
@marxin
Copy link
Copy Markdown
Collaborator Author

marxin commented May 30, 2026

Good, I've just verified we behave the same as Mold and LLD on the LoongArch64 platform - 2 Mold external tests are fixed with that.

@marxin marxin marked this pull request as ready for review May 30, 2026 06:10
@marxin marxin requested a review from davidlattimore May 30, 2026 06:10
Copy link
Copy Markdown
Member

@davidlattimore davidlattimore left a comment

Choose a reason for hiding this comment

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

This doesn't necessitate an update to the mold skip tests list? Otherwise, looks good.

@marxin
Copy link
Copy Markdown
Collaborator Author

marxin commented May 30, 2026

These tests were not excluded in the mold_skip_tests.toml because we support them on platforms like x86_64, where we don't merge the eflags.

@marxin marxin merged commit e39e49b into wild-linker:main May 30, 2026
25 checks passed
@marxin marxin deleted the fix-loongarch64-empty-eflags branch May 30, 2026 06:34
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