mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-26 13:03:40 +00:00
21 lines
309 B
C
21 lines
309 B
C
|
// SPDX-License-Identifier: GPL-2.0+
|
||
|
/*
|
||
|
* Copyright 2022 Google LLC
|
||
|
*
|
||
|
* Program containing two text sections
|
||
|
*/
|
||
|
|
||
|
int __attribute__((section(".sram_data"))) data[29];
|
||
|
|
||
|
int __attribute__((section(".sram_code"))) calculate(int x)
|
||
|
{
|
||
|
data[0] = x;
|
||
|
|
||
|
return x * x;
|
||
|
}
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
return calculate(123);
|
||
|
}
|