diff options
Diffstat (limited to 'usr/src/cmd/sgs/libld/common/outfile.c')
| -rw-r--r-- | usr/src/cmd/sgs/libld/common/outfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/sgs/libld/common/outfile.c b/usr/src/cmd/sgs/libld/common/outfile.c index 447d3a19b7..6d495fb33b 100644 --- a/usr/src/cmd/sgs/libld/common/outfile.c +++ b/usr/src/cmd/sgs/libld/common/outfile.c @@ -228,7 +228,7 @@ pad_outfile(Ofl_desc *ofl) */ if (oscn && (phdr->p_type == PT_LOAD)) { Elf_Data * data; - size_t size; + size_t size; size = (size_t)(S_ROUND(offset, phdr->p_align) - offset); @@ -483,7 +483,7 @@ ld_create_outfile(Ofl_desc *ofl) nseg++; } else if (sgp->sg_flags & FLG_SG_EMPTY) { nseg++; - } else if (sgp->sg_osdescs != NULL) { + } else if (aplist_nitems(sgp->sg_osdescs) != 0) { if ((sgp->sg_flags & FLG_SG_PHREQ) == 0) { /* * If this is a segment for which |
