Is this expected behaviour? #1059
-
Since I'm not sure if this is a mold bug or not and because I haven't double-checked things, I'm asking here in Discussions. Basically, I'm running Gentoo (
I'll later try using lld as the linker and report back. I don't recall having this issue with GCC, but the package was last built in on the 24th of April this year, at which point I don't think I even knew of mold, so it probably went smoothly due to me using GNU ld with GCC. Have a nice day! EditIt linked fine with lld. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
There is a single-letter option |
Beta Was this translation helpful? Give feedback.
-
This is probably a case where lld can drop |
Beta Was this translation helpful? Give feedback.
There is a single-letter option
-u
that takes an argument, so-u<foo>
is interpreted as-u <foo>
. In your case, it's interpreted as-u ndefined
. If you want to specify the--undefined
option, you need to prepend it with double dashes (i.e. pass-Wl,--undefined
).