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>
This commit is contained in:
Dimitar Dimitrov 2021-05-09 16:10:45 +03:00 committed by Jeff Johnston
parent b585151016
commit 464c3f5d22
1 changed files with 2 additions and 2 deletions

View File

@ -32,6 +32,7 @@
.extern _impure_ptr .extern _impure_ptr
/* Handle return from syscall. */ /* Handle return from syscall. */
.section .text.__SC_ret, "ax"
.global __SC_ret .global __SC_ret
.type __SC_ret,@function .type __SC_ret,@function
.func .func
@ -52,6 +53,7 @@ __SC_ret_skip_errno_set:
.endfunc .endfunc
.macro SC fname, id .macro SC fname, id
.section .text.\fname, "ax"
.global \fname .global \fname
.type \fname,@function .type \fname,@function
.func .func
@ -62,8 +64,6 @@ __SC_ret_skip_errno_set:
.endfunc .endfunc
.endm .endm
.text
/* Syscalls are used only by simulator. Real HW /* Syscalls are used only by simulator. Real HW
users use other methods for communicating with users use other methods for communicating with
the host - remoteproc, rpmsg, shared memory. */ the host - remoteproc, rpmsg, shared memory. */