diff options
author | Andrew Thoelke <andrew.thoelke@arm.com> | 2014-03-18 13:46:55 +0000 |
---|---|---|
committer | Andrew Thoelke <andrew.thoelke@arm.com> | 2014-03-26 21:54:37 +0000 |
commit | 0a30cf54af7bb1f77b405062b1d5b44e809d0290 (patch) | |
tree | 9b7acf35e8b41803fb7a836dce428a9924ba1587 /lib/semihosting | |
parent | dccc537a7243d784e0b8b81ce1634e385c3b048b (diff) |
Place assembler functions in separate sections
This extends the --gc-sections behaviour to the many assembler
support functions in the firmware images by placing each function
into its own code section. This is achieved by creating a 'func'
macro used to declare each function label.
Fixes ARM-software/tf-issues#80
Change-Id: I301937b630add292d2dec6d2561a7fcfa6fec690
Diffstat (limited to 'lib/semihosting')
-rw-r--r-- | lib/semihosting/aarch64/semihosting_call.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/semihosting/aarch64/semihosting_call.S b/lib/semihosting/aarch64/semihosting_call.S index 9ece6249..e6a96752 100644 --- a/lib/semihosting/aarch64/semihosting_call.S +++ b/lib/semihosting/aarch64/semihosting_call.S @@ -28,10 +28,10 @@ * POSSIBILITY OF SUCH DAMAGE. */ - .globl semihosting_call +#include <asm_macros.S> - .section .text, "ax" + .globl semihosting_call -semihosting_call: ; .type semihosting_call, %function +func semihosting_call hlt #0xf000 ret |