-
Notifications
You must be signed in to change notification settings - Fork 146
Fix embedded images built with the clang compiler #730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
ed15e3a
6082543
cd556ce
f6ec476
f7b2e5a
9982734
8583a87
bcd4d8b
ce24cd2
92ed25d
7591d67
82e8148
1bcac24
9778552
8572e20
a0a3dae
5cd5a19
8bfdf5b
e01c613
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,7 @@ SECTIONS | |
| . = ALIGN(4); | ||
| _end_text = .; | ||
| } > FLASH | ||
|
|
||
| .edidx : | ||
| { | ||
| . = ALIGN(4); | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,8 @@ | ||||||||||||||||||||||||
| /* Workaround for GNU ld mishandling AT() on output sections when no input | ||||||||||||||||||||||||
| * object contributes a matching section. Clang does not emit empty .data/.bss | ||||||||||||||||||||||||
| * sections in object files (GCC does), so GNU ld fails to assign the correct | ||||||||||||||||||||||||
| * LMA for the .data output section, producing a huge sparse binary. | ||||||||||||||||||||||||
| * Including this object ensures .data and .bss exist as inputs. | ||||||||||||||||||||||||
|
Comment on lines
+1
to
+5
|
||||||||||||||||||||||||
| /* Workaround for GNU ld mishandling AT() on output sections when no input | |
| * object contributes a matching section. Clang does not emit empty .data/.bss | |
| * sections in object files (GCC does), so GNU ld fails to assign the correct | |
| * LMA for the .data output section, producing a huge sparse binary. | |
| * Including this object ensures .data and .bss exist as inputs. | |
| /* Workaround for the linker used with Clang builds mishandling AT() on | |
| * output sections when no input object contributes a matching section. | |
| * Clang does not emit empty .data/.bss sections in object files (GCC does), | |
| * so the linker can assign the wrong LMA for the .data output section, | |
| * producing a huge sparse binary. Including this object ensures .data and | |
| * .bss exist as inputs. |
Copilot
AI
Apr 3, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new assembly file is missing the project’s standard wolfBoot GPL license header comment that appears at the top of other assembly sources. Add the usual license boilerplate (and any required file-level copyright line) to keep licensing consistent across the codebase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Clang rebuild condition includes
./config/examples/stm32n567.config, but that config file is not present in this repository. This makes the workflow inconsistent and will fail if the reusable workflow is ever called with thatinputs.config-filevalue; either add the missing config file or remove/rename this entry to an existing config path.