[committed] libgcc: pru: Place mpyll into its own section

Message ID 20210513201428.21600-1-dimitar@dinux.eu
State New
Headers show
Series
  • [committed] libgcc: pru: Place mpyll into its own section
Related show

Commit Message

Dimitar Dimitrov May 13, 2021, 8:14 p.m.
Pushed as obvious.

This should help LD's --gc-sections feature to reduce final ELF size.

libgcc/ChangeLog:

	* config/pru/mpyll.S (__pruabi_mpyll): Place into own section.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>

---
 libgcc/config/pru/mpyll.S | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.20.1

Patch

diff --git a/libgcc/config/pru/mpyll.S b/libgcc/config/pru/mpyll.S
index 1aa12a63b2c..cd093bb6b72 100644
--- a/libgcc/config/pru/mpyll.S
+++ b/libgcc/config/pru/mpyll.S
@@ -29,6 +29,8 @@ 
 
 #include "pru-asm.h"
 
+	.section .text.__pruabi_mpyll, "ax"
+
 	.global	SYM(__pruabi_mpyll)
 	FUNC(__pruabi_mpyll)
 SYM(__pruabi_mpyll):