Project

General

Profile

Actions

Feature #10605

closed

loader: boot2 build should use ldscript

Added by Toomas Soome over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
2019-03-29
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

The gptzfsboot and isoboot build depend on exact ordering of [entry] function and files and we need to be careful not to include extra code we do not want/need in boot2.

Simplify our life by using linker script to state the entry symbol and exclude linker sets. Entry function needs to be stored as very first function and we do not provide additional interactive commands. Also our fake multiboot structure needs to be at the beginning of the binary.

While there, clean up the Makefiles about {} constructs and build with -ffunction-sections -fdata-sections to make --gc-sections option to have chance to work.

Actions

Also available in: Atom PDF