Closed
Description
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