[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210319151542.hju53tpeuqdiyf3g@treble>
Date: Fri, 19 Mar 2021 10:15:42 -0500
From: Josh Poimboeuf <jpoimboe@...hat.com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: x86@...nel.org, jgross@...e.com, mbenes@...e.cz,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 5/9] objtool: Rework rebuild_reloc logic
On Fri, Mar 19, 2021 at 10:22:54AM +0100, Peter Zijlstra wrote:
> @@ -814,6 +814,11 @@ struct section *elf_create_reloc_section
> }
> }
>
> +static inline bool is_reloc_section(struct section *reloc)
> +{
> + return reloc->base && reloc->base->reloc == reloc;
> +}
I believe the 2nd condition will always be true, so it can just be
'return reloc->base'.
--
Josh
Powered by blists - more mailing lists