Skip to content

Commit f3d4891

Browse files
committed
lmdk: Instruct linker to keep .buildinfo section
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>
1 parent 5b6a56d commit f3d4891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lmdk/cmake/ldscripts/text_linker_script.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ PHDRS {
1111
SECTIONS {
1212
.text : ALIGN(4096) {
1313
_text_start = ABSOLUTE(.);
14-
*(.buildinfo)
14+
KEEP(*(.buildinfo))
1515
*(.gnu.linkonce.literal.*)
1616
*(.gnu.linkonce.lit4)
1717
*(.literal)

0 commit comments

Comments
 (0)