Skip to content

Commit a292dea

Browse files
committed
x86_64: Remove 16mb padding, page-align BSS
1 parent 0b36467 commit a292dea

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/arch/x86_64/linker.ld

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,7 @@ SECTIONS
187187
LONG (0);
188188
}
189189

190-
/*
191-
* XXX: We need this padding because in solo5 initialization some variables
192-
* in the bss are set to non-zero values. So, without the padding the ELFs
193-
* symbol table would get modified.
194-
*/
195-
. += 0x1000000;
196-
197-
.bss :
190+
.bss ALIGN(0x1000) :
198191
{
199192
_BSS_START_ = .;
200193
*(.bss .bss.* .gnu.linkonce.b.*)
@@ -208,5 +201,4 @@ SECTIONS
208201
PROVIDE (end = .);
209202
PROVIDE (_ELF_END_ = .);
210203
PROVIDE (_LOAD_END_ = .);
211-
212204
}

0 commit comments

Comments
 (0)