1 // SPDX-License-Identifier: GPL-2.0+ 2 /* 3 * Copyright 2022 Google LLC 4 * 5 * Program containing two text sections 6 */ 7 8 int __attribute__((section(".sram_data"))) data[29]; 9 calculate(int x)10int __attribute__((section(".sram_code"))) calculate(int x) 11 { 12 data[0] = x; 13 14 return x * x; 15 } 16 main(void)17int main(void) 18 { 19 return calculate(123); 20 } 21