From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 136CF385E00F; Wed, 25 Mar 2020 09:37:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 136CF385E00F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585129040; bh=Gc4Pq5G4IRR2Z2bENfLEehx6xRsTeLdpmlK+3PaiCrU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=W99POOs7ipIIF8ABcfLa1ZqF/yRM6p8ju3HeNUPH/27wDSmvTvgAIyx23sZiayjfh /OyjGsb6XSNesRqIXxOFzH9ogoRjtwQlOJU4uVSIei50qOkTPs5QrvSpcBqlZNneYO iOHRQkl7bmD2ngTJ+Lzqyw+XM33En+pA869Iaiyw= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/94307] Provide a way to declare the *SAN exception handler -fsanitize-undefined-trap-on-error Date: Wed, 25 Mar 2020 09:37:19 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2020 09:37:20 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94307 --- Comment #4 from Jakub Jelinek --- Well, they could just make them alias of each other, that is not the big de= al, I guess they don't want to waste .rodata space on the data that provides the details to those functions and waste .text on passing the addresses of such data to the handlers. Of course, it would be much harder to understand wha= t is going on when the functions don't tell you what exactly went wrong (but tha= t is the same with -fsanitize-undefined-trap-on-error).=