https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101131

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Cleaned up test-case:

$ cat pr101131.c
int extern_declared_variable;
int static_function();

int global_defined_function() { static_function(); }

int
__attribute__((ifunc("resolver"))) static_function() {
  if (extern_declared_variable)
    return global_defined_function();
}

Reply via email to