Module Name:    src
Committed By:   christos
Date:           Sat Oct 15 21:06:58 UTC 2011

Modified Files:
        src/lib/libc/gen: nlist_elf32.c

Log Message:
report STT_COMMON symbols as data.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/lib/libc/gen/nlist_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/lib/libc/gen/nlist_elf32.c
diff -u src/lib/libc/gen/nlist_elf32.c:1.32 src/lib/libc/gen/nlist_elf32.c:1.33
--- src/lib/libc/gen/nlist_elf32.c:1.32	Sat Aug 28 17:30:02 2010
+++ src/lib/libc/gen/nlist_elf32.c	Sat Oct 15 17:06:58 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: nlist_elf32.c,v 1.32 2010/08/28 21:30:02 joerg Exp $ */
+/* $NetBSD: nlist_elf32.c,v 1.33 2011/10/15 21:06:58 christos Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: nlist_elf32.c,v 1.32 2010/08/28 21:30:02 joerg Exp $");
+__RCSID("$NetBSD: nlist_elf32.c,v 1.33 2011/10/15 21:06:58 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 /* If not included by nlist_elf64.c, ELFSIZE won't be defined. */
@@ -162,6 +162,7 @@ ELFNAMEEND(__fdnlist)(fd, list)
 				case STT_NOTYPE:
 					p->n_type = N_UNDF;
 					break;
+				case STT_COMMON:
 				case STT_OBJECT:
 					p->n_type = N_DATA;
 					break;
@@ -274,6 +275,7 @@ ELFNAMEEND(__fdnlist)(fd, list)
 					p->n_type = N_UNDF;
 					break;
 				case STT_OBJECT:
+				case STT_COMMON:
 					p->n_type = N_DATA;
 					break;
 				case STT_FUNC:

Reply via email to