From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2134) id 5303939B3468; Wed, 9 Jun 2021 18:08:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5303939B3468 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Jeff Johnston To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] pru: Enable -ffunction-sections and -fdata-sections X-Act-Checkin: newlib-cygwin X-Git-Author: Dimitar Dimitrov X-Git-Refname: refs/heads/master X-Git-Oldrev: a9165ea07ce3a99bbfd294ada9c0fd54db738bb9 X-Git-Newrev: b58515101634274c4f75185d746d71a753e7cc11 Message-Id: <20210609180818.5303939B3468@sourceware.org> Date: Wed, 9 Jun 2021 18:08:18 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2021 18:08:18 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b58515101634274c4f75185d746d71a753e7cc11 commit b58515101634274c4f75185d746d71a753e7cc11 Author: Dimitar Dimitrov 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 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