aboutsummaryrefslogtreecommitdiff
path: root/platform/generic/platform.c
diff options
context:
space:
mode:
authorKele Zhang <zhangcola2003@gmail.com>2024-10-01 23:05:51 +0000
committerAnup Patel <anup@brainfault.org>2024-11-06 16:29:39 +0530
commit0171cfcc7010bcd75277a2c452e9702d934230f9 (patch)
treed8260651f0c540c239151e2a8cdbd25b54cdf4d2 /platform/generic/platform.c
parent369c64517ee5c2753a33a5ff7695b4d2b6066e7b (diff)
downloadopensbi-0171cfcc7010bcd75277a2c452e9702d934230f9.zip
opensbi-0171cfcc7010bcd75277a2c452e9702d934230f9.tar.gz
opensbi-0171cfcc7010bcd75277a2c452e9702d934230f9.tar.bz2
Makefile: enable --gc-sections
The --gc-sections option enables the linker to perform garbage collection of unreferenced code and data, thereby reducing the binary size. The -ffunction-sections option will place each function into a separate section, so it is necessary to add .text.* to the linker script. Signed-off-by: Kele Zhang <zhangcola2003@gmail.com> Signed-off-by: Yuan Tan <tanyuan@tinylab.org> Signed-off-by: Zhangjin Wu <falcon@tinylab.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Xiang W <wxjstz@126.com> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'platform/generic/platform.c')
0 files changed, 0 insertions, 0 deletions