Skip to content

Commit 676aab2

Browse files
committed
Fix format
1 parent 079fcba commit 676aab2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

overlays/patches/ghc/ghc-9.0-better-symbol-addr-debug.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ index d8c4f8b724..5e349f2839 100644
44
+++ b/rts/linker/elf_reloc_aarch64.c
55
@@ -325,7 +325,8 @@ relocateObjectCodeAarch64(ObjectCode * oc) {
66
ELF64_R_SYM((Elf64_Xword)rel->r_info));
7-
7+
88
CHECK(0x0 != symbol);
99
- CHECK(0x0 != symbol->addr);
1010
+ if(0x0 == symbol->addr)
11-
+ barf("0x0 address for %s + %d of type %d in %s for relocation %d in section %d of kind: %d\n", symbol->name, rel->r_addend, ELF64_R_TYPE((Elf64_Xword)rel->r_info), OC_INFORMATIVE_FILENAME(oc), i, relaTab->targetSectionIndex, oc->sections[relaTab->targetSectionIndex].kind);
12-
11+
+ barf("0x0 address for %s + %lld of type %llu in %s for relocation %d in section %d of kind: %d\n", symbol->name, rel->r_addend, ELF64_R_TYPE((Elf64_Xword)rel->r_info), OC_INFORMATIVE_FILENAME(oc), i, relaTab->targetSectionIndex, oc->sections[relaTab->targetSectionIndex].kind);
12+
1313
/* take explicit addend */
1414
int64_t addend = rel->r_addend;

0 commit comments

Comments
 (0)