summaryrefslogtreecommitdiff
path: root/rts/linker
diff options
context:
space:
mode:
authorEric Lindblad <lindblad@gmx.us>2022-05-13 15:40:55 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-06-01 07:44:51 -0400
commit514a6a28db16793d6d2ca8fe7863e82943f56374 (patch)
tree5e35392d37250050e192d11790bdefa7011f8862 /rts/linker
parentef7ddd7348070a9149d162217280c0a50f2b213d (diff)
downloadhaskell-514a6a28db16793d6d2ca8fe7863e82943f56374.tar.gz
typos
Diffstat (limited to 'rts/linker')
-rw-r--r--rts/linker/elf_compat.h2
-rw-r--r--rts/linker/elf_got.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/rts/linker/elf_compat.h b/rts/linker/elf_compat.h
index 424d1d25f8..9f2780203d 100644
--- a/rts/linker/elf_compat.h
+++ b/rts/linker/elf_compat.h
@@ -6,7 +6,7 @@
// The files in ELFRelocs/ have been taken from
// the LLVM project. See ELFRelocs/LICENSE-LLVM.TXT
// for the University of Illinois Open Source License
-// under which it is distrubuted.
+// under which it is distributed.
//
#pragma once
diff --git a/rts/linker/elf_got.c b/rts/linker/elf_got.c
index 0f511e663f..4d0c97871e 100644
--- a/rts/linker/elf_got.c
+++ b/rts/linker/elf_got.c
@@ -17,7 +17,7 @@ needGotSlot(Elf_Sym * symbol) {
* STB_WEAK.
*
* Any more restrictive filter here would result
- * in a smaller GOT, which is preferrable.
+ * in a smaller GOT, which is preferable.
*/
return ELF_ST_BIND(symbol->st_info) == STB_GLOBAL
|| ELF_ST_BIND(symbol->st_info) == STB_WEAK
@@ -87,7 +87,7 @@ fillGot(ObjectCode * oc) {
if(needGotSlot(symbol->elf_sym)) {
/* no type are undefined symbols */
- // Note STT_SECTION symbols should have their addres
+ // Note STT_SECTION symbols should have their address
// set prior to the fillGot call in ocResolve_ELF.
if( STT_NOTYPE == ELF_ST_TYPE(symbol->elf_sym->st_info)
|| STB_WEAK == ELF_ST_BIND(symbol->elf_sym->st_info)) {