Commit ee54d112 authored by Tristan Gingold's avatar Tristan Gingold

Partial revert of .stat section removal

parent 92cebb13
......@@ -15,7 +15,11 @@ const char *const build_date = stats.build_date;
const char *const build_time = stats.build_time;
const char *const build_by = stats.build_by;
struct spll_stats stats = {
/*
* On the switch, we export softpll internal status to the ARM cpu, for SNMP.
* Thus, we place this structure at a known address in the linker script
*/
struct spll_stats stats __attribute__((section(".stats"))) = {
.magic = 0x5b1157a7,
.ver = SPLL_STATS_VER,
#ifdef CONFIG_DETERMINISTIC_BINARY
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment