Mercurial > illumos > git > illumos-omnios
changeset 21395:b2bf0d068923
11067 debug statistics crash ld(1) when -z allextract
Reviewed by: Jason King <jbk@joyent.com>
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Gergő Doma <domag02@gmail.com>
Approved by: Gordon Ross <gwr@nexenta.com>
author | Richard Lowe <richlowe@richlowe.net> |
---|---|
date | Thu, 23 May 2019 22:54:25 +0000 |
parents | 82bd57df837e |
children | a1dd191628fc |
files | usr/src/cmd/sgs/liblddbg/common/statistics.c usr/src/cmd/sgs/packages/common/SUNWonld-README |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/sgs/liblddbg/common/statistics.c Mon May 13 20:41:26 2019 +0000 +++ b/usr/src/cmd/sgs/liblddbg/common/statistics.c Thu May 23 22:54:25 2019 +0000 @@ -184,7 +184,7 @@ arsym = adp->ad_start; aux = adp->ad_aux; - while (arsym->as_off) { + while ((arsym != NULL) && (arsym->as_off != NULL)) { /* * Assume that symbols from the same member file are * adjacent within the archive symbol table. @@ -199,10 +199,9 @@ } if ((count == 0) || (used == 0)) continue; -#ifndef UDIV_NOT_SUPPORTED + dbg_print(lml, MSG_INTL(MSG_STATS_AR), adp->ad_name, count, used, ((used * 100) / count)); -#endif } Dbg_util_nl(lml, DBG_NL_STD); }
--- a/usr/src/cmd/sgs/packages/common/SUNWonld-README Mon May 13 20:41:26 2019 +0000 +++ b/usr/src/cmd/sgs/packages/common/SUNWonld-README Thu May 23 22:54:25 2019 +0000 @@ -1668,3 +1668,4 @@ 10366 ld(1) should support GNU-style linker sets 10581 ld(1) should know kernel modules are a thing 11057 hidden undefined weak symbols should not leave relocations +11067 debug statistics crash ld(1) when -z allextract