Re: grub-mkstandalone Error

2020-09-21 Thread Vladimir 'phcoder' Serbinenko
On Mon, Sep 21, 2020 at 10:53 AM Wasim Khan  wrote:
>
> Hi,
>
> I am facing below error while generating standalone image if I use Linaro GCC 
> 7.4-2019.02 toolchain.
>
> $ grub-mkstandalone --directory=./grub-core -O arm64-efi -o grub.efi 
> --modules "tftp net efinet gzio linux efifwsetup part_gpt part_msdos font 
> gfxterm all_video" /boot/grub/grub.cfg=./grub.cfg
> grub-mkstandalone: error: relocation 0x113 is not implemented yet.
This is relocation R_AARCH64_ADR_PREL_PG_HI21
The weird part is that I implemented it back in 2016. Can you retest
with official source?
>
> Above command works fine if I use linaro-5.4.1 toolchain.
> Can somebody please help to know why the issues is coming with newer 
> toolchain (like GCC 7.4-2019.02) and any fix for that ?
>
>
> Regards,
> Wasim
>


-- 
Regards
Vladimir 'phcoder' Serbinenko



grub-mkstandalone Error

2020-09-21 Thread Wasim Khan
Hi,

I am facing below error while generating standalone image if I use Linaro GCC 
7.4-2019.02 toolchain.

$ grub-mkstandalone --directory=./grub-core -O arm64-efi -o grub.efi --modules 
"tftp net efinet gzio linux efifwsetup part_gpt part_msdos font gfxterm 
all_video" /boot/grub/grub.cfg=./grub.cfg
grub-mkstandalone: error: relocation 0x113 is not implemented yet.

Above command works fine if I use linaro-5.4.1 toolchain.
Can somebody please help to know why the issues is coming with newer toolchain 
(like GCC 7.4-2019.02) and any fix for that ?


Regards,
Wasim



Re: grub-mkstandalone: error: `/usr/lib/grub/i386-pc/kernel.img' is miscompiled: its start address is 0x9000 instead of 0x8200: ld.gold bug?.

2017-08-30 Thread Vladimir 'phcoder' Serbinenko
This is not an upstream problem. It's distros using a buggy linker. However
I moved link address to 0x9000 to avoid this problem in the future
Le Thu, Aug 17, 2017 à 3:39 PM, Julian Brost <jul...@0x4a42.net> a écrit :

> The command
>
> grub-mkstandalone \
>   --format=i386-multiboot \
>   --directory=/usr/lib/grub/i386-pc \
>   --output=/dev/null
>
> results in the error message
>
> grub-mkstandalone: error: `/usr/lib/grub/i386-pc/kernel.img' is
> miscompiled: its start address is 0x9000 instead of 0x8200: ld.gold
> bug?.
>
> The problem can be reproduced with version 2.02 on Arch Linux and Debian
> sid, as well as on Debian stretch with version 2.02beta3.
>
> ___
> Bug-grub mailing list
> Bug-grub@gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-grub
>
___
Bug-grub mailing list
Bug-grub@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-grub


grub-mkstandalone: error: `/usr/lib/grub/i386-pc/kernel.img' is miscompiled: its start address is 0x9000 instead of 0x8200: ld.gold bug?.

2017-08-17 Thread Julian Brost
The command

grub-mkstandalone \
  --format=i386-multiboot \
  --directory=/usr/lib/grub/i386-pc \
  --output=/dev/null

results in the error message

grub-mkstandalone: error: `/usr/lib/grub/i386-pc/kernel.img' is
miscompiled: its start address is 0x9000 instead of 0x8200: ld.gold
bug?.

The problem can be reproduced with version 2.02 on Arch Linux and Debian
sid, as well as on Debian stretch with version 2.02beta3.

___
Bug-grub mailing list
Bug-grub@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-grub