Re: libelf-0.175 breaks objtool
From: Christoph Hellwig
Date: Thu Apr 09 2020 - 03:41:40 EST
On Tue, Apr 07, 2020 at 08:44:11PM +0200, Arnd Bergmann wrote:
> That is very possible. The -g has been there since xfs was originally merged
> back in 2002, and I could not figure out why it was there (unlike the
> -DSTATIC=""
> and -DDEBUG flags that are set in the same line).
>
> On the other hand, my feeling is that setting -g should not cause problems
> with objtool, if CONFIG_DEBUG_INFO is ok.
I suspect we shouldn't force -g ourselves in xfs. Care to send a patch?