[PATCH, driver] -Wl, passing empty strings to ld
Paolo Bonzini
bonzini@gnu.org
Thu Apr 15 07:45:00 GMT 2010
On 04/15/2010 05:34 AM, Jim Wilson wrote:
> The problem here is that the gcc driver is parsing the invalid -Wl,
> options and ending up with empty strings "" which it then passes on to
> ld as input file names. ld fails to open a file named "", and then
> prints an error that contains the string "". All very useless, and very
> confusing if you have a 1000+ character long link command and can't
> figure out what is wrong.
What if an ld option makes sense with an empty argument, e.g. -Wl,-h, or
-Wl,-l, ? It's a borderline case, I know, and I suppose you can do
-Xlinker '', but it seems like an arbitrary limitation for an option
that does pass-through by definition.
Paolo
More information about the Gcc-patches
mailing list