1301 ld crashes with '-z ignore' due to a null data descriptor
Reviewed by: Gordon Ross <
[email protected]>
Reviewed by: Dan McDonald <
[email protected]>
Reviewed by: Igor Kozhukhov <
[email protected]>
Reviewed by: Albert Lee <
[email protected]>
Approved by: Eric Schrock <
[email protected]>
--- a/usr/src/cmd/sgs/libld/common/outfile.c Thu Aug 18 12:28:47 2011 -0700
+++ b/usr/src/cmd/sgs/libld/common/outfile.c Fri Jul 29 04:21:44 2011 +0100
@@ -712,9 +712,9 @@
break;
d = elf_getdata(osp->os_scn, NULL);
- assert(d != NULL);
- d->d_align = pad_align;
+ if (d != NULL)
+ d->d_align = pad_align;
}
}
}