Issue |
156414
|
Summary |
[lld] lld linker script does not support absolute path
|
Labels |
|
Assignees |
|
Reporter |
mykouHW
|
There is a compatibility issue with filename matching. When the input file uses an absolute path, the matching result of mc lld does not meet expectations.
For example:
script.ld:
```
.goo : {
bar.o(.text_bar);
foo.o(.text_foo);
}
```
.text_bar and.text_foo must be code sections, and ultimately.goo will also be a code section.
When using the absolute paths of foo.o and bar.o as inputs, the matching fails, and the corresponding sections `.text_foo` and `.text_bar` will be set as OrphanSection.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs