Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
25 lines
745 B
Diff
25 lines
745 B
Diff
diff --git a/rts/linker/ElfTypes.h b/rts/linker/ElfTypes.h
|
|
index f5e2f819d9..7f75087738 100644
|
|
--- a/rts/linker/ElfTypes.h
|
|
+++ b/rts/linker/ElfTypes.h
|
|
@@ -33,6 +33,9 @@
|
|
#define Elf_Sym Elf64_Sym
|
|
#define Elf_Rel Elf64_Rel
|
|
#define Elf_Rela Elf64_Rela
|
|
+#if !defined(ELF64_ST_VISIBILITY)
|
|
+#define ELF64_ST_VISIBILITY(o) ((o)&0x3)
|
|
+#endif
|
|
#if !defined(ELF_ST_VISIBILITY)
|
|
#define ELF_ST_VISIBILITY ELF64_ST_VISIBILITY
|
|
#endif
|
|
@@ -60,6 +63,9 @@
|
|
#define Elf_Sym Elf32_Sym
|
|
#define Elf_Rel Elf32_Rel
|
|
#define Elf_Rela Elf32_Rela
|
|
+#if !defined(ELF32_ST_VISIBILITY)
|
|
+#define ELF32_ST_VISIBILITY(o) ((o)&0x3)
|
|
+#endif
|
|
#if !defined(ELF_ST_VISIBILITY)
|
|
#define ELF_ST_VISIBILITY ELF32_ST_VISIBILITY
|
|
#endif /* ELF_ST_VISIBILITY */
|