From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2134) id C249839A2828; Wed, 9 Jun 2021 18:12:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C249839A2828 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] libgloss: pru: Place sim syscalls into their own sections X-Act-Checkin: newlib-cygwin X-Git-Author: Dimitar Dimitrov X-Git-Refname: refs/heads/master X-Git-Oldrev: b58515101634274c4f75185d746d71a753e7cc11 X-Git-Newrev: 464c3f5d22c926c17ce1d4c686c6d15bce57469f Message-Id: <20210609181237.C249839A2828@sourceware.org> Date: Wed, 9 Jun 2021 18:12:37 +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:12:37 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=464c3f5d22c926c17ce1d4c686c6d15bce57469f commit 464c3f5d22c926c17ce1d4c686c6d15bce57469f Author: Dimitar Dimitrov Date: Sun May 9 16:10:45 2021 +0300 libgloss: pru: Place sim syscalls into their own sections This should help reduce final ELF size if using --gc-sections linker option. Signed-off-by: Dimitar Dimitrov Diff: --- libgloss/pru/syscalls.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgloss/pru/syscalls.S b/libgloss/pru/syscalls.S index 3ad0d9215..252231e90 100644 --- a/libgloss/pru/syscalls.S +++ b/libgloss/pru/syscalls.S @@ -32,6 +32,7 @@ .extern _impure_ptr /* Handle return from syscall. */ + .section .text.__SC_ret, "ax" .global __SC_ret .type __SC_ret,@function .func @@ -52,6 +53,7 @@ __SC_ret_skip_errno_set: .endfunc .macro SC fname, id + .section .text.\fname, "ax" .global \fname .type \fname,@function .func @@ -62,8 +64,6 @@ __SC_ret_skip_errno_set: .endfunc .endm - .text - /* Syscalls are used only by simulator. Real HW users use other methods for communicating with the host - remoteproc, rpmsg, shared memory. */