Re: [PATCH v4 4/8] recordmcount: Rewrite error/success handling
From: Steven Rostedt
Date: Thu Oct 10 2019 - 12:23:25 EST
On Wed, 9 Oct 2019 17:22:18 +0200
Uwe Kleine-KÃnig <u.kleine-koenig@xxxxxxxxxxxxxx> wrote:
> > diff --git a/scripts/recordmcount.h b/scripts/recordmcount.h
> > index 3796eb37fb12..6dbec46b7703 100644
> > --- a/scripts/recordmcount.h
> > +++ b/scripts/recordmcount.h
> > @@ -389,11 +389,8 @@ static int nop_mcount(Elf_Shdr const *const relhdr,
> > mcountsym = get_mcountsym(sym0, relp, str0);
> >
> > if (mcountsym == Elf_r_sym(relp) && !is_fake_mcount(relp)) {
> > - if (make_nop) {
> > + if (make_nop)
> > ret = make_nop((void *)ehdr, _w(shdr->sh_offset) + _w(relp->r_offset));
> > - if (ret < 0)
> > - return -1;
> > - }
>
> Yes, this patch fixes building for me.
May I add to my patch:
Reported-by: Uwe Kleine-KÃnig <u.kleine-koenig@xxxxxxxxxxxxxx>
Tested-by: Uwe Kleine-KÃnig <u.kleine-koenig@xxxxxxxxxxxxxx>
?
-- Steve