|
@@ -22,15 +22,16 @@ bool elf__needs_adjust_symbols(GElf_Ehdr ehdr)
|
|
|
|
|
|
#endif
|
|
|
|
|
|
-#if !defined(_CALL_ELF) || _CALL_ELF != 2
|
|
|
int arch__choose_best_symbol(struct symbol *syma,
|
|
|
struct symbol *symb __maybe_unused)
|
|
|
{
|
|
|
char *sym = syma->name;
|
|
|
|
|
|
+#if !defined(_CALL_ELF) || _CALL_ELF != 2
|
|
|
/* Skip over any initial dot */
|
|
|
if (*sym == '.')
|
|
|
sym++;
|
|
|
+#endif
|
|
|
|
|
|
/* Avoid "SyS" kernel syscall aliases */
|
|
|
if (strlen(sym) >= 3 && !strncmp(sym, "SyS", 3))
|
|
@@ -41,6 +42,7 @@ int arch__choose_best_symbol(struct symbol *syma,
|
|
|
return SYMBOL_A;
|
|
|
}
|
|
|
|
|
|
+#if !defined(_CALL_ELF) || _CALL_ELF != 2
|
|
|
/* Allow matching against dot variants */
|
|
|
int arch__compare_symbol_names(const char *namea, const char *nameb)
|
|
|
{
|