aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/test/u_boot_no_ucode_ptr.c
blob: a17bb4c6c20a9587e74a600a13b5abcd2d973ab9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * Copyright (c) 2016 Google, Inc
 *
 * SPDX-License-Identifier:     GPL-2.0+
 *
 * Simple program to create a bad _dt_ucode_base_size symbol to create an
 * error when it is used. This is used by binman tests.
 *
 * Build with:
 * cc -march=i386 -m32 -o u_boot_no_ucode_ptr -T u_boot_ucode_ptr.lds \
	-nostdlib u_boot_no_ucode_ptr.c
 */

static unsigned long not__dt_ucode_base_size[2]
		__attribute__((section(".ucode"))) = {1, 2};