aboutsummaryrefslogtreecommitdiff
path: root/i386-link.c
diff options
context:
space:
mode:
authorLarry Doolittle <ldoolitt@recycle.lbl.gov>2017-05-07 21:38:09 -0700
committerLarry Doolittle <ldoolitt@recycle.lbl.gov>2017-05-07 21:38:09 -0700
commit19d8b8a17383863d45823e37f20a94cc1d55c3a6 (patch)
tree5862658773da49c99ae77dfa0e578b3b519ed282 /i386-link.c
parent1b9935cf36e83b389cb26008df93a654af3f2074 (diff)
downloadtinycc-19d8b8a17383863d45823e37f20a94cc1d55c3a6.tar.gz
tinycc-19d8b8a17383863d45823e37f20a94cc1d55c3a6.tar.bz2
Spelling fixes in C comments only
Diffstat (limited to 'i386-link.c')
-rw-r--r--i386-link.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/i386-link.c b/i386-link.c
index b2ff492..b446644 100644
--- a/i386-link.c
+++ b/i386-link.c
@@ -49,7 +49,7 @@ int code_reloc (int reloc_type)
return -1;
}
-/* Returns an enumerator to describe wether and when the relocation needs a
+/* Returns an enumerator to describe whether and when the relocation needs a
GOT and/or PLT entry to be created. See tcc.h for a description of the
different values. */
int gotplt_entry_type (int reloc_type)
@@ -99,7 +99,7 @@ ST_FUNC unsigned create_plt_entry(TCCState *s1, unsigned got_offset, struct sym_
else
modrm = 0x25;
- /* empty PLT: create PLT0 entry that pushes the library indentifier
+ /* empty PLT: create PLT0 entry that pushes the library identifier
(GOT + PTR_SIZE) and jumps to ld.so resolution routine
(GOT + 2 * PTR_SIZE) */
if (plt->data_offset == 0) {
@@ -229,9 +229,9 @@ void relocate(TCCState *s1, ElfW_Rel *rel, int type, unsigned char *ptr, addr_t
/* do nothing */
return;
case R_386_COPY:
- /* This reloction must copy initialized data from the library
+ /* This relocation must copy initialized data from the library
to the program .bss segment. Currently made like for ARM
- (to remove noise of defaukt case). Is this true?
+ (to remove noise of default case). Is this true?
*/
return;
default: