Skip to content

[LLD] Implement NOCROSREFS support for overlays in linker script handling of LLD #128790

@Prabhuk

Description

@Prabhuk

Consider the following incomplete linker script snippet:

OVERLAY <START_ADDRESS>: NOCROSSREFS {
    .overlay.ob1 {*ob1*.o (.text*)}
    .overlay.ob2 {*ob2*.o (.text*)}
 } >SOME_MEMORY

LLD fails with { expected, but got NOCROSSREFS while processing this.

Ideally, we would like to match the BFD linker behavior for NOCROSSREFS in this case.

Metadata

Metadata

Assignees

Labels

enhancementImproving things as opposed to bug fixing, e.g. new or missing featurelld:ELF

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions