[llvm-bugs] [Bug 42480] New: "NOCROSSREFS_TO" doesn't supported by LLVM's ld.lld

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 2 03:22:46 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42480

            Bug ID: 42480
           Summary: "NOCROSSREFS_TO" doesn't supported by LLVM's ld.lld
           Product: lld
           Version: unspecified
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: qwertytmp1 at gmail.com
                CC: llvm-bugs at lists.llvm.org, peter.smith at linaro.org

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190702/87ba9cf9/attachment.html>


More information about the llvm-bugs mailing list