[PATCH 2/2] linkers: Fix for targets with a small-data area

Joel Sherrill joel at rtems.org
Mon Jan 4 17:01:31 UTC 2016


What exactly does this fix and how does it fix it?

--joel

On Mon, Jan 4, 2016 at 4:16 AM, Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> ---
>  linkers/rtems-syms.cpp | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/linkers/rtems-syms.cpp b/linkers/rtems-syms.cpp
> index 97315ac..f0ffe94 100644
> --- a/linkers/rtems-syms.cpp
> +++ b/linkers/rtems-syms.cpp
> @@ -60,7 +60,7 @@ static const char* c_header[] =
>    " */",
>    "",
>    "extern const unsigned char rtems__rtl_base_globals[];",
> -  "extern const unsigned int rtems__rtl_base_globals_size;",
> +  "extern const unsigned int rtems__rtl_base_globals_size[];",
>    "",
>    "void rtems_rtl_base_sym_global_add (const unsigned char* , unsigned
> int );",
>    "",
> @@ -105,7 +105,7 @@ static const char* c_rtl_call_body[] =
>  {
>    "{",
>    "  rtems_rtl_base_sym_global_add (&rtems__rtl_base_globals[0],",
> -  "                                 rtems__rtl_base_globals_size);",
> +  "                                 rtems__rtl_base_globals_size[0]);",
>    "}",
>    0
>  };
> --
> 1.8.4.5
>
> _______________________________________________
> 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/20160104/3ddc44ae/attachment-0002.html>


More information about the devel mailing list