summaryrefslogtreecommitdiffstats
path: root/bsps/x86_64
diff options
context:
space:
mode:
authorAmaan Cheval <amaan.cheval@gmail.com>2018-08-13 15:51:47 +0530
committerJoel Sherrill <joel@rtems.org>2018-08-13 10:48:20 -0500
commitab971bf5e37a057432c267175ddf12d6799a2b35 (patch)
treeebc850151dee80f7bbd28ecac40987f34516cfaa /bsps/x86_64
parentlibtests/POSIX: Fix warnings and style. (diff)
downloadrtems-ab971bf5e37a057432c267175ddf12d6799a2b35.tar.bz2
bsps/x86_64: Reorganize header files and compile-options
Updates #2898.
Diffstat (limited to 'bsps/x86_64')
-rw-r--r--bsps/x86_64/amd64/config/amd64.cfg3
1 files changed, 3 insertions, 0 deletions
diff --git a/bsps/x86_64/amd64/config/amd64.cfg b/bsps/x86_64/amd64/config/amd64.cfg
index 3c4492d9d3..ad861cb867 100644
--- a/bsps/x86_64/amd64/config/amd64.cfg
+++ b/bsps/x86_64/amd64/config/amd64.cfg
@@ -11,3 +11,6 @@ CPU_CFLAGS = -mno-red-zone
# way we can avoid linker-time relocation errors spawning from values being
# larger than their optimized container sizes.
CPU_CFLAGS += -mcmodel=large
+CPU_CFLAGS += -Werror=return-type
+
+LDFLAGS = -Wl,--gc-sections