bug-binutils
[Top][All Lists]
Advanced

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

ld.gold doesn't like if -L points to not a directory


From: Arkadiusz Miskiewicz
Subject: ld.gold doesn't like if -L points to not a directory
Date: Sat, 2 Jul 2011 20:32:53 +0200
User-agent: KMail/1.13.7 (Linux/3.0.0-rc5-00080-gca56a95; KDE/4.6.5; x86_64; ; )

Hi,

address@hidden ~]$ more ~/test/x.c
int main() { return 0; }
address@hidden ~]$ g++ -L/bin/sh ~/test/x.c
/usr/bin/ld: error: /bin/sh: can not read directory: Not a directory
collect2: ld returned 1 exit status

but

address@hidden ~]$ g++ -L/notexistant ~/test/x.c
address@hidden ~]$

(doesn't complain)

$ ld --version
GNU gold (Linux/GNU Binutils 2.21.52.0.2.20110610) 1.11
[...]

Note that ld.bfd has no trouble with -L pointing to not a directory (it simply 
ignores that fact).

IMO gold should match ld.bfd behaviour and simply ignore not a directories.

-- 
Arkadiusz Miƛkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/



reply via email to

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