From: Daniel Schwierzeck Date: Sat, 19 Dec 2015 19:20:46 +0000 (+0100) Subject: MIPS: create .text sub-sections for assembler functions X-Git-Tag: v2016.03-rc1~299^2~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5b6f357fe73a3fab11870cceeac5f2fecd6d7e02;p=u-boot MIPS: create .text sub-sections for assembler functions Put all functions coded in assembly in sub-sections of section .text. This allows the linker to garbage collect unused assembly functions too. Signed-off-by: Daniel Schwierzeck --- diff --git a/arch/mips/include/asm/asm.h b/arch/mips/include/asm/asm.h index 855f70708e..8c9c4e2714 100644 --- a/arch/mips/include/asm/asm.h +++ b/arch/mips/include/asm/asm.h @@ -59,6 +59,7 @@ symbol: .align 2; \ .type symbol, @function; \ .ent symbol, 0; \ + .section .text.symbol, "x"; \ symbol: .frame sp, 0, ra /* @@ -68,7 +69,8 @@ symbol: .frame sp, 0, ra .globl symbol; \ .align 2; \ .type symbol, @function; \ - .ent symbol, 0; \ + .ent symbol, 0; \ + .section .text.symbol, "x"; \ symbol: .frame sp, framesize, rpc /*