diff options
author | Dimitar Dimitrov <dimitar@dinux.eu> | 2021-05-09 16:10:45 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2021-06-09 21:12:30 +0300 |
commit | 464c3f5d22c926c17ce1d4c686c6d15bce57469f (patch) | |
tree | 60783e60f5963af628a981b0f9cb4888ffbab6fb /libgloss/pru | |
parent | b58515101634274c4f75185d746d71a753e7cc11 (diff) |
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>
Diffstat (limited to 'libgloss/pru')
-rw-r--r-- | libgloss/pru/syscalls.S | 4 |
1 files 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. */ |