[Git][ghc/ghc][master] RTS linker: aarch64: better debug information
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Thu Aug 1 04:49:02 UTC 2024
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
5843c7e3 by doyougnu at 2024-08-01T00:48:42-04:00
RTS linker: aarch64: better debug information
Dump better debugging information when a symbol address is null.
Part of the haskell.nix patches upstream project
Co-authored-by: Sylvain Henry <sylvain at haskus.fr>
- - - - -
1 changed file:
- rts/linker/elf_reloc_aarch64.c
Changes:
=====================================
rts/linker/elf_reloc_aarch64.c
=====================================
@@ -326,7 +326,8 @@ relocateObjectCodeAarch64(ObjectCode * oc) {
ELF64_R_SYM((Elf64_Xword)rel->r_info));
CHECK(0x0 != symbol);
- CHECK(0x0 != symbol->addr);
+ if(0x0 == symbol->addr)
+ barf("0x0 address for %s + %ld of type %ld 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);
/* take explicit addend */
int64_t addend = rel->r_addend;
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/5843c7e333cf2fc36dd059674be87c709719d389
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/5843c7e333cf2fc36dd059674be87c709719d389
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240801/d074b24d/attachment-0001.html>
More information about the ghc-commits
mailing list