Skip to content

Commit

Permalink
Merge pull request #13127 from francois-berder/remove-objcopy-warning
Browse files Browse the repository at this point in the history
cpu: mips_pic32*: Fix unused .gcc_except_table section warning
  • Loading branch information
benpicco committed Apr 26, 2020
2 parents 70a5580 + 674006b commit 4ceff67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cpu/mips_pic32mx/Makefile.include
Expand Up @@ -18,11 +18,14 @@ 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 \
--change-section-lma .rodata-0x80000000 \
--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
5 changes: 4 additions & 1 deletion cpu/mips_pic32mz/Makefile.include
Expand Up @@ -21,11 +21,14 @@ 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 \
--change-section-lma .rodata-0x80000000 \
--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

0 comments on commit 4ceff67

Please sign in to comment.