On Thu, Jan 19, 2023 at 9:25 AM Jeff Law <[email protected]> wrote:
> > > On 1/18/23 21:27, Khem Raj wrote: > > Signed-off-by: Khem Raj <[email protected]> > > --- > > v1 -> v2: > > - Fix build on mingw > > - Backport fix to build with --disable-gdb > [ ... ] > Note I think this is going to run afoul of grub2 mkimage. > Yes I am seeing that in local builds for both rv32 and rv64 > In binutils-2.40 the assembler for risc-v was changed to use CALL_PLT > relocations rather than CALL relocations. grub2 does not handle > CALL_PLT relocations which in turn will cause a failure when > grub2-mkimage is used on risc-v. > > As far as I can tell, the assembler change literally just changes the > relocation number, they are otherwise treated the same. So I think > grub2 can be fixed by just treating R_RISCV_CALL_PLT just like > R_RISCV_CALL in kern/riscv/dl.c. I will try this and let you know > > Nelson, can you confirm that all your assembler change did was change > the relocation used in the resultant object? > > Jeff >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#176161): https://lists.openembedded.org/g/openembedded-core/message/176161 Mute This Topic: https://lists.openembedded.org/mt/96371613/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
