Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit 6f64e9d

Browse files
committed
Correct the use of section/segment
1 parent 037f21f commit 6f64e9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

emu-rv32i.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2053,7 +2053,7 @@ int main(int argc, char** argv)
20532053
}
20542054
}
20552055

2056-
/* set .text segment as the base address */
2056+
/* set .text section as the base address */
20572057
scn = NULL;
20582058
size_t shstrndx;
20592059
elf_getshdrstrndx(elf, &shstrndx);
@@ -2081,7 +2081,7 @@ int main(int argc, char** argv)
20812081
while ((scn = elf_nextscn(elf, scn)) != NULL) {
20822082
gelf_getshdr(scn, &shdr);
20832083

2084-
/* filter NULL address segments and .bss */
2084+
/* filter NULL address sections and .bss */
20852085
if (shdr.sh_addr && shdr.sh_type != SHT_NOBITS) {
20862086
Elf_Data *data = elf_getdata(scn, NULL);
20872087
if (shdr.sh_addr >= ram_start) {

0 commit comments

Comments
 (0)