-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define ELF64_ST_VISIBILITY and ELF32_ST_VISIBILITY for android
- Loading branch information
1 parent
ea25d0b
commit 08efe5b
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
overlays/patches/ghc/ghc-define-undefined-elf-st-visibility.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
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 */ |