diff options
author | Chris Johns <chrisj@rtems.org> | 2019-03-06 21:15:56 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2019-03-07 06:33:47 +1100 |
commit | ec1dd51aae0cbce0560b3d72a6f86c938340f2fc (patch) | |
tree | ac4868a4d7a9a6af5ee2b523231002142570006c /bsps/powerpc/haleakala | |
parent | testsuite: Make the OPERATION_COUNT a test configuration parameter. (diff) | |
download | rtems-ec1dd51aae0cbce0560b3d72a6f86c938340f2fc.tar.bz2 |
libdl: Add small data support to the remaining PowerPC BSPs.
Updates #3687
Diffstat (limited to 'bsps/powerpc/haleakala')
-rw-r--r-- | bsps/powerpc/haleakala/start/linkcmds | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bsps/powerpc/haleakala/start/linkcmds b/bsps/powerpc/haleakala/start/linkcmds index 7cd993c0c9..dad3e5cc76 100644 --- a/bsps/powerpc/haleakala/start/linkcmds +++ b/bsps/powerpc/haleakala/start/linkcmds @@ -24,6 +24,10 @@ MEMORY { /*FLASH : ORIGIN = 0xFFE00000, LENGTH = 16M*/ } +/* + * Max sdata/bss. + */ +bsp_section_small_data_area_size = 65536; SECTIONS { @@ -217,19 +221,27 @@ SECTIONS .sdata : { . = ALIGN (4); PROVIDE (__SDATA_START__ = .); + bsp_section_sdata_begin = .; sdata.start = .; *(.sdata*) *(.gnu.linkonce.s.*) sdata.end = .; + bsp_section_sdata_end = .; } > RAM /* Zeroed small data addressed as offsets from r13 */ .sbss : { . = ALIGN (4); PROVIDE(__SBSS_START__ = .); + bsp_section_sbss_begin = .; sbss.start = .; *(.sbss .sbss.* *.gnu.linkonce.sb.*); sbss.end = .; + bsp_section_sbss_end = .; + bsp_section_sdata_libdl_begin = .; + . = DEFINED(bsp_section_small_data_area_size) ? + bsp_section_sdata_begin + bsp_section_small_data_area_size : .; + bsp_section_sdata_libdl_end = .; } > RAM PROVIDE(__SBSS_END__ = .); |