[5 PATCH] powerpc/motorola_power: Place any common data in the .bss section

Joel Sherrill joel at rtems.org
Sat Feb 27 16:15:43 UTC 2021


Looks good.

On Fri, Feb 26, 2021, 5:59 PM <chrisj at rtems.org> wrote:

> From: Chris Johns <chrisj at rtems.org>
>
> - It seems the compiler how defaults to -fcommon and this means
>   some uninitialised data is ignored.
>
> Closes #4266
> ---
>  bsps/powerpc/motorola_powerpc/bootloader/ppcboot.lds | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
>
> 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*)
>    }
>  }
> --
> 2.27.0
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210227/60a4912c/attachment.html>


More information about the devel mailing list