diff options
author | Chris Johns <chrisj@rtems.org> | 2021-02-26 13:54:37 -1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2021-02-28 13:17:05 +1100 |
commit | 96918affc34e50cccdf30b1c8e0fe0e73d122d78 (patch) | |
tree | 057c25ed296413ed2b969f3f0bc416e15d397e31 /bsps | |
parent | powerpc/motorola_power: Link all text sections into the executable image (diff) | |
download | rtems-96918affc34e50cccdf30b1c8e0fe0e73d122d78.tar.bz2 |
powerpc/motorola_power: Place any common data in the .bss section
- It seems the compiler how defaults to -fcommon and this means
some uninitialised data is ignored.
Closes #4266
Diffstat (limited to 'bsps')
-rw-r--r-- | bsps/powerpc/motorola_powerpc/bootloader/ppcboot.lds | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bsps/powerpc/motorola_powerpc/bootloader/ppcboot.lds b/bsps/powerpc/motorola_powerpc/bootloader/ppcboot.lds index a87a07cfd7..501acc40dc 100644 --- a/bsps/powerpc/motorola_powerpc/bootloader/ppcboot.lds +++ b/bsps/powerpc/motorola_powerpc/bootloader/ppcboot.lds @@ -40,6 +40,7 @@ SECTIONS *(.text) *(.text*) *(.sdata2) + *(.sdata2*) *(.rodata) *(.rodata*) } @@ -72,13 +73,17 @@ SECTIONS *(.data) *(.data*) *(.sdata) + *(.sdata*) . = ALIGN(4); _data_end = .; } .bss : { *(.sbss) + *(.sbss*) *(.bss) + *(.bss*) + *(COMMON) . = ALIGN(4); _bss_end = .; } @@ -96,6 +101,7 @@ SECTIONS /DISCARD/ : { - *(.comment) + *(.comment*) + *(.debug*) } } |