From c866e237403b3963d45fc1274b9a2e7f09aa97d7 Mon Sep 17 00:00:00 2001 From: Richard Lowe Date: Tue, 1 Jan 2013 16:07:37 -0500 Subject: [PATCH] 3439 discarded sections shouldn't end up on output lists Reviewed by: Gordon Ross Reviewed by: Robert Mustacchi Approved by: Garrett D'Amore --- usr/src/cmd/sgs/libld/common/place.c | 1 + usr/src/cmd/sgs/packages/common/SUNWonld-README | 1 + 2 files changed, 2 insertions(+) diff --git a/usr/src/cmd/sgs/libld/common/place.c b/usr/src/cmd/sgs/libld/common/place.c index 33e980bb3c..1b32572968 100644 --- a/usr/src/cmd/sgs/libld/common/place.c +++ b/usr/src/cmd/sgs/libld/common/place.c @@ -1199,6 +1199,7 @@ ld_place_section(Ofl_desc *ofl, Is_desc *isp, Place_path_info *path_info, * 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); diff --git a/usr/src/cmd/sgs/packages/common/SUNWonld-README b/usr/src/cmd/sgs/packages/common/SUNWonld-README index 5a6bd2451b..65f98b2b78 100644 --- a/usr/src/cmd/sgs/packages/common/SUNWonld-README +++ b/usr/src/cmd/sgs/packages/common/SUNWonld-README @@ -1641,3 +1641,4 @@ Bugid Risk Synopsis 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 -- 2.11.4.GIT