[PATCH v5 3/6] firmware: Explicitly pass -pie to the linker, not just the driver

Anup Patel anup at brainfault.org
Sun Jul 11 07:37:06 PDT 2021


On Sun, Jul 11, 2021 at 5:45 PM Bin Meng <bmeng.cn at gmail.com> wrote:
>
> On Sun, Jul 11, 2021 at 10:29 AM Jessica Clarke <jrtc27 at jrtc27.com> wrote:
> >
> > When using Clang with a bare-metal triple, -pie does not get passed to
> > the linker as it's not normally a thing that makes sense, unlike GCC
> > which will unconditionally forward it on and potentially result in a
> > linker error. However, LLD does support it, and manually forwarding it
> > on works as desired, so do so to fully support FW_PIC with Clang and
> > LLD.
> >
> > Signed-off-by: Jessica Clarke <jrtc27 at jrtc27.com>
> > ---
> >  firmware/objects.mk | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> Tested-by: Bin Meng <bmeng.cn at gmail.com>

Reviewed-by: Anup Patel <anup.patel at wdc.com>

Applied this patch to the riscv/opensbi repo.

Thanks,
Anup

>
> --
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi



More information about the opensbi mailing list