Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libsa Update the comments.



details:   https://anonhg.NetBSD.org/src/rev/df14963d4026
branches:  trunk
changeset: 971884:df14963d4026
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu May 07 18:02:48 2020 +0000

description:
Update the comments.

diffstat:

 sys/lib/libsa/loadfile_elf32.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r d419186ceb89 -r df14963d4026 sys/lib/libsa/loadfile_elf32.c
--- a/sys/lib/libsa/loadfile_elf32.c    Thu May 07 17:58:26 2020 +0000
+++ b/sys/lib/libsa/loadfile_elf32.c    Thu May 07 18:02:48 2020 +0000
@@ -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 @@
 
 /*
  * 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 @@
        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++) {



Home | Main Index | Thread Index | Old Index