[PATCH] Don't define SHN_UNDEF twice

Jakub Jelinek jakub@redhat.com
Wed Jan 9 03:36:00 GMT 2002


Hi!

I don't think we need to define SHN_UNDEF twice...
$ grep SHN_UNDEF elf.h
#define SHN_UNDEF       0               /* Undefined section */
#define SHN_UNDEF       0               /* No section, undefined symbol.  */

2002-01-09  Jakub Jelinek  <jakub@redhat.com>

	* elf/elf.h (SHN_UNDEF): Remove duplicate definition.

--- libc/elf/elf.h.jj	Wed Jan  9 13:54:01 2002
+++ libc/elf/elf.h	Wed Jan  9 13:55:29 2002
@@ -415,10 +415,6 @@ typedef struct
 #define SYMINFO_NUM		2
 
 
-/* Special section index.  */
-
-#define SHN_UNDEF	0		/* No section, undefined symbol.  */
-
 /* How to extract and insert information held in the st_info field.  */
 
 #define ELF32_ST_BIND(val)		(((unsigned char) (val)) >> 4)

	Jakub



More information about the Libc-hacker mailing list