loader: BIOS loader ld script needs to use KEEP statement with linker sets
The binutils 2.37 has introduced feature to produce "cleaner" binaries, unfortunately it also does affect our BIOS loader build. With current source, the linked ELF binary (loader.sym), has removed linker set functions, because those are not directly referenced. To fix, we need to tell ld to keep linker set symbols, https://wiki.osdev.org/Linker_Scripts#KEEP
Testing done: build with binutils 2.37, confirm the BIOS loader is functional.
Updated by Electric Monk 10 months ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 6963446fe0c14e57937622dbef439717f823d078 Author: Toomas Soome <email@example.com> Date: 2021-07-30T08:21:23.000Z 13970 loader: BIOS loader ld script needs to use KEEP statement with linker sets Reviewed by: Andy Fiddaman <firstname.lastname@example.org> Approved by: Hans Rosenfeld <email@example.com>