Skip to content

Commit 63c0bd9

Browse files
committed
use .lcomm to declare vars in .bss section
1 parent 673f8de commit 63c0bd9

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

arch/x86/boot0/boot0.S

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ msg_please_reboot:
1111
.asciz "An error was encountered, please reboot"
1212

1313
.section .bss
14-
boot_drv:
15-
.byte 1
14+
.lcomm boot_drv , 1
1615

1716
.section .data
1817
#ifdef BOOTLOADER_PROTECTED_MODE_ENABLED

arch/x86/bootstrap.S

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
.section .bss
88

99
.global boot_drive_nb
10-
boot_drive_nb:
11-
.byte 1
10+
.lcomm boot_drive_nb , 1
1211

1312
.section .text
1413

0 commit comments

Comments
 (0)