D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 13779 - gdb can't find frame base when using ld.gold
Summary: gdb can't find frame base when using ld.gold
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 normal
Assignee: No Owner
URL:
Keywords: DebugInfo, pull
: 11573 (view as issue list)
Depends on:
Blocks:
 
Reported: 2014-11-26 20:03 UTC by Martin Nowak
Modified: 2015-03-29 11:08 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Martin Nowak 2014-11-26 20:03:12 UTC
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 2 github-bugzilla 2014-11-27 01:55:02 UTC
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 github-bugzilla 2015-02-18 03:40:14 UTC
Commits pushed to 2.067 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

https://github.com/D-Programming-Language/dmd/commit/e7a03fdd3cd0b5acb134edc28f8880a5de1162a8
Merge pull request #4168 from MartinNowak/fix13779
Comment 4 Martin Krejcirik 2015-03-29 11:07:24 UTC
*** Issue 11573 has been marked as a duplicate of this issue. ***