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.
Comment #1 by code — 2014-11-27T00:40:28Z
Comment #2 by github-bugzilla — 2014-11-27T01:55:02Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/26fd7e3699d63aa4c8c31bfb024463c9faabfb4b fix Issue 13779 - gdb can't find frame base when using ld.gold - missing relocation addend .debug_info reference to .debug_loc https://github.com/D-Programming-Language/dmd/commit/e7a03fdd3cd0b5acb134edc28f8880a5de1162a8 Merge pull request #4168 from MartinNowak/fix13779 fix Issue 13779 - gdb can't find frame base when using ld.gold
Comment #3 by github-bugzilla — 2015-02-18T03:40:14Z
Comment #4 by mk — 2015-03-29T11:07:24Z
*** Issue 11573 has been marked as a duplicate of this issue. ***