bugGNU GRUB - Bugs: bug #60283, trunk fails to compile on riscv32


You are not allowed to post comments on this tracker with your current authentication level.

bug #60283: trunk fails to compile on riscv32

Submitted by:  Khem Raj <khem>
Submitted on:  Wed 24 Mar 2021 02:35:52 AM UTC  
Category:  Compilation Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Khem Raj
Open/Closed:  Open Release: 
Release:  Git master Reproducibility:  Every Time
Planned Release:  None

Thu 25 Mar 2021 03:52:01 AM UTC, comment #2: 

This patch ignores the overflow check for 32bit ELF. Is this right thing to do?

(file #51136)

Khem Raj <khem>
Thu 25 Mar 2021 03:49:06 AM UTC, comment #1: 

The issue is reproducible with attached testcase

$ cd rv32-test
$ /tmp/grub/grub-mkimage -c cfg -p /EFI/BOOT -d grub-core  -O riscv32-efi -o ./grub-efi-bootriscv32.efi

/tmp/grub/grub-mkimage: error: target 17c6 not reachable from pc=936.

(file #51135)

Khem Raj <khem>
Wed 24 Mar 2021 02:35:52 AM UTC, original submission:  

I am seeing below error

WARNING: TOPDIR/build/tmpfs/work/riscv32-yoe-linux/grub-efi/2.04+2.06~rc1-r0/temp/run.do_mkimage.648370:157 exit 1 from 'grub-mkimage -c ../cfg -p /EFI/BOOT -d ./grub-core/ -O riscv32-efi -o ./grub-efi-bootINVALID.efi boot linux ext2 fat serial part_msdos part_gpt normal efi_gop iso9660 configfile search loadenv test chain echo efinet eval font gettext gfxterm gzio help lsefi read regexp search_fs_file search_fs_uuid search_label terminal terminfo tftp time'

2.04 does not have this error.

Khem Raj <khem>


Attached Files
file #51136:  pcrel-reloc-overflow.patch added by khem (1KiB - application/octet-stream - patch)
file #51135:  rv32-test.tar.xz added by khem (57KiB - application/x-xz - test case)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by khem
  • -email is unavailable- added by khem (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-03-25 khem Attached File- => Added pcrel-reloc-overflow.patch, #51136
    2021-03-25 khem Attached File- => Added rv32-test.tar.xz, #51135
    2021-03-24 khem Carbon-Copy- => Added alistair@alistair23.me

    Back to the top

    Powered by Savane 3.7