Files
u-boot/examples/ulib/static.lds
Simon Glass f2c378f0f9 ulib: Provide an example of how to build with ulib
Add an example Makefile which shows how to build against U-Boot from
outside the U-Boot source tree.

Signed-off-by: Simon Glass <sjg@chromium.org>
2025-09-05 15:47:39 -06:00

20 lines
383 B
Plaintext

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Linker script for ulib_test_static binary
*
* This ensures proper alignment for linker-lists when linking with libu-boot.a
*/
SECTIONS
{
/* Ensure proper alignment for linker lists */
. = ALIGN(32);
__u_boot_list : {
__u_boot_list_start = .;
KEEP(*(SORT(__u_boot_list*)));
__u_boot_list_end = .;
}
}
INSERT AFTER .rodata;