bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/19030] ld generates .so/x86 with bad phdr so the Android linker


From: address@hidden
Subject: [Bug ld/19030] ld generates .so/x86 with bad phdr so the Android linker won't dlopen
Date: Fri, 02 Oct 2015 08:15:29 +0000

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

--- Comment #5 from address@hidden ---
> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]