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:
parent
36acd4fce5
commit
2049ca69b0
@ -87,9 +87,10 @@ SECTIONS
|
||||
_edata = .; /* End+1 of .data */
|
||||
|
||||
.bss : { /* BSS */
|
||||
. = ALIGN(8);
|
||||
_sbss = .;
|
||||
*(.bss)
|
||||
. = ALIGN(1 << 3);
|
||||
. = ALIGN(8);
|
||||
} :text
|
||||
. = ALIGN(4096);
|
||||
_ebss = .;
|
||||
|
@ -87,9 +87,10 @@ SECTIONS
|
||||
_edata = .; /* End+1 of .data */
|
||||
|
||||
.bss : { /* BSS */
|
||||
. = ALIGN(8);
|
||||
_sbss = .;
|
||||
*(.bss)
|
||||
. = ALIGN(1 << 3);
|
||||
. = ALIGN(8);
|
||||
} :text
|
||||
. = ALIGN(4096);
|
||||
_ebss = .;
|
||||
|
@ -87,9 +87,10 @@ SECTIONS
|
||||
_edata = .; /* End+1 of .data */
|
||||
|
||||
.bss : { /* BSS */
|
||||
. = ALIGN(8);
|
||||
_sbss = .;
|
||||
*(.bss)
|
||||
. = ALIGN(1 << 3);
|
||||
. = ALIGN(8);
|
||||
} :text
|
||||
. = ALIGN(4096);
|
||||
_ebss = .;
|
||||
|
Loading…
Reference in New Issue
Block a user