This behavior matches ld.bfd -Ld --version-script=t.script a.o
Details
Details
Diff Detail
Diff Detail
- Repository
- rLLD LLVM Linker
- Build Status
Buildable 20712 Build 20712: arc lint + arc unit
Event Timeline
Comment Actions
LGTM
test/ELF/version-script-in-search-path.s | ||
---|---|---|
9 | For safety, you should use %T/searchpath/%t.script instead of %T/searchpath/t.script because this line can succeed if there's other test that happens to create t.script in the current directory. |
test/ELF/version-script-in-search-path.s | ||
---|---|---|
9 | Sorry I didn't notice this comment when committing. %t.script is an absolute path so it does not work here --version-script=%t.script |
Comment Actions
Thanks! And good to know this substitution (defined in utils/lit/lit/TestRunner.py). I did the same for test/ELF/linkerscript/linker-script-in-search-path.s
For safety, you should use %T/searchpath/%t.script instead of %T/searchpath/t.script because this line can succeed if there's other test that happens to create t.script in the current directory.