From 8b779620d3bad024b83650ecfeaafd7b3ae26ccf Mon Sep 17 00:00:00 2001 From: Kévin Petit Date: Tue, 24 Mar 2015 14:03:57 +0000 Subject: Add support to indicate size and end of assembly functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In order for the symbol table in the ELF file to contain the size of functions written in assembly, it is necessary to report it to the assembler using the .size directive. To fulfil the above requirements, this patch introduces an 'endfunc' macro which contains the .endfunc and .size directives. It also adds a .func directive to the 'func' assembler macro. The .func/.endfunc have been used so the assembler can fail if endfunc is omitted. Fixes ARM-Software/tf-issues#295 Change-Id: If8cb331b03d7f38fe7e3694d4de26f1075b278fc Signed-off-by: Kévin Petit --- services/std_svc/psci/psci_helpers.S | 2 ++ 1 file changed, 2 insertions(+) (limited to 'services/std_svc/psci/psci_helpers.S') diff --git a/services/std_svc/psci/psci_helpers.S b/services/std_svc/psci/psci_helpers.S index 9a51d5c2..1d99158e 100644 --- a/services/std_svc/psci/psci_helpers.S +++ b/services/std_svc/psci/psci_helpers.S @@ -120,6 +120,7 @@ do_stack_maintenance: ldp x19, x20, [sp], #16 ldp x29, x30, [sp], #16 ret +endfunc psci_do_pwrdown_cache_maintenance /* ----------------------------------------------------------------------- @@ -164,3 +165,4 @@ func psci_do_pwrup_cache_maintenance ldp x29, x30, [sp], #16 ret +endfunc psci_do_pwrup_cache_maintenance -- cgit