Skip to content

Commit

Permalink
lmdk: Instruct linker to keep .buildinfo section
Browse files Browse the repository at this point in the history
At the beginning of the .text section there must be a structure containing
information about the version of the api used by the library. It's absence
will cause sof to interpret a random literal as a version and incorrectly
load a library.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
  • Loading branch information
softwarecki committed Oct 20, 2023
1 parent 88920ba commit 0168efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lmdk/cmake/ldscripts/text_linker_script.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PHDRS {
SECTIONS {
.text : ALIGN(4096) {
_text_start = ABSOLUTE(.);
*(.buildinfo)
KEEP(*(.buildinfo))
*(.gnu.linkonce.literal.*)
*(.gnu.linkonce.lit4)
*(.literal)
Expand Down

0 comments on commit 0168efe

Please sign in to comment.