grub: recent gcc needs -fno-reorder-functions
Recent gcc do reorder functions (when there is a main() ?) and this does break the special builds like grub stage2 (or loader for that matter). Use -fno-reorder-functions to stop it (the alternate is to use linker map).
Updated by Electric Monk almost 4 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit e153cda9f9660e385e8f468253f80e59f5d454d7 Author: Toomas Soome <firstname.lastname@example.org> Date: 2018-08-20T17:36:29.000Z 9754 grub: recent gcc needs -fno-reorder-functions Reviewed by: Igor Kozhukhov <email@example.com> Reviewed by: Andrew Stormont <firstname.lastname@example.org> Reviewed by: Yuri Pankov <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>