Ensure the bss is aligned to a 4-byte address as we use 4-byte aligned
stores to clear it. While here reduce the alignment of the data from 4k to 16 byte aligned. This should be more than enough, without wasting too much space. Sponsored by: ABT Systems Ltd
This commit is contained in:
parent
f6d0271729
commit
cf9bbb5d8a
@ -15,7 +15,7 @@ SECTIONS
|
||||
} =0
|
||||
_etext = .;
|
||||
PROVIDE (etext = .);
|
||||
. = ALIGN(4096);
|
||||
. = ALIGN(16);
|
||||
.data :
|
||||
{
|
||||
*(.data *.data.*)
|
||||
@ -24,6 +24,7 @@ SECTIONS
|
||||
*(.rodata.*)
|
||||
CONSTRUCTORS
|
||||
|
||||
. = ALIGN(4);
|
||||
PROVIDE (__bss_start = .);
|
||||
*(.sbss)
|
||||
*(.scommon)
|
||||
@ -31,6 +32,7 @@ SECTIONS
|
||||
*(.dynbss)
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
. = ALIGN(4);
|
||||
PROVIDE (__bss_end = .);
|
||||
}
|
||||
/* We want the small data sections together, so single-instruction offsets
|
||||
|
Loading…
Reference in New Issue
Block a user