Bug 13569

Summary: Linker garbage collection retains debug information which leads to GDB bus errors
Product: binutils Reporter: Nick Clifton <nickc>
Component: ldAssignee: Not yet assigned to anyone <unassigned>
Status: NEW ---    
Severity: normal CC: mark
Priority: P2    
Version: 2.24   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Nick Clifton 2012-01-06 17:21:18 UTC
As reported here:

http://sourceware.org/ml/binutils/2011-11/msg00223.html

and here:

http://sourceware.org/ml/binutils/2012-01/msg00047.html

When linker garbage collection removes a section it does not remove the debug information associated with that section.  This leaves the resulting executable containing bogus debug information, which can then be used to trigger a SIGBUS fault in GDB:

http://sourceware.org/bugzilla/show_bug.cgi?id=13568