3999 libld extended section handling is broken
authorRichard Lowe <richlowe@richlowe.net>
Tue, 06 Aug 2013 17:09:22 -0400
changeset 14227 6f291eb437b9
parent 14226 42d090a37218
child 14228 f40648257ac6
3999 libld extended section handling is broken Reviewed by: Jason King <[email protected]> Reviewed by: Josef 'Jeff' Sipek <[email protected]> Approved by: Robert Mustacchi <[email protected]>
usr/src/cmd/sgs/libld/common/syms.c
usr/src/cmd/sgs/packages/common/SUNWonld-README
--- a/usr/src/cmd/sgs/libld/common/syms.c	Wed Apr 03 15:25:37 2013 -0700
+++ b/usr/src/cmd/sgs/libld/common/syms.c	Tue Aug 06 17:09:22 2013 -0400
@@ -2053,7 +2053,7 @@
 				shndx = symshndx[ndx];
 			} else if ((shndx = sym->st_shndx) >= SHN_LORESERVE) {
 				sdflags |= FLG_SY_SPECSEC;
-			} else if (shndx > ifl->ifl_ehdr->e_shnum) {
+			} else if (shndx > ifl->ifl_shnum) {
 				/* We need the name before we can issue error */
 				shndx_bad = 1;
 			}
@@ -2368,7 +2368,7 @@
 			shndx = symshndx[ndx];
 		} else if ((shndx = nsym->st_shndx) >= SHN_LORESERVE) {
 			sdflags |= FLG_SY_SPECSEC;
-		} else if (shndx > ifl->ifl_ehdr->e_shnum) {
+		} else if (shndx > ifl->ifl_shnum) {
 			/* We need the name before we can issue error */
 			shndx_bad = 1;
 		}
--- a/usr/src/cmd/sgs/packages/common/SUNWonld-README	Wed Apr 03 15:25:37 2013 -0700
+++ b/usr/src/cmd/sgs/packages/common/SUNWonld-README	Tue Aug 06 17:09:22 2013 -0400
@@ -1648,3 +1648,4 @@
 3709	need sloppy relocation for GNU .debug_macro
 3722	link-editor is over restrictive of R_AMD64_32 addends
 3926	multiple extern map file definitions corrupt symbol table entry
+3999	libld extended section handling is broken