diff options
author | danh-arm <dan.handley@arm.com> | 2014-04-15 09:39:47 +0100 |
---|---|---|
committer | danh-arm <dan.handley@arm.com> | 2014-04-15 09:39:47 +0100 |
commit | 9c2c763d22469b0f73d76469442b474c08497e7a (patch) | |
tree | 9f5df4a46f1dc38cb3b0fe5f44ec830779e9322b /bl1 | |
parent | 4b79cce54d0978817caba335d57c529f510f86e6 (diff) | |
parent | 0a30cf54af7bb1f77b405062b1d5b44e809d0290 (diff) |
Merge pull request #36 from athoelke/at/gc-sections-80
Using GCC --gc-sections to eliminate unused code and data
Diffstat (limited to 'bl1')
-rw-r--r-- | bl1/aarch64/bl1_entrypoint.S | 5 | ||||
-rw-r--r-- | bl1/aarch64/bl1_exceptions.S | 3 | ||||
-rw-r--r-- | bl1/bl1.ld.S | 8 |
3 files changed, 7 insertions, 9 deletions
diff --git a/bl1/aarch64/bl1_entrypoint.S b/bl1/aarch64/bl1_entrypoint.S index dc63f39..012b779 100644 --- a/bl1/aarch64/bl1_entrypoint.S +++ b/bl1/aarch64/bl1_entrypoint.S @@ -29,12 +29,11 @@ */ #include <arch.h> +#include <asm_macros.S> .globl bl1_entrypoint - .section .text, "ax"; .align 3 - /* ----------------------------------------------------- * bl1_entrypoint() is the entry point into the trusted * firmware code when a cpu is released from warm or @@ -42,7 +41,7 @@ * ----------------------------------------------------- */ -bl1_entrypoint: ; .type bl1_entrypoint, %function +func bl1_entrypoint /* --------------------------------------------- * Perform any processor specific actions upon * reset e.g. cache, tlb invalidations etc. diff --git a/bl1/aarch64/bl1_exceptions.S b/bl1/aarch64/bl1_exceptions.S index a80d178..e57f228 100644 --- a/bl1/aarch64/bl1_exceptions.S +++ b/bl1/aarch64/bl1_exceptions.S @@ -178,8 +178,7 @@ SErrorA32: .align 7 - .section .text, "ax" -process_exception: +func process_exception sub sp, sp, #0x40 stp x0, x1, [sp, #0x0] stp x2, x3, [sp, #0x10] diff --git a/bl1/bl1.ld.S b/bl1/bl1.ld.S index 012ff58..81c5443 100644 --- a/bl1/bl1.ld.S +++ b/bl1/bl1.ld.S @@ -43,8 +43,8 @@ SECTIONS { ro : { __RO_START__ = .; - *bl1_entrypoint.o(.text) - *(.text) + *bl1_entrypoint.o(.text*) + *(.text*) *(.rodata*) *(.vectors) __RO_END__ = .; @@ -57,7 +57,7 @@ SECTIONS . = NEXT(16); /* Align LMA */ .data : ALIGN(16) { /* Align VMA */ __DATA_RAM_START__ = .; - *(.data) + *(.data*) __DATA_RAM_END__ = .; } >RAM AT>ROM @@ -73,7 +73,7 @@ SECTIONS */ .bss : ALIGN(16) { __BSS_START__ = .; - *(.bss) + *(.bss*) *(COMMON) __BSS_END__ = .; } >RAM |