]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/c-exp.y
Fix calling ifunc functions when resolver has debug info and different name
[thirdparty/binutils-gdb.git] / gdb / c-exp.y
index 8dc3c068a5e2a8d2d66ba8096d16aaa53ac773e2..e2ea07cd792836f1b3b08ba6b5b3391e863e1633 100644 (file)
@@ -1081,7 +1081,9 @@ variable: name_not_typename
                                 is important for example for "p
                                 *__errno_location()".  */
                              symbol *alias_target
-                               = find_function_alias_target (msymbol);
+                               = (msymbol.minsym->type != mst_text_gnu_ifunc
+                                  ? find_function_alias_target (msymbol)
+                                  : NULL);
                              if (alias_target != NULL)
                                {
                                  write_exp_elt_opcode (pstate, OP_VAR_VALUE);