Module Name: src
Committed By: maxv
Date: Thu May 7 18:02:48 UTC 2020
Modified Files:
src/sys/lib/libsa: loadfile_elf32.c
Log Message:
Update the comments.
To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/lib/libsa/loadfile_elf32.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/lib/libsa/loadfile_elf32.c
diff -u src/sys/lib/libsa/loadfile_elf32.c:1.56 src/sys/lib/libsa/loadfile_elf32.c:1.57
--- src/sys/lib/libsa/loadfile_elf32.c:1.56 Thu Oct 17 14:00:28 2019
+++ src/sys/lib/libsa/loadfile_elf32.c Thu May 7 18:02:48 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: loadfile_elf32.c,v 1.56 2019/10/17 14:00:28 maxv Exp $ */
+/* $NetBSD: loadfile_elf32.c,v 1.57 2020/05/07 18:02:48 maxv Exp $ */
/*
* Copyright (c) 1997, 2008, 2017 The NetBSD Foundation, Inc.
@@ -332,9 +332,9 @@ ELFNAMEEND(readfile_global)(int fd, u_lo
/*
* Load a dynamic ELF binary into memory. Layout of the memory:
- * +------------+-----------------+-----------------+------------------+
- * | ELF HEADER | SECTION HEADERS | KERNEL SECTIONS | SYM+REL SECTIONS |
- * +------------+-----------------+-----------------+------------------+
+ * +------------+--------------+------------+------------------------+
+ * | ELF HEADER | SECT HEADERS | KERN SECTS | REL/RELA/SYM/STR SECTS |
+ * +------------+--------------+------------+------------------------+
* The ELF HEADER start address is marks[MARK_END]. We then map the rest
* by increasing maxp. An alignment is enforced between the code sections.
*
@@ -438,7 +438,7 @@ ELFNAMEEND(loadfile_dynamic)(int fd, Elf
maxp = roundup(maxp, KERNALIGN_LARGE);
/*
- * Load the SYM+REL SECTIONS.
+ * Load the REL/RELA/SYM/STR SECTIONS.
*/
maxp = roundup(maxp, ELFROUND);
for (i = 0; i < elf->e_shnum; i++) {