-u is a linker option used to pretend a symbol is undefined,
this option are common used for forcing archive member extraction.
This option should pass to ld, and many other toolchain in Clang
like tools::gnutools has pass that too.
Differential D105091
[RISCV] Pass -u to linker correctly. kito-cheng on Jun 29 2021, 2:17 AM. Authored by
Details -u is a linker option used to pretend a symbol is undefined, This option should pass to ld, and many other toolchain in Clang
Diff Detail
Unit Tests Event TimelineComment Actions
for forcing archive member extraction. weak symbols are somewhat orthogonal.
Comment Actions The update was not what I expected. I said that there should be just one RUN line and you can place -T, -u, --defsym and all other linker options on that line. This additionally allows us to get a sense of the order. Each new RUN line consumes some resources on testing machines. |
Just place all linker options on one run line.
It decreases the number of RUN lines and additionally checks the order (though usually unimportant).