[Git][ghc/ghc][wip/supersven/riscv64-ncg] Linker: Missing break statement

Sven Tennie (@supersven) gitlab at gitlab.haskell.org
Sat Feb 10 09:52:19 UTC 2024



Sven Tennie pushed to branch wip/supersven/riscv64-ncg at Glasgow Haskell Compiler / GHC


Commits:
649c7ccc by Sven Tennie at 2024-02-10T09:51:40+00:00
Linker: Missing break statement

- - - - -


1 changed file:

- rts/linker/elf_reloc_riscv64.c


Changes:

=====================================
rts/linker/elf_reloc_riscv64.c
=====================================
@@ -293,7 +293,7 @@ int64_t computeAddend(Section *section, Elf_Rel *rel, ElfSymbol *symbol,
   case R_RISCV_ALIGN:
     // I guess we don't need to implement this relaxation. Otherwise, this
     // should return the number of blank bytes to insert via NOPs.
-    break;
+    return 0;
   case R_RISCV_32_PCREL:
     return S + A - P;
   default:



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/649c7ccca8be75c741601dc524eed43154ad241c

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/649c7ccca8be75c741601dc524eed43154ad241c
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/20240210/3b57f9e6/attachment.html>


More information about the ghc-commits mailing list