Skip to content

Commit

Permalink
fix a linking issue in stage0_bin_tdx
Browse files Browse the repository at this point in the history
The current linker creates a zero size `.boot` section and set its
type to `PROGBITS`. We don't need it for the TDX virtual firmware.
So just removing it.

Change-Id: I5001923a5e6007a283e1b72b42cff7f68161e6dd
  • Loading branch information
dingelish committed Sep 17, 2024
1 parent 47d5e9c commit c4039a1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions stage0_bin_tdx/layout.ld
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ HIDDEN(DESCRIPTOR_PRESENT = 1 << 47);
*/
PHDRS
{
boot PT_LOAD;
ap_bss PT_LOAD;
bss PT_LOAD;
data PT_LOAD;
Expand All @@ -84,12 +83,7 @@ SECTIONS {
* These sections have to be marked NOLOAD, otherwise you risk ending up with a 4GB BIOS image.
*/

.boot 0x1000 (NOLOAD) : {
KEEP(*(.boot))
. = ALIGN(4K);
} > ram_low : boot

.ap_bss (NOLOAD) : AT (ADDR(.boot) + SIZEOF(.boot)) {
.ap_bss 0x1000 (NOLOAD) : {
ap_bss_start = .;
*(.ap_bss .ap_bss.*)
} > ram_low : ap_bss
Expand Down

0 comments on commit c4039a1

Please sign in to comment.