From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32106 invoked by alias); 9 Dec 2014 10:18:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 32023 invoked by uid 48); 9 Dec 2014 10:18:05 -0000 From: "y.gribov at samsung dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/64234] Statically sanitized executable does not export ASan symbols Date: Tue, 09 Dec 2014 10:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: y.gribov at samsung dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-12/txt/msg00860.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64234 --- Comment #2 from Yury Gribov --- (In reply to Jakub Jelinek from comment #1) > I think we can only recommend not to do that For legacy codebase (e.g. when sanitizing full distributions) you often don't have a choice. > implying -Wl,-E from -static-libasan is IMNSHO undesirable, > it doesn't make just the selected few symbols dynamic, but all, Right, -Wl,-E would be an overkill. AFAIK Clang automatically appends --dynamic-list=something.syms when it compiles sanitized executable. Perhaps we could do this as well?