public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] pru: Enable -ffunction-sections and -fdata-sections
@ 2021-06-09 18:08 Jeff Johnston
  0 siblings, 0 replies; only message in thread
From: Jeff Johnston @ 2021-06-09 18:08 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b58515101634274c4f75185d746d71a753e7cc11

commit b58515101634274c4f75185d746d71a753e7cc11
Author: Dimitar Dimitrov <dimitar@dinux.eu>
Date:   Sun May 9 16:11:36 2021 +0300

    pru: Enable -ffunction-sections and -fdata-sections
    
    Recent binutils support --gc-sections for pru, so let's make use of
    them.
    
    Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>

Diff:
---
 newlib/configure.host | 1 +
 1 file changed, 1 insertion(+)

diff --git a/newlib/configure.host b/newlib/configure.host
index 38fec0597..4ac53342a 100644
--- a/newlib/configure.host
+++ b/newlib/configure.host
@@ -303,6 +303,7 @@ case "${host_cpu}" in
 	newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED"
 	newlib_cflags="${newlib_cflags} -DNO_EXEC"
 	newlib_cflags="${newlib_cflags} -DSMALL_MEMORY"
+	newlib_cflags="${newlib_cflags} -ffunction-sections -fdata-sections "
 	default_newlib_nano_malloc="yes"
 	default_newlib_atexit_dynamic_alloc="no"
 	machine_dir=pru


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-09 18:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-09 18:08 [newlib-cygwin] pru: Enable -ffunction-sections and -fdata-sections Jeff Johnston

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).