Bug 13779 – gdb can't find frame base when using ld.gold
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2014-11-26T20:03:00Z
Last change time
2015-03-29T11:08:12Z
Keywords
pull, symdeb
Assigned to
nobody
Creator
code
Comments
Comment #0 by code — 2014-11-26T20:03:12Z
This only happens when linking with ld.gold.
Looks like the problem has something to do with this warning from readelf.
readelf: Warning: There are 76 unused bytes at the end of section .debug_loc
This is already present in the object file, but sometimes the linking seems to fix it. If it doesn't (only happens with ld.gold) then gdb fails to find a frame base.