Search code examples
linkerclangllvmldlld

Is it possible to use "NOCROSSREFS_TO" in linker script for Clang's ld.lld?


I need to compile project with custom linker script.

This project is successfully compiled by gcc.

Build fails when I use clang with ld.lld linker.

It fails on linker stage due to the use of "NOCROSSREFS_TO" command, which is used in linker script.

Is it possible to use such a command for ld.lld linker? Any alternatives?


Solution

  • No, this command isn't supported.