02_static_func.c (290B)
1 /* Exercises STB_LOCAL: a file-static function and a non-static caller. 2 * The static should appear in .symtab with STB_LOCAL binding and a 3 * section-relative value; the global should be STB_GLOBAL. */ 4 5 static int add_one(int x) { return x + 1; } 6 7 int result(void) { return add_one(41); }