arch/arm64: Modify ld to ensure that the bss section is aligned to 8 bytes

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
zhangyuan21 2023-05-18 08:58:48 +08:00 committed by Brennan Ashton
parent 36acd4fce5
commit 2049ca69b0
3 changed files with 6 additions and 3 deletions

View File

@ -87,9 +87,10 @@ SECTIONS
_edata = .; /* End+1 of .data */ _edata = .; /* End+1 of .data */
.bss : { /* BSS */ .bss : { /* BSS */
. = ALIGN(8);
_sbss = .; _sbss = .;
*(.bss) *(.bss)
. = ALIGN(1 << 3); . = ALIGN(8);
} :text } :text
. = ALIGN(4096); . = ALIGN(4096);
_ebss = .; _ebss = .;

View File

@ -87,9 +87,10 @@ SECTIONS
_edata = .; /* End+1 of .data */ _edata = .; /* End+1 of .data */
.bss : { /* BSS */ .bss : { /* BSS */
. = ALIGN(8);
_sbss = .; _sbss = .;
*(.bss) *(.bss)
. = ALIGN(1 << 3); . = ALIGN(8);
} :text } :text
. = ALIGN(4096); . = ALIGN(4096);
_ebss = .; _ebss = .;

View File

@ -87,9 +87,10 @@ SECTIONS
_edata = .; /* End+1 of .data */ _edata = .; /* End+1 of .data */
.bss : { /* BSS */ .bss : { /* BSS */
. = ALIGN(8);
_sbss = .; _sbss = .;
*(.bss) *(.bss)
. = ALIGN(1 << 3); . = ALIGN(8);
} :text } :text
. = ALIGN(4096); . = ALIGN(4096);
_ebss = .; _ebss = .;