Re: [PATCH] Makefile: fix GDB warning with CONFIG_RELR

From: Lee Jones
Date: Mon May 24 2021 - 04:03:16 EST


On Sat, 22 May 2021, Masahiro Yamada wrote:

> On Fri, May 21, 2021 at 6:36 PM Lee Jones <lee.jones@xxxxxxxxxx> wrote:
> >
> > On Tue, 23 Mar 2021 at 19:06, Nathan Chancellor <nathan@xxxxxxxxxx> wrote:
> >>
> >> On Thu, Mar 18, 2021 at 05:07:06PM -0700, Nick Desaulniers wrote:
> >> > GDB produces the following warning when debugging kernels built with
> >> > CONFIG_RELR:
> >> >
> >> > BFD: /android0/linux-next/vmlinux: unknown type [0x13] section `.relr.dyn'
> >> >
> >> > when loading a kernel built with CONFIG_RELR into GDB. It can also
> >> > prevent debugging symbols using such relocations.
> >> >
> >> > Peter sugguests:
> >> > [That flag] means that lld will use dynamic tags and section type
> >> > numbers in the OS-specific range rather than the generic range. The
> >> > kernel itself doesn't care about these numbers; it determines the
> >> > location of the RELR section using symbols defined by a linker script.
> >> >
> >> > Link: https://github.com/ClangBuiltLinux/linux/issues/1057
> >> > Suggested-by: Peter Collingbourne <pcc@xxxxxxxxxx>
> >> > Signed-off-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>
> >>
> >> Reviewed-by: Nathan Chancellor <nathan@xxxxxxxxxx>
> >
> >
> > Masahiro,
> >
> > Would you mind sharing your plans for this reviewed patch please?
>
>
> Do you want me to pick up this?
>
> Or, do you think it should be done by the committer of
> 5cf896fb6be3effd9aea455b22213e27be8bdb1d ?

Not sure it matters a whole bunch TBH. If you have the bandwidth and
are willing to merge it, please feel free to do so.

--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog