u_boot_no_ucode_ptr.c 437 B

123456789101112131415
  1. /*
  2. * Copyright (c) 2016 Google, Inc
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. *
  6. * Simple program to create a bad _dt_ucode_base_size symbol to create an
  7. * error when it is used. This is used by binman tests.
  8. *
  9. * Build with:
  10. * cc -march=i386 -m32 -o u_boot_no_ucode_ptr -T u_boot_ucode_ptr.lds \
  11. -nostdlib u_boot_no_ucode_ptr.c
  12. */
  13. static unsigned long not__dt_ucode_base_size[2]
  14. __attribute__((section(".ucode"))) = {1, 2};