From https://sourceware.org/binutils/docs/ld/File-Commands.html:
The file will be searched for in the current directory, and in any
directory specified with the -L option.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Just curious, are you actually using INLCUDE? If so, what application? (I was looking for a real usage of INCLUDE command.)
ELF/LinkerScript.cpp | ||
---|---|---|
1187–1188 ↗ | (On Diff #81678) | Can this be StringRef Tok = unquote(next()); ? |
1193 ↗ | (On Diff #81678) | Remove {}. |
I was attempting to build FreeBSD (mips64) with lld and I get this error from the following script: https://github.com/freebsd/freebsd/blob/master/sys/boot/mips/beri/boot2/flashboot.ldscript
I'm sorry but it needs a test. Please take a look at test/ELF/linkerscript/linkerscript.s. We have one test for INCLUDE. You want to add one more for this patch.
LGTM
test/ELF/linkerscript/linkerscript.s | ||
---|---|---|
43 ↗ | (On Diff #81747) | You don't need this readobj. |
This patch reveals an issue we have in LLD, looks some memory corruption or we free a buffer that still using.
Alexander, I know you do not have commit permission yet. I am investigating the issue above and commit this for you after fix it.
Hope in next few hours. Thanks !