forked from Imagelibrary/rtems
bsp/motorola_powerpc: Fix linker command file
Fix the __size symbol value to reflect the total size of the bootloader. This prevents a bootloader crash with application images above a certain threshold (e.g. fileio sample program). Update #3727.
This commit is contained in:
@@ -79,6 +79,7 @@ SECTIONS
|
||||
*(.sbss)
|
||||
*(.bss)
|
||||
. = ALIGN(4);
|
||||
_bss_end = .;
|
||||
}
|
||||
.abs 0 : {
|
||||
__got2_entries = ABSOLUTE((_FIXUP_TABLE_ - _GOT2_TABLE_) >>2);
|
||||
@@ -89,7 +90,7 @@ SECTIONS
|
||||
_rtems_gz_size = ABSOLUTE(_binary_rtems_gz_end - _binary_rtems_gz_start);
|
||||
_rtems_size = ABSOLUTE(__rtems_end - __rtems_start);
|
||||
__bss_words = ABSOLUTE(SIZEOF(.bss)>>2);
|
||||
__size = ABSOLUTE(.);
|
||||
__size = ABSOLUTE(_bss_end);
|
||||
}
|
||||
|
||||
/DISCARD/ :
|
||||
|
||||
Reference in New Issue
Block a user