<div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 11, 2018 at 11:09 AM Gedare Bloom <<a href="mailto:gedare@rtems.org">gedare@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">hi Sebastian,<br>
<br>
generally I'm ok, but what toolchains did you test this change for?<br>
<br>
does this work for BSPs that have not yet been modified themselves to<br>
use function/data sections and to have the KEEP() directives?<br></blockquote><div><br></div><div>You can check the list of BSPs  which do not have KEEP() directives here:</div><div><br></div><div><a href="https://devel.rtems.org/query?status=!closed&keywords=~KEEP">https://devel.rtems.org/query?status=!closed&keywords=~KEEP</a><br></div><div><br></div><div>Without LDFLAGS to use per-function/data item linking, the use of extra sections</div><div>does not matter.  We are using ELF on all targets now and there should be BSPs</div><div>on every architecture which use this.</div><div><br></div><div>Another question is do you have information on the size impact for the tests </div><div>before and after? I would expect some decline but not a great deal.</div><div><br></div><div>--joel</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
<br>
<br>
On Thu, Oct 11, 2018 at 4:22 AM, Sebastian Huber<br>
<<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>> wrote:<br>
> Signed-off-by: Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>><br>
> ---<br>
>  newlib/configure.host | 1 +<br>
>  1 file changed, 1 insertion(+)<br>
><br>
> diff --git a/newlib/configure.host b/newlib/configure.host<br>
> index 9e809c9a8..27bce36a1 100644<br>
> --- a/newlib/configure.host<br>
> +++ b/newlib/configure.host<br>
> @@ -637,6 +637,7 @@ case "${host}" in<br>
>    *-*-rtems*)<br>
>         default_newlib_io_long_long="yes"<br>
>         default_newlib_io_c99_formats="yes"<br>
> +       newlib_cflags="${newlib_cflags} -ffunction-sections -fdata-sections "<br>
>         newlib_cflags="${newlib_cflags} -D_COMPILING_NEWLIB"<br>
>  newlib_cflags="${newlib_cflags} -DCLOCK_PROVIDED -DMALLOC_PROVIDED -DEXIT_PROVIDED -DSIGNAL_PROVIDED -DGETREENT_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_NANOSLEEP -DHAVE_BLKSIZE -DHAVE_FCNTL -DHAVE_ASSERT_FUNC"<br>
>          # turn off unsupported items in posix directory<br>
> --<br>
> 2.16.4<br>
><br>
> _______________________________________________<br>
> devel mailing list<br>
> <a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div></div></div>