changeset 13915:08b681f7233e

3439 discarded sections shouldn't end up on output lists Reviewed by: Gordon Ross <gwr@nexenta.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Garrett D'Amore <garrett@damore.org>
author Richard Lowe <richlowe@richlowe.net>
date Tue, 01 Jan 2013 16:07:37 -0500
parents 6813aba4377c
children a84bad6b576e
files usr/src/cmd/sgs/libld/common/place.c usr/src/cmd/sgs/packages/common/SUNWonld-README
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/sgs/libld/common/place.c	Wed Jan 09 00:43:09 2013 +0000
+++ b/usr/src/cmd/sgs/libld/common/place.c	Tue Jan 01 16:07:37 2013 -0500
@@ -1199,6 +1199,7 @@
 	 * so that they can be updated as a group later.
 	 */
 	if ((shdr->sh_type == SHT_GROUP) &&
+	    ((isp->is_flags & FLG_IS_DISCARD) == 0) &&
 	    (aplist_append(&ofl->ofl_osgroups, osp,
 	    AL_CNT_OFL_OSGROUPS) == NULL))
 		return ((Os_desc *)S_ERROR);
--- a/usr/src/cmd/sgs/packages/common/SUNWonld-README	Wed Jan 09 00:43:09 2013 +0000
+++ b/usr/src/cmd/sgs/packages/common/SUNWonld-README	Tue Jan 01 16:07:37 2013 -0500
@@ -1641,3 +1641,4 @@
 3261	linker should ignore unknown hardware capabilities
 3265	link-editor builds bogus .eh_frame_hdr on ia32
 3453	GNU comdat redirection does exactly the wrong thing
+3439	discarded sections shouldn't end up on output lists