Bug 13569 - Linker garbage collection retains debug information which leads to GDB bus errors
Summary: Linker garbage collection retains debug information which leads to GDB bus er...
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.24
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-06 17:21 UTC by Nick Clifton
Modified: 2017-10-11 10:48 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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