Reply-To: kernel-hardening@lists.openwall.com From: "PaX Team" Date: Thu, 18 Feb 2016 22:27:35 +0100 MIME-Version: 1.0 Message-ID: <56C63747.819.280B3F5@pageexec.freemail.hu> In-reply-to: References: <20160216214904.GA23723@www.outflux.net>, <56C59DC5.19217.28FA99@pageexec.freemail.hu>, Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Subject: [kernel-hardening] Re: [PATCH] lkdtm: add test for executing .rodata To: Ard Biesheuvel Cc: Laura Abbott , Kees Cook , Greg Kroah-Hartman , Mark Rutland , Jeremy Linton , Arnd Bergmann , "kernel-hardening@lists.openwall.com" , LKML List-ID: On 18 Feb 2016 at 12:34, Ard Biesheuvel wrote: > However, that does not fix the issue Kees is trying to solve, where a > .rodata section is emitted with the "x" bit set, which causes the > linker to complain: > > /tmp/cc50ffWw.s: Assembler messages: > /tmp/cc50ffWw.s:2: Warning: setting incorrect section attributes for > .rodata.text in that case why not use a top-level asm statement to set the section and its attributes (and compile the file with fno-toplevel-reorder)?