Skip to content

Implement linker-script SORT(...) for input sections #1661

@Abh10705

Description

@Abh10705

I’d like to work on adding support for the SORT(...) linker‑script keyworrd for input sections.

In GNU‑style scripts, SORT(pattern) matches the same input sections as pattern, but then sorts those matched sections by name before placing them in the output section.

My parser already represents SORT(...) as a wrapper around an inner pattern. The behaviour I want to implement is: use the inner pattern for matching during section assignment, and then, at layout time, sort the matched input sectionss by name before writing them (reusing the existing SortedSection machinery).

Does this approach fit how you’d like SORT to work in Wild? I would appreciate guidance

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions