soc: intel_adsp/cavs_v20: correct linker syntax for ancient binutils#40319
Merged
cfriedt merged 2 commits intozephyrproject-rtos:mainfrom Nov 16, 2021
Merged
soc: intel_adsp/cavs_v20: correct linker syntax for ancient binutils#40319cfriedt merged 2 commits intozephyrproject-rtos:mainfrom
cfriedt merged 2 commits intozephyrproject-rtos:mainfrom
Conversation
This reverts commit 3cc14b2. Revert this due to the same reason as commit a29b66b: Unfortunately this mechanism doesn't seem to actually work on the SDK linker. The emitted sections, when passed a symbol name as the "start address" just appear wherever the "." variable was pointing (in this case, into the cached region). That breaks the kernel coherence layer, obviously. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Applying similar changes to cavs_v20 as in commit 8bc4539: Older binutils, like the (nine-year-old!) 2.23 version that powers many Cadence XCC toolchains, happen not to support the "~" operator to perform bitwise negation. And they generate an absolutely hilarious series of inscrutable error messages when they try to tell you this fairly simple fact. Just fold it into the constant. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
lyakh
approved these changes
Nov 15, 2021
lgirdwood
approved these changes
Nov 15, 2021
Contributor
|
FWIW: this is going to collide with #39603 , which does the same thing by making all the cAVS variants use the same linker script. Will be an easy rebase though, so no big deal to merge it first if there's need. |
Contributor
|
This revert broke |
This was referenced Nov 18, 2021
marc-hb
added a commit
to marc-hb/sof
that referenced
this pull request
Nov 18, 2021
Because ICL fails to build, .noinit/.cached section overlap since revert zephyrproject-rtos/zephyr#40319 Signed-off-by: Marc Herbert <marc.herbert@intel.com>
lgirdwood
pushed a commit
to thesofproject/sof
that referenced
this pull request
Nov 18, 2021
Because ICL fails to build, .noinit/.cached section overlap since revert zephyrproject-rtos/zephyr#40319 Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Contributor
This is not toolchain specific, same error with XtensaTools. Also specific to ICL, other platforms are fine |
Member
Author
|
The overlapping issue should be fixed by #40472 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This reverts commit 3cc14b2.
Revert this due to the same reason as commit
a29b66b:
and, applying similar changes to cavs_v20 as in commit
8bc4539: