[OE-core] [PATCH] machine/arch-riscv: Fix newlib and baremetal builds

Khem Raj raj.khem at gmail.com
Tue Nov 5 20:08:22 UTC 2019


On Tue, Nov 5, 2019 at 10:10 AM Alistair Francis <alistair.francis at wdc.com>
wrote:

> Fix the following errors for newlib and baremetal libcs:
> ld: unrecognized option '--hash-style=sysv'
> ld: unrecognized option '--hash-style=gnu'
>
> Signed-off-by: Alistair Francis <alistair.francis at wdc.com>
> ---
>  meta/conf/machine/include/riscv/arch-riscv.inc | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/meta/conf/machine/include/riscv/arch-riscv.inc
> b/meta/conf/machine/include/riscv/arch-riscv.inc
> index 19f8f3e211..8ed9874389 100644
> --- a/meta/conf/machine/include/riscv/arch-riscv.inc
> +++ b/meta/conf/machine/include/riscv/arch-riscv.inc
> @@ -8,3 +8,8 @@ TUNE_CCARGS .= ""
>
>  # QEMU usermode fails with invalid instruction error (For riscv32)
>  MACHINE_FEATURES_BACKFILL_CONSIDERED_append =
> "${@bb.utils.contains('TUNE_FEATURES', 'riscv32', ' qemu-usermode', '', d)}"
> +
> +# Fix: ld: unrecognized option '--hash-style=sysv'
> +LINKER_HASH_STYLE_libc-newlib = ""
> +# Fix: ld: unrecognized option '--hash-style=gnu'
> +LINKER_HASH_STYLE_libc-baremetal = ""


Change is good. However comments could be unified into a single one where
It says —hash-style is unsupported

>
> --
> 2.23.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20191105/6b0a6785/attachment.html>


More information about the Openembedded-core mailing list