public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/55379] -static -static-libasan pass -Bdynamic  to linker
Date: Sun, 18 Nov 2012 14:56:00 -0000	[thread overview]
Message-ID: <bug-55379-4-O76nAXcmEb@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-55379-4@http.gcc.gnu.org/bugzilla/>


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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|-static -static-libasan     |-static -static-libasan
                   |doesn't create static       |pass -Bdynamic  to linker
                   |binary                      |

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2012-11-18 14:55:57 UTC ---
[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 
-v
Reading specs from ./specs
COLLECT_GCC=./xgcc
COLLECT_LTO_WRAPPER=./lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /export/gnu/import/git/sources/gcc/configure
--enable-languages=c,c++ --disable-bootstrap --prefix=/usr/gcc-4.8.0
--with-local-prefix=/usr/local --enable-gnu-indirect-function --with-fpmath=sse
: (reconfigured) /export/gnu/import/git/sources/gcc/configure
--disable-bootstrap --prefix=/usr/gcc-4.8.0 --with-local-prefix=/usr/local
--enable-gnu-indirect-function --with-fpmath=sse CFLAGS=-g CXXFLAGS=-g
--enable-languages=c,c++,lto --no-create --no-recursion
Thread model: posix
gcc version 4.8.0 20121117 (experimental) (GCC) 
COMPILER_PATH=./:../x86_64-unknown-linux-gnu/libsanitizer/asan/.libs/
LIBRARY_PATH=./:../x86_64-unknown-linux-gnu/libsanitizer/asan/.libs/:/lib/../lib64/:/usr/lib/../lib64/:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-B' './' '-o' 'x' '-faddress-sanitizer' '-B'
'../x86_64-unknown-linux-gnu/libsanitizer/asan/.libs/' '-static-libasan'
'-static' '-v' '-mtune=generic' '-march=x86-64'
 ./collect2 -m elf_x86_64 -static -o x /lib/../lib64/crt1.o
/lib/../lib64/crti.o ./crtbeginT.o -L.
-L../x86_64-unknown-linux-gnu/libsanitizer/asan/.libs -L/lib/../lib64
-L/usr/lib/../lib64 x.o -Bstatic -lasan -Bdynamic --start-group -lgcc -lgcc_eh
-lc --end-group ./crtend.o /lib/../lib64/crtn.o
[hjl@gnu-tools-1 gcc]$


  parent reply	other threads:[~2012-11-18 14:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-18 14:51 [Bug driver/55379] New: -static -static-libasan doesn't create static binary hjl.tools at gmail dot com
2012-11-18 14:52 ` [Bug driver/55379] " hjl.tools at gmail dot com
2012-11-18 14:56 ` hjl.tools at gmail dot com [this message]
2012-11-18 18:58 ` [Bug driver/55379] -static -static-libasan pass -Bdynamic to linker konstantin.s.serebryany at gmail dot com
2012-11-18 19:35 ` hjl.tools at gmail dot com
2012-11-22 11:14 ` [Bug sanitizer/55379] " jakub at gcc dot gnu.org
2012-11-22 11:31 ` jakub at gcc dot gnu.org
2012-11-22 15:17 ` hjl at gcc dot gnu.org
2012-11-22 15:18 ` hjl.tools at gmail dot com
2012-11-22 15:19 ` hjl.tools at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-55379-4-O76nAXcmEb@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).