gcc/gdb/as/ld issue

Andy Chittenden achittenden@bluearc.com
Wed Mar 31 16:03:00 GMT 2004


Nick

Thanks for taking the trouble to look at this. Unfortunately, as I later
point out in this thread, using the length's not good enough in our
environment as even the length was the same in some instances where the name
was different and so stabs were being removed erroneously causing gdb to go
bang. My latter patch solves that issue for us and doesn't seem to kill
performance (for us anyway). There is a missing free in that patch which was
making it use more memory than necessary though:

@@ -433,6 +464,9 @@
                 pass to change the type to N_EXCL.  */
              ne->type = (int) N_EXCL;
 
+             /* Free off superfluous symbols.  */
+             free(symb);
+
              /* Mark the skipped symbols.  */
 
              nest = 0;

-- 
Andy, BlueArc Engineering 



More information about the Binutils mailing list