From 63c0bd9eac985aa696e3aed31987e7dcb70ffeae Mon Sep 17 00:00:00 2001 From: jdiamond Date: Sun, 19 Jan 2020 01:13:40 -0800 Subject: [PATCH] use .lcomm to declare vars in .bss section --- arch/x86/boot0/boot0.S | 3 +-- arch/x86/bootstrap.S | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/x86/boot0/boot0.S b/arch/x86/boot0/boot0.S index ec87163..f5414bb 100644 --- a/arch/x86/boot0/boot0.S +++ b/arch/x86/boot0/boot0.S @@ -11,8 +11,7 @@ msg_please_reboot: .asciz "An error was encountered, please reboot" .section .bss -boot_drv: - .byte 1 + .lcomm boot_drv , 1 .section .data #ifdef BOOTLOADER_PROTECTED_MODE_ENABLED diff --git a/arch/x86/bootstrap.S b/arch/x86/bootstrap.S index eddc287..e342b14 100644 --- a/arch/x86/bootstrap.S +++ b/arch/x86/bootstrap.S @@ -7,8 +7,7 @@ .section .bss .global boot_drive_nb -boot_drive_nb: - .byte 1 + .lcomm boot_drive_nb , 1 .section .text