This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug driver/55379] -static -static-libasan doesn't create static binary


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55379

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2012-11-18 14:52:24 UTC ---
It should be

[hjl@gnu-tools-1 gcc]$ ./xgcc -B./ x.o  -o x  -faddress-sanitizer
-B../x86_64-unknown-linux-gnu/libsanitizer/asan/.libs/ -static-libasan -static
[hjl@gnu-tools-1 gcc]$ ldd a.out 
    linux-vdso.so.1 =>  (0x00007fff91699000)
    libstdc++.so.6 => /lib64/libstdc++.so.6 (0x0000003341200000)
    libm.so.6 => /lib64/libm.so.6 (0x0000003338200000)
    libgomp.so.1 => /lib64/libgomp.so.1 (0x0000003343e00000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x000000333aa00000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003337a00000)
    libc.so.6 => /lib64/libc.so.6 (0x0000003337200000)
    /lib64/ld-linux-x86-64.so.2 (0x0000003336e00000)
    librt.so.1 => /lib64/librt.so.1 (0x0000003337e00000)
[hjl@gnu-tools-1 gcc]$


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]