Project

General

Profile

Actions

Bug #13970

closed

loader: BIOS loader ld script needs to use KEEP statement with linker sets

Added by Toomas Soome 12 months ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

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.

Actions

Also available in: Atom PDF