Module Name:    src
Committed By:   pooka
Date:           Tue Nov 24 16:55:11 UTC 2009

Modified Files:
        src/sys/sys: exec_elf.h

Log Message:
fix comments: st_name is index in .strtab


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/sys/sys/exec_elf.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/exec_elf.h
diff -u src/sys/sys/exec_elf.h:1.97 src/sys/sys/exec_elf.h:1.98
--- src/sys/sys/exec_elf.h:1.97	Fri May 22 21:44:50 2009
+++ src/sys/sys/exec_elf.h	Tue Nov 24 16:55:11 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: exec_elf.h,v 1.97 2009/05/22 21:44:50 martin Exp $	*/
+/*	$NetBSD: exec_elf.h,v 1.98 2009/11/24 16:55:11 pooka Exp $	*/
 
 /*-
  * Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -411,7 +411,7 @@
  * Symbol Table
  */
 typedef struct {
-	Elf32_Word	st_name;	/* Symbol name (.symtab index) */
+	Elf32_Word	st_name;	/* Symbol name (.strtab index) */
 	Elf32_Word	st_value;	/* value of symbol */
 	Elf32_Word	st_size;	/* size of symbol */
 	Elf_Byte	st_info;	/* type / binding attrs */
@@ -420,7 +420,7 @@
 } Elf32_Sym;
 
 typedef struct {
-	Elf64_Half	st_name;	/* Symbol name (.symtab index) */
+	Elf64_Half	st_name;	/* Symbol name (.strtab index) */
 	Elf_Byte	st_info;	/* type / binding attrs */
 	Elf_Byte	st_other;	/* unused */
 	Elf64_Quarter	st_shndx;	/* section index of symbol */

Reply via email to