Uh oh!
There was an error while loading. Please reload this page.
rimage: manifest: Improve handling of empty segments - #8531
Conversation
If a given output segment type did not contain any input section (was empty), its size was incorrectly calculated as 1 and then rounded to the page size (4096). This resulted in an unnecessary segment in a output file. Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
lyakh
commented
Nov 28, 2023
We only have one section in the manifest, that contains both .data and .rodata, right? This is in fact not good, can this be fixed? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
If the RODATA segment does not contain any data, its type is marked as empty. Cleared the readonly flag because this segment also contains .data sections. Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
4c361b6 to
194a810Comparesoftwarecki
commented
Nov 28, 2023
I'm afraid there is no good solution for this. The manifest only supports max three segments. Currently we use them like this:
|
lyakh
commented
Nov 29, 2023
I don't really understand this assumption - modules are allowed to have .rodata, i.e. |
lgirdwood
commented
Nov 29, 2023
I think we have been merging .rodata and .data in the same manifest section to date using the linker and rimage. |
keqiaozhang
commented
Nov 30, 2023
SOFCI TEST |
Uh oh!
There was an error while loading. Please reload this page.
questions remain, but none of them are critical
Fixed output segment size calculation. If a given output segment type did not contain any input section (was empty), its size was incorrectly calculated as 1 and then rounded to the page size (4096). This resulted in an unnecessary segment in a output file.
Improved handling of empty RODATA segment. If the RODATA segment does not contain any data, its type is now marked as empty. Cleared the readonly flag of RODATA segment because this segment also contains .data sections.