lkml.org 
[lkml]   [2016]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH] lkdtm: add test for executing .rodata
    Date
    On Tuesday 16 February 2016 13:49:04 Kees Cook wrote:
    > }
    >
    > +static void __attribute__((__section__(".rodata,\"a\",@progbits#")))
    > +do_nothing_rodata(void)
    > +{
    > + return;
    > +}
    > +
    > static void do_nothing(void)
    > {
    >

    I think this also needs to be marked "noinline" to ensure that the
    function does not get eliminated. I've seen clang do that on
    execute_location() recently and submitted a patch for that.

    Arnd

    \
     
     \ /
      Last update: 2016-02-17 23:01    [W:3.955 / U:0.076 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site