Summary: | valgrind doesn't work when linked with gold instead of ld | ||
---|---|---|---|
Product: | binutils | Reporter: | dank |
Component: | gold | Assignee: | Ian Lance Taylor <ian> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | bug-binutils |
Priority: | P2 | ||
Version: | 2.19 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
dank
2009-05-20 20:08:46 UTC
This was with gold built from the binutils-2.19.1 source tarball. The core issue is that valgrind runs the linker with --verbose to extract the linker script. It then seds the linker script to adjust the start address of the text segment. This works OK with the GNU linker, but it fails with gold, since gold does not have a default linker script. With gold it ought to work to simply use the -Ttext option. In any case, gold will never have a default linker script, so this is not something that can be fixed in gold. |