Skip to content

Handle numeric address between section name and : in linker scripts #1660

@Abh10705

Description

@Abh10705

I’d like to work on linker‑script support for output section headers that includee a numeric value between the section name and the :.
Concretely, in a script like the Linux module linker script we have lines such as:
__ksymtab 0 : ALIGN(8) { (SORT(___ksymtab+)) }

Right now, Wild parses section names but ignores or mishandles the numeric value (0) that appears between the section name and :. My goal in this issue is:

Parse and store that numeric value as the sections start address expression.

Use it in the layout phase so output sections like __ksymtab get the correct address when such a value is present.

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