From e6c8765400a3253b86b5776bc388fbc078dcf18a Mon Sep 17 00:00:00 2001 From: Francois Berder <18538310+francois-berder@users.noreply.github.com> Date: Tue, 14 Jan 2020 22:49:28 +0000 Subject: [PATCH] cpu: mips_pic32mx: Fix unused .gcc_except_table section warning Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com> --- cpu/mips_pic32mx/Makefile.include | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cpu/mips_pic32mx/Makefile.include b/cpu/mips_pic32mx/Makefile.include index b5bf9d8278..8fb34a48a0 100644 --- a/cpu/mips_pic32mx/Makefile.include +++ b/cpu/mips_pic32mx/Makefile.include @@ -18,7 +18,6 @@ OFLAGS += \ --change-section-lma .init-0x80000000 \ --change-section-lma .fini-0x80000000 \ --change-section-lma .eh_frame-0x80000000 \ - --change-section-lma .gcc_except_table-0x80000000 \ --change-section-lma .jcr-0x80000000 \ --change-section-lma .ctors-0x80000000 \ --change-section-lma .dtors-0x80000000 \ @@ -26,3 +25,7 @@ OFLAGS += \ --change-section-lma .data-0x80000000 \ --change-section-lma .bss-0x80000000 \ --change-section-lma .startdata-0x80000000 \ + +ifneq (,$(filter cpp,$(FEATURES_USED))) +OFLAGS += --change-section-lma .gcc_except_table-0x80000000 +endif