diff options
author | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2015-12-19 22:20:46 +0300 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2016-01-16 23:06:45 +0300 |
commit | 5b6f357fe73a3fab11870cceeac5f2fecd6d7e02 (patch) | |
tree | acdbe7f430128e4ed2318e1fda671292544e2ce9 /arch/mips/include/asm/asm.h | |
parent | 113492988b0f471f9fe4f8f987a52c58a782d96f (diff) | |
download | u-boot-5b6f357fe73a3fab11870cceeac5f2fecd6d7e02.tar.xz |
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 <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'arch/mips/include/asm/asm.h')
-rw-r--r-- | arch/mips/include/asm/asm.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 /* |