1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2021 Broadcom
9 static int do_test_stackprot_fail(struct cmd_tbl *cmdtp, int flag, int argc,
13 * In order to avoid having the compiler optimize away the stack smashing
14 * we need to do a little something here.
20 printf("We have smashed our stack as this should not exceed 128: sizeof(a) = %zd\n",
26 U_BOOT_CMD(stackprot_test, 1, 1, do_test_stackprot_fail,
27 "test stack protector fail", "");