Source-Changes-HG archive

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

[src/trunk]: src/sys/sys fix comments: st_name is index in .strtab



details:   https://anonhg.NetBSD.org/src/rev/2d7c12be0caa
branches:  trunk
changeset: 749275:2d7c12be0caa
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Nov 24 16:55:11 2009 +0000

description:
fix comments: st_name is index in .strtab

diffstat:

 sys/sys/exec_elf.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 845e3668adc6 -r 2d7c12be0caa sys/sys/exec_elf.h
--- a/sys/sys/exec_elf.h        Tue Nov 24 16:00:42 2009 +0000
+++ b/sys/sys/exec_elf.h        Tue Nov 24 16:55:11 2009 +0000
@@ -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 */



Home | Main Index | Thread Index | Old Index