From 316b4980f030148c94ed0bce9f3a10b46cad44f0 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 12 Jun 2013 07:48:32 +0000 Subject: * ldcref.c (output_one_cref): Place common definitions after ordinary definitions but before references. --- ld/ldcref.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'ld/ldcref.c') diff --git a/ld/ldcref.c b/ld/ldcref.c index 2f6a46c..56b917d 100644 --- a/ld/ldcref.c +++ b/ld/ldcref.c @@ -1,6 +1,5 @@ /* ldcref.c -- output a cross reference table - Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, - 2007, 2008 Free Software Foundation, Inc. + Copyright 1996-2013 Free Software Foundation, Inc. Written by Ian Lance Taylor This file is part of the GNU Binutils. @@ -446,7 +445,21 @@ output_one_cref (FILE *fp, struct cref_hash_entry *h) for (r = h->refs; r != NULL; r = r->next) { - if (! r->def) + if (r->common) + { + while (len < FILECOL) + { + putc (' ', fp); + ++len; + } + lfinfo (fp, "%B\n", r->abfd); + len = 0; + } + } + + for (r = h->refs; r != NULL; r = r->next) + { + if (! r->def && ! r->common) { while (len < FILECOL) { -- cgit v1.1