Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/platform/baytrail/baytrail.x.in
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,8 @@ SECTIONS

.fw_metadata (COPY) : ALIGN(1024)
{
KEEP (*(.fw_metadata))
KEEP (*(.fw_metadata));
KEEP (*(.fw_metadata.align));
} >fw_metadata_seg :metadata_entries_phdr

.fw_ready : ALIGN(4)
Expand Down
11 changes: 11 additions & 0 deletions src/platform/baytrail/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,24 @@
#include <ipc/header.h>
#include <ipc/info.h>
#include <kernel/abi.h>
#include <kernel/ext_manifest.h>
#include <config.h>
#include <version.h>
#include <errno.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

/*
* following element is created to assure proper section size alignment, besides
* of build tools limitation - removing `READONLY` flag when updated `.` value
* with `ALIGN(.)` in linker script.
*/
const struct {
char elem[0];
} ext_manifest_align_element
__aligned(EXT_MAN_ALIGN) __section(".fw_metadata.align") = {};

static const struct sof_ipc_fw_ready ready
__section(".fw_ready") = {
.hdr = {
Expand Down