public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jeff Johnston <jjohnstn@sourceware.org>
To: newlib-cvs@sourceware.org
Subject: [newlib-cygwin] libgloss: pru: Place sim syscalls into their own sections
Date: Wed,  9 Jun 2021 18:12:37 +0000 (GMT)	[thread overview]
Message-ID: <20210609181237.C249839A2828@sourceware.org> (raw)

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

commit 464c3f5d22c926c17ce1d4c686c6d15bce57469f
Author: Dimitar Dimitrov <dimitar@dinux.eu>
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 <dimitar@dinux.eu>

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.  */


                 reply	other threads:[~2021-06-09 18:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210609181237.C249839A2828@sourceware.org \
    --to=jjohnstn@sourceware.org \
    --cc=newlib-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).