This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] fix bug in print_size_symbols


Hi HJ,

I think that this modification was in my original patch I 
submitted (again my apologies for all the confusion) but somehow 
didn't get to CVS. Without it, when we sort by size, the sym value 
is equal to the sym size in the sysv output.

Elias

2002-06-17  Elias Athanasopoulos  <eathan@otenet.gr>

	* nm.c (print_size_symbols): Remove assignment, which makes
	the symbol's size equal to its value when --size-sort is 
	used.


--- nm.c.orig	Mon Jun 17 19:19:15 2002
+++ nm.c	Mon Jun 17 19:35:22 2002
@@ -1122,9 +1122,6 @@
       if (sym == NULL)
 	bfd_fatal (bfd_get_filename (abfd));
 
-      /* Set the symbol value so that we actually display the symbol size.  */
-      sym->value = from->size - bfd_section_vma (abfd, bfd_get_section (sym));
-
       /* For elf we have already computed the correct symbol size.  */
       if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
 	ssize = from->size;

 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]