https://sourceware.org/bugzilla/show_bug.cgi?id=19030

--- Comment #5 from winter-...@bfw-online.de ---
> Yes, one dash or two makes a difference.

Using single-dash arguments can then be considered pretty dangerous in ld since
any small typo (or using a parameter that might only exist in some other ld
version) in the argument results in ld looking for single letter arguments
(even in concatenation) which it almost always find.

$ ld -nostdlib # correct
$ ld -nostdllib # incorrect, results in -n -o stdllib

Much safer is double dash:

$ ld --nostdlib # correct
$ ld --nostdllib
ld: unrecognized option '--nostdllib'

I figure a lot of people and application rely on single letter concatenation
like this, but probably also a lot of people suffer from incorrectly applied
settings without even knowing.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to