summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2019-04-19 05:30:01 +0000
committerRaptor Engineering Development Team <support@raptorengineering.com>2019-04-19 05:31:31 +0000
commita617682b21adb39921b65647c81ea9bf42c998d1 (patch)
tree0d5df32730a650baa57a4f88d96789d2da30e6a1
parent58e422dede5932f5b8e01a88315001b0525cc478 (diff)
downloadtalos-occ-a617682b21adb39921b65647c81ea9bf42c998d1.zip
talos-occ-a617682b21adb39921b65647c81ea9bf42c998d1.tar.gz
Fix build failure on GCC8
When upgrading to GCC8, an .eh_frame section is automatically added. This consumes too much space in the relatively small OCC address map, leading to compilation failure. Pass -fno-asynchronous-unwind-tables to GCC to disable .eh_frame section generation.
-rw-r--r--src/occBootLoader/img_defs.mk3
-rw-r--r--src/occ_405/img_defs.mk3
-rw-r--r--src/occ_gpe0/img_defs.mk1
-rw-r--r--src/occ_gpe1/img_defs.mk1
4 files changed, 6 insertions, 2 deletions
diff --git a/src/occBootLoader/img_defs.mk b/src/occBootLoader/img_defs.mk
index fe8859d..cc29b25 100644
--- a/src/occBootLoader/img_defs.mk
+++ b/src/occBootLoader/img_defs.mk
@@ -226,7 +226,8 @@ PIPE-CFLAGS = -pipe -Wa,-m405
GCC-CFLAGS += -g -Wall -fsigned-char -msoft-float \
-m32 -mbig-endian -mcpu=405 -mmultiple -mstring \
-meabi -msdata=eabi -ffreestanding -fno-common \
- -fno-inline-functions-called-once -std=gnu89
+ -fno-inline-functions-called-once \
+ -fno-asynchronous-unwind-tables -std=gnu89
CFLAGS = -c $(GCC-CFLAGS) $(PIPE-CFLAGS) $(GCC-O-LEVEL) $(INCLUDES)
diff --git a/src/occ_405/img_defs.mk b/src/occ_405/img_defs.mk
index c68c91c..1c515d0 100644
--- a/src/occ_405/img_defs.mk
+++ b/src/occ_405/img_defs.mk
@@ -253,7 +253,8 @@ PIPE-CFLAGS = -pipe -Wa,-m405
GCC-CFLAGS += -g -Wall -fsigned-char -msoft-float \
-m32 -mbig-endian -mcpu=405 -mmultiple -mstring \
-meabi -msdata=eabi -ffreestanding -fno-common \
- -fno-inline-functions-called-once -std=gnu89
+ -fno-inline-functions-called-once \
+ -fno-asynchronous-unwind-tables -std=gnu89
CFLAGS = -c $(GCC-CFLAGS) $(PIPE-CFLAGS) $(GCC-O-LEVEL) $(INCLUDES)
diff --git a/src/occ_gpe0/img_defs.mk b/src/occ_gpe0/img_defs.mk
index 15ff9ac..bb497a6 100644
--- a/src/occ_gpe0/img_defs.mk
+++ b/src/occ_gpe0/img_defs.mk
@@ -209,6 +209,7 @@ GCC-CFLAGS += -msdata=eabi
GCC-CFLAGS += -ffreestanding
GCC-CFLAGS += -fno-common
GCC-CFLAGS += -fno-inline-functions-called-once
+GCC-CFLAGS += -fno-asynchronous-unwind-tables
CFLAGS = -c -std=gnu89 $(GCC-CFLAGS) $(PIPE-CFLAGS) $(GCC-O-LEVEL) $(INCLUDES)
diff --git a/src/occ_gpe1/img_defs.mk b/src/occ_gpe1/img_defs.mk
index b705145..4c8d531 100644
--- a/src/occ_gpe1/img_defs.mk
+++ b/src/occ_gpe1/img_defs.mk
@@ -216,6 +216,7 @@ GCC-CFLAGS += -meabi
GCC-CFLAGS += -ffreestanding
GCC-CFLAGS += -fno-common
GCC-CFLAGS += -fno-inline-functions-called-once
+GCC-CFLAGS += -fno-asynchronous-unwind-tables
GCC-CFLAGS += -std=gnu89
CFLAGS = -c $(GCC-CFLAGS) $(PIPE-CFLAGS) $(GCC-O-LEVEL) $(INCLUDES)
OpenPOWER on IntegriCloud