u-boot-brain/arch/sandbox
Marek Behún d1f81fd015 sandbox: use sections instead of symbols for getopt array boundaries
In style of linked lists, instead of declaring symbols for boundaries
of getopt options array in the linker script, declare corresponding
sections and retrieve the boundaries via static inline functions.

Without this clang's LTO produces binary without any getopt options,
because for some reason it thinks that array is empty (start and end
symbols are at the same address).

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
2021-05-24 14:21:30 -04:00
..
cpu sandbox: use sections instead of symbols for getopt array boundaries 2021-05-24 14:21:30 -04:00
dts pytest: add sandbox test for "extension" command 2021-05-13 13:09:09 -04:00
include/asm sandbox: use sections instead of symbols for getopt array boundaries 2021-05-24 14:21:30 -04:00
lib treewide: Convert macro and uses of __section(foo) to __section("foo") 2021-05-24 14:21:30 -04:00
config.mk build: use thin archives instead of incremental linking 2021-05-24 14:21:30 -04:00
Kconfig sandbox: add handler for exceptions 2020-12-13 07:58:17 -07:00
Makefile sandbox: Use 'extras' to specify 'head' files 2018-12-05 06:01:34 -07:00