Skip to content

"NOCROSSREFS_TO" doesn't supported by LLVM's ld.lld #41825

Closed
@P1119r1m

Description

@P1119r1m
Bugzilla Link 42480
Version unspecified
OS Linux
CC @P1119r1m,@smithp35

Extended Description

Build fails on the use of "NOCROSSREFS_TO" command in linker script.

Example:

  • funnyos.lds.S:
...
NOCROSSREFS_TO (.init .text .data)
...
ENTRY(_start)
...

Reported build/link error:

ld.lld: error: core/funnyos.lds:11: unknown directive: NOCROSSREFS_TO
>>> NOCROSSREFS_TO (.init .text .data)
>>> ^

P.S. Problem also reported on https://stackoverflow.com/questions/56235666/is-it-possible-to-use-nocrossrefs-to-in-linker-script-for-clangs-ld-lld

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaconfirmedVerified by a second partylld:ELF

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions