mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-23 20:49:56 +01:00
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>
This commit is contained in:
parent
113492988b
commit
5b6f357fe7
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue