diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2023-01-09 12:26:29 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-09 12:26:29 -0600 |
| commit | 61615e4dfd377dd40265591f37531079e48863d1 (patch) | |
| tree | bfa61dfe7c3669baae992f4d0240ddcf7dbe4035 /lib/xref.h | |
| parent | a8adf1b3cb313490a3f2ef5c03256e04546e0de4 (diff) | |
| parent | 26eaf6e386ed2b960c0004d2f927b586e516f587 (diff) | |
Merge pull request #12606 from opensourcerouting/fixes-20230106
*: various build fixes
Diffstat (limited to 'lib/xref.h')
| -rw-r--r-- | lib/xref.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/xref.h b/lib/xref.h index 0e3f00f690..37242bd79e 100644 --- a/lib/xref.h +++ b/lib/xref.h @@ -208,8 +208,19 @@ extern const struct xref * const __stop_xref_array[1] DSO_LOCAL; * some build issue with it just add -DFRR_XREF_NO_NOTE to your build flags * to disable it. */ -#ifdef FRR_XREF_NO_NOTE +#if defined(FRR_XREF_NO_NOTE) || defined(__mips64) #define XREF_NOTE "" + +/* mips64 note: MIPS64 (regardless of endianness, both mips64 & mips64el) + * does not have a 64-bit PC-relative relocation type. Unfortunately, a + * 64-bit PC-relative relocation is exactly what the below asm magic emits. + * Therefore, the xref ELF note is permanently disabled on MIPS64. + * + * For some context, refer to https://reviews.llvm.org/D80390 + * + * As noted above, xref extraction still works through the section header + * path, so no functionality is lost. + */ #else #if __SIZEOF_POINTER__ == 4 |
