From 5ed0035377d62da7d33072f10ea04ede27422455 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 14 Jul 2022 14:41:03 +0200 Subject: bsps: Sort .noinit* sections Sort the .noinit* input sections by name first, then by alignment if two sections have the same name. This allows the placement of begin/end symbols to initialize some areas with a special value. Update #4678. --- bsps/powerpc/gen5200/start/linkcmds.gen5200_base | 2 +- bsps/powerpc/mpc8260ads/start/linkcmds | 2 +- bsps/powerpc/shared/start/linkcmds.base | 2 +- bsps/powerpc/shared/start/linkcmds.share | 2 +- bsps/powerpc/ss555/start/linkcmds | 2 +- bsps/powerpc/virtex4/start/linkcmds | 2 +- bsps/powerpc/virtex5/start/linkcmds | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'bsps/powerpc') diff --git a/bsps/powerpc/gen5200/start/linkcmds.gen5200_base b/bsps/powerpc/gen5200/start/linkcmds.gen5200_base index bfa38939b8..ecf33f3fe2 100644 --- a/bsps/powerpc/gen5200/start/linkcmds.gen5200_base +++ b/bsps/powerpc/gen5200/start/linkcmds.gen5200_base @@ -296,7 +296,7 @@ SECTIONS { bsp_section_bss_size = bsp_section_bss_end - bsp_section_bss_start; .noinit (NOLOAD) : { - *(.noinit*) + *(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*))) } > RAM .rtemsstack (NOLOAD) : { diff --git a/bsps/powerpc/mpc8260ads/start/linkcmds b/bsps/powerpc/mpc8260ads/start/linkcmds index 024fc34edc..78d799a0f4 100644 --- a/bsps/powerpc/mpc8260ads/start/linkcmds +++ b/bsps/powerpc/mpc8260ads/start/linkcmds @@ -290,7 +290,7 @@ SECTIONS clear_end = .; .noinit (NOLOAD) : { - *(.noinit*) + *(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*))) } >ram .rtemsstack (NOLOAD) : { diff --git a/bsps/powerpc/shared/start/linkcmds.base b/bsps/powerpc/shared/start/linkcmds.base index a3a1b1108a..21fa729e38 100644 --- a/bsps/powerpc/shared/start/linkcmds.base +++ b/bsps/powerpc/shared/start/linkcmds.base @@ -358,7 +358,7 @@ SECTIONS { .noinit (NOLOAD) : ALIGN_WITH_INPUT { bsp_section_noinit_begin = .; - *(.noinit*) + *(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*))) bsp_section_noinit_end = .; } > REGION_WORK AT > REGION_WORK bsp_section_noinit_size = bsp_section_noinit_end - bsp_section_noinit_begin; diff --git a/bsps/powerpc/shared/start/linkcmds.share b/bsps/powerpc/shared/start/linkcmds.share index 86b02cb18e..bb799720ce 100644 --- a/bsps/powerpc/shared/start/linkcmds.share +++ b/bsps/powerpc/shared/start/linkcmds.share @@ -254,7 +254,7 @@ SECTIONS PROVIDE (__bss_end = .); } > CODE .noinit (NOLOAD) : { - *(.noinit*) + *(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*))) } > CODE .rtemsstack (NOLOAD) : { *(SORT(.rtemsstack.*)) diff --git a/bsps/powerpc/ss555/start/linkcmds b/bsps/powerpc/ss555/start/linkcmds index 18e8d34dd1..09ab05ab53 100644 --- a/bsps/powerpc/ss555/start/linkcmds +++ b/bsps/powerpc/ss555/start/linkcmds @@ -234,7 +234,7 @@ SECTIONS PROVIDE(_end = bss.end); .noinit (NOLOAD) : { - *(.noinit*) + *(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*))) } .rtemsstack (NOLOAD) : { diff --git a/bsps/powerpc/virtex4/start/linkcmds b/bsps/powerpc/virtex4/start/linkcmds index ff61396710..e053cf5aeb 100644 --- a/bsps/powerpc/virtex4/start/linkcmds +++ b/bsps/powerpc/virtex4/start/linkcmds @@ -253,7 +253,7 @@ SECTIONS PROVIDE(__bsp_ram_start = .); .noinit (NOLOAD) : { - *(.noinit*) + *(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*))) } >RAM .rtemsstack (NOLOAD) : { diff --git a/bsps/powerpc/virtex5/start/linkcmds b/bsps/powerpc/virtex5/start/linkcmds index ca81d57fde..15af537066 100644 --- a/bsps/powerpc/virtex5/start/linkcmds +++ b/bsps/powerpc/virtex5/start/linkcmds @@ -253,7 +253,7 @@ SECTIONS PROVIDE(__bsp_ram_start = .); .noinit (NOLOAD) : { - *(.noinit*) + *(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*))) } >RAM .rtemsstack (NOLOAD) : { -- cgit v1.2.3