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 over 5 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit e153cda9f9660e385e8f468253f80e59f5d454d7 Author: Toomas Soome <email@example.com> Date: 2018-08-20T17:36:29.000Z 9754 grub: recent gcc needs -fno-reorder-functions Reviewed by: Igor Kozhukhov <firstname.lastname@example.org> Reviewed by: Andrew Stormont <email@example.com> Reviewed by: Yuri Pankov <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>