From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115503 invoked by alias); 2 Dec 2019 19:03:02 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 115494 invoked by uid 89); 2 Dec 2019 19:03:02 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=About, HX-Languages-Length:500, H*f:sk:8dc5bbd, H*i:sk:8dc5bbd X-HELO: albireo.enyo.de From: Florian Weimer To: Adhemerval Zanella Cc: libc-alpha@sourceware.org Subject: Re: [PATCH 5/7] elf: Enable relro for static build References: <20191129210327.26434-1-adhemerval.zanella@linaro.org> <20191129210327.26434-5-adhemerval.zanella@linaro.org> <874kykfjyy.fsf@mid.deneb.enyo.de> <104ece90-2d18-d655-dafd-1084e32a9c4f@linaro.org> <87h82iy48o.fsf@mid.deneb.enyo.de> <8dc5bbdc-f0fa-03ad-1289-2b1b55f035c1@linaro.org> Date: Mon, 02 Dec 2019 19:03:00 -0000 In-Reply-To: <8dc5bbdc-f0fa-03ad-1289-2b1b55f035c1@linaro.org> (Adhemerval Zanella's message of "Mon, 2 Dec 2019 15:54:25 -0300") Message-ID: <87d0d6y2hp.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2019-12/txt/msg00061.txt.bz2 * Adhemerval Zanella: > About testing, I am not sure what kind of coverage we are aiming > here. My initial approach would to check if a write on a variable > set to .data.rel.so does trigger a SEGSEGV signal and check with > some different combinations (-z now, -z lazy, static, dynamic, > pie, nopie). Do you have something more elaborated in mind? Yes, that's what my tests do. I will post them once we've stabilized the dynamic linker again.