cmake: Add the TEXT_START location to zephyr_linker_sources()

Places linker code at or near the beginning of the text section.

Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
This commit is contained in:
Øyvind Rønningstad 2019-11-28 12:01:53 +01:00 committed by Anas Nashif
commit d1c2a4edbf
8 changed files with 45 additions and 3 deletions

View file

@ -133,6 +133,12 @@ SECTIONS
KEEP(*(".openocd_debug.*"))
_image_text_start = .;
/* Located in generated directory. This file is populated by the
* zephyr_linker_sources() Cmake function.
*/
#include <snippets-text-start.ld>
*(.text .text.*)
*(.gnu.linkonce.t.*)
*(.eh_frame)