From f1795e3418a3015761d24cc26e2abe2d293e0f6b Mon Sep 17 00:00:00 2001 From: Janne Kiiskila Date: Thu, 6 Sep 2018 01:04:38 +0300 Subject: [PATCH] IOTCORE-389 - bring back legacy alignment for Arm C6 Quite a few of the scatter files are not (yet) aligned to 8-byte boundaries and therefore the removal of legacy alignment feature (which is under deprecation warning, but it actually not YET deprecated) broke quite a few builds to this error: Error: L6244E: Exec region RW_IRAM1 address (0x200001ac) not aligned on a 8 byte boundary. We must bring this option now back to fix the builds. This option to ld (--legacyalign) can only be removed once all of the scatter files have been fixed. --- tools/profiles/debug.json | 2 +- tools/profiles/develop.json | 2 +- tools/profiles/release.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/profiles/debug.json b/tools/profiles/debug.json index 4966eb831d..dc0ace4e0b 100644 --- a/tools/profiles/debug.json +++ b/tools/profiles/debug.json @@ -23,7 +23,7 @@ "asm": [], "c": ["-D__ASSERT_MSG", "-std=gnu99"], "cxx": ["-fno-rtti", "-std=gnu++98"], - "ld": ["--verbose", "--remove", "--show_full_path"] + "ld": ["--verbose", "--remove", "--show_full_path", "--legacyalign"] }, "ARM": { "common": ["-c", "--gnu", "-Otime", "--split_sections", diff --git a/tools/profiles/develop.json b/tools/profiles/develop.json index adcdc72b83..1006de70a8 100644 --- a/tools/profiles/develop.json +++ b/tools/profiles/develop.json @@ -22,7 +22,7 @@ "asm": [], "c": ["-D__ASSERT_MSG", "-std=gnu99"], "cxx": ["-fno-rtti", "-std=gnu++98"], - "ld": ["--show_full_path"] + "ld": ["--show_full_path", "--legacyalign"] }, "ARM": { "common": ["-c", "--gnu", "-Otime", "--split_sections", diff --git a/tools/profiles/release.json b/tools/profiles/release.json index eab730a186..e0c36c979e 100644 --- a/tools/profiles/release.json +++ b/tools/profiles/release.json @@ -22,7 +22,7 @@ "asm": [], "c": ["-D__ASSERT_MSG", "-std=gnu99"], "cxx": ["-fno-rtti", "-std=gnu++98"], - "ld": ["--show_full_path"] + "ld": ["--show_full_path", "--legacyalign"] }, "ARM": { "common": ["-c", "--gnu", "-Ospace", "--split_sections",