[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/12479] New: 'ld' looks for stuff in default places despite -nost
From: |
sergstesh at yahoo dot com |
Subject: |
[Bug ld/12479] New: 'ld' looks for stuff in default places despite -nostdlib on command line |
Date: |
Thu, 10 Feb 2011 18:24:41 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=12479
Summary: 'ld' looks for stuff in default places despite
-nostdlib on command line
Product: binutils
Version: 2.21
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: address@hidden
ReportedBy: address@hidden
Created attachment 5234
--> http://sourceware.org/bugzilla/attachment.cgi?id=5234
the 'conftest.log' file
I have built glibc-2.13 which contains a number of crt*.o files:
"
find /mnt/sdb8/sergei/AFSWD_debug/install/glibc-2.13/ -name "crt*.o"
/mnt/sdb8/sergei/AFSWD_debug/install/glibc-2.13/lib/crt1.o
/mnt/sdb8/sergei/AFSWD_debug/install/glibc-2.13/lib/crti.o
/mnt/sdb8/sergei/AFSWD_debug/install/glibc-2.13/lib/crtn.o
address@hidden:~>
"
- I guess they are in the right place.
When I run the following command:
"
/mnt/sdb8/sergei/AFSWD_debug/install/gcc-4.4.5/binsh/gcc
-I/mnt/sdb8/sergei/AFSWD_debug/install/autogen-5.10/include
-I/mnt/sdb8/sergei/AFSWD_debug/install/binutils-2.21/include
-I/mnt/sdb8/sergei/AFSWD_debug/install/dejagnu-1.4.4/include
-I/mnt/sdb8/sergei/AFSWD_debug/install/expect-5.44.1.14/include
-I/mnt/sdb8/sergei/AFSWD_debug/install/flex-2.5.35/include
-I/mnt/sdb8/sergei/AFSWD_debug/install/gcc-4.4.5/include
-I/mnt/sdb8/sergei/AFSWD_debug/install/gettext-0.18/include
-I/mnt/sdb8/sergei/AFSWD_debug/install/glibc-2.13/include
-I/mnt/sdb8/sergei/AFSWD_debug/install/gmp-4.3.2/include
-I/mnt/sdb8/sergei/AFSWD_debug/install/guile-1.8.7/include
-I/mnt/sdb8/sergei/AFSWD_debug/install/libiconv_pre-1.13.1/include
-I/mnt/sdb8/sergei/AFSWD_debug/install/libtool-2.4/include
-I/mnt/sdb8/sergei/AFSWD_debug/install/mpfr-2.4.2/include
-I/mnt/sdb8/sergei/AFSWD_debug/install/ncurses-5.7/include
-I/mnt/sdb8/sergei/AFSWD_debug/install/ncurses-5.7/include/ncurses
-I/mnt/sdb8/sergei/AFSWD_debug/install/readline-6.1/include
-I/mnt/sdb8/sergei/AFSWD_debug/install/tcl-8.5.9/include
-I/mnt/sdb8/sergei/AFSWD_debug/install/zlib-1.2.5/include
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/autogen-5.10/lib
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/binutils-2.21/lib
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/bison-2.4.3/lib
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/flex-2.5.35/lib
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/gcc-4.4.5/lib
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/gettext-0.18/lib
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/glibc-2.13/lib
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/gcc-4.4.5/lib/gcc/i686-pc-linux-gnu/4.4.5
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/gettext-0.18/lib
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/glibc-2.13/lib
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/glibc-2.13/lib/gconv
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/gmp-4.3.2/lib
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/guile-1.8.7/lib
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/libiconv_pre-1.13.1/lib
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/libtool-2.4/lib
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/mpfr-2.4.2/lib
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/ncurses-5.7/lib
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/readline-6.1/lib
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/tcl-8.5.9/lib
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/tcl-8.5.9/lib/expect5.44.1.14
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/zlib-1.2.5/lib -Xlinker --verbose
-Xlinker -nostdlib conftest.c 1> conftest.log 2>&1
",
containing among other things
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/gettext-0.18/lib
-Wl,-L/mnt/sdb8/sergei/AFSWD_debug/install/glibc-2.13/lib
, i.e. path to the crt*.o files, I'm getting in to be attached 'conftest.log'
file the following:
"
address@hidden:~/junk> cat -n conftest.log | grep /usr/lib
14
SEARCH_DIR("/mnt/sdb8/sergei/AFSWD_debug/install/binutils-2.21/i686-pc-linux-gnu/lib");
SEARCH_DIR("/mnt/sdb8/sergei/AFSWD_debug/install/binutils-2.21/lib");
SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib");
208 attempt to open /usr/lib/crt1.o succeeded
209 /usr/lib/crt1.o
210 attempt to open /usr/lib/crti.o succeeded
211 /usr/lib/crti.o
261 attempt to open /usr/lib/crtn.o succeeded
262 /usr/lib/crtn.o
address@hidden:~/junk>
",
i.e. the crt*.o files are taken from default rather than provided by me places.
OTOH, the linker does look for other stuff in provided by me places, e.g.:
"
address@hidden:~/junk> cat -n conftest.log | grep succeeded | grep glibc-2.13
242 attempt to open
/mnt/sdb8/sergei/AFSWD_debug/install/glibc-2.13/lib/libc.so succeeded
245 attempt to open
/mnt/sdb8/sergei/AFSWD_debug/install/glibc-2.13/lib/libc.so.6 succeeded
247 attempt to open
/mnt/sdb8/sergei/AFSWD_debug/install/glibc-2.13/lib/libc_nonshared.a succeeded
249 attempt to open
/mnt/sdb8/sergei/AFSWD_debug/install/glibc-2.13/lib/ld-linux.so.2 succeeded
address@hidden:~/junk>
".
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug ld/12479] New: 'ld' looks for stuff in default places despite -nostdlib on command line,
sergstesh at yahoo dot com <=