[lkml]   [2012]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] perf, tool: Fix perf stack to non executable on x86_64
    Le mercredi 01 février 2012 à 13:54 +0100, Jiri Olsa a écrit :
    > By adding following objects:
    > bench/mem-memset-x86-64-asm.o
    > bench/mem-memcpy-x86-64-asm.o
    > the x86_64 perf binary ended up with executable stack.
    > The reason was that above objects are assembler sourced and
    > are missing the GNU-stack note section. In such case the linker
    > assumes that the final binary should not be restricted at all
    > and mark the stack as RWX.
    > Adding section ".note.GNU-stack" definition to mentioned objects,
    > with all flags disabled, thus omiting those objects from linker
    > stack flags decision.
    > Signed-off-by: Jiri Olsa <>
    > ---

    Good catch, thanks !

    Acked-by: Eric Dumazet <>

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2012-02-03 10:53    [W:0.043 / U:11.628 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site