lkml.org 
[lkml]   [2018]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/2] stackleak: Update for arm64
    Date
    arm64 has another layer of indirection in the RTL.
    Account for this in the plugin.

    Signed-off-by: Laura Abbott <labbott@redhat.com>
    ---
    Fixed from previous version to be a vector expression.
    ---
    scripts/gcc-plugins/stackleak_plugin.c | 4 ++++
    1 file changed, 4 insertions(+)

    diff --git a/scripts/gcc-plugins/stackleak_plugin.c b/scripts/gcc-plugins/stackleak_plugin.c
    index 6ac2a055ec61..0a55ecaf44df 100644
    --- a/scripts/gcc-plugins/stackleak_plugin.c
    +++ b/scripts/gcc-plugins/stackleak_plugin.c
    @@ -253,6 +253,10 @@ static unsigned int stackleak_cleanup_execute(void)
    * that insn.
    */
    body = PATTERN(insn);
    + /* arm64 is different */
    + if (GET_CODE(body) == PARALLEL)
    + body = XVECEXP(body, 0, 0);
    +
    if (GET_CODE(body) != CALL)
    continue;

    --
    2.14.3
    \
     
     \ /
      Last update: 2018-05-03 09:44    [W:2.992 / U:0.204 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site