sof/lmdk/cmake/ldscripts
Guennadi Liakhovetski 2c450e69fa loadable module: don't define PHDR twice
Loadable modules are linked, using a linked script, built by a cmake
script. That linker script includes multiple existing linker script
fragments. Each of those fragments defines 1 or more sections and
respective PHDRs. However, some of those scripts, e.g.
common_rodata_linker_script.txt and data_linker_script.txt add
sections to the same rodata_phdr PHDR. This makes the linker
allocate sections in that PHDR twice in the resulting output file:
one copy is real and the other one is filled with zeros. Removing
one of the PHDR definitions solves the problem and removes about
60KiB of empty space from the output file.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2023-12-15 09:46:37 +00:00
..
bss_linker_script.txt lmdk: Add support for dynamic memory allocation by a loadable modules 2023-11-09 11:28:30 +02:00
common_rodata_linker_script.txt loadable module: don't define PHDR twice 2023-12-15 09:46:37 +00:00
common_text_linker_script.txt loadable module: don't define PHDR twice 2023-12-15 09:46:37 +00:00
data_linker_script.txt lmdk: Remove content of the .module section from final module image 2023-11-09 11:28:30 +02:00
guard_linker_script.txt
memory_header_linker_script.txt.in
text_linker_script.txt lmdk: Instruct linker to keep .buildinfo section 2023-11-09 11:28:30 +02:00
xt_linker_script.txt