Issue |
93947
|
Summary |
[LLD] Invalid 'there is a cycle in linker script INCLUDEs' error
|
Labels |
lld
|
Assignees |
|
Reporter |
partaror
|
LLD incorrectly reports 'there is a cycle in linker script INCLUDEs' error when a linker script is included multiple times (but there is no cycle). Reproducible example:
```bash
#!/usr/bin/env bash
cat > incrementDotBy100.t \EOF
. = . + 100;
EOF
cat >1.t <<\EOF
SECTIONS {
FOO : {
*(*foo*)
INCLUDE incrementDotBy100.t
}
BAR : {
*(*bar*)
INCLUDE incrementDotBy100.t
}
}
EOF
touch 1.c
clang-15 -o 1.o 1.c -c
ld.lld -o 1.elf 1.o -T 1.t
```
Output:
```
ld.lld: error: 1.t:8: there is a cycle in linker script INCLUDEs
>>> INCLUDE incrementDotBy100.t
>>>
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs