From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16558 invoked by alias); 8 Feb 2013 09:25:52 -0000 Received: (qmail 16221 invoked by uid 48); 8 Feb 2013 09:25:26 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/55309] gcc's address-sanitizer 66% slower than clang's Date: Fri, 08 Feb 2013 09:25: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-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2013-02/txt/msg00766.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55309 --- Comment #29 from Jakub Jelinek 2013-02-08 09:25:22 UTC --- I think not in the default memory model, it can support only first 2GB of code+data. Otherwise you couldn't call from the start of executable to a function at the end of it (if text segment is bigger than 2GB) or reference data from a function at the start of executable that is located at the end of data segment. So, with zero offset model, your restriction on programs would be essentially, non-PIE executables (i.e. -mcmodel={small,medium,large} are unsupported), with 0x7fff8000 (or perhaps even 0x7ffff000) it would be non-PIE executables of -mcmodel=medium is unsupported and -mcmodel=large is unsupported, unless linked to an address above shadow mem end. -mcmodel=small supported.