2 * Common linker file for all architectures/environments
5#include <xtf/numbers.h>
9 * Architecture must provide:
15#include <arch/link.lds.h>
20 text PT_LOAD FLAGS(7); /* RWE */
21 note PT_NOTE FLAGS(4); /* R */
35 __start_user_text = .;
48 __start_user_data = .;
77 *(.bss.user.page_aligned)
86 * Linker games to use virtual addresses at 0 without triggering NULL pointer
87 * "logic" and associated compiler optimisations.
91ASSERT(IS_ALIGNED(__start_user_text, PAGE_SIZE), "__start_user_text misaligned");
92ASSERT(IS_ALIGNED(__end_user_text, PAGE_SIZE), "__end_user_text misaligned");
93ASSERT(IS_ALIGNED(__start_user_data, PAGE_SIZE), "__start_user_data misaligned");
94ASSERT(IS_ALIGNED(__end_user_data, PAGE_SIZE), "__end_user_data misaligned");
95ASSERT(IS_ALIGNED(__start_user_bss, PAGE_SIZE), "__start_user_data misaligned");
96ASSERT(IS_ALIGNED(__end_user_bss, PAGE_SIZE), "__end_user_data misaligned");
98/* Architecture may provide any extra asserts. */
100#include <arch/link.lds.h>
106 * indent-tabs-mode: nil