| Summary: | Valgrind fails on binary with .text section not in default place | ||
|---|---|---|---|
| Product: | [Developer tools] valgrind | Reporter: | janisozaur+kde |
| Component: | callgrind | Assignee: | Josef Weidendorfer <josef.weidendorfer> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | jseward |
| Priority: | NOR | ||
| Version First Reported In: | 3.11.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
janisozaur+kde
2016-07-16 18:44:31 UTC
I suspect that happens because the linker script moves the .text section around but it doesn't update the Dwarf related sections accordingly. Why do you need to do such a thing? I'd say the best advice is "don't do that!" I'm not very well-versed in ELF, and what you suggest is entirely possible. I can, however, debug with GDB just like you would expect, if that could be used as any kind of indicator. Where would I read more about that? The reason I commit such atrocities is I have to load bits of original binary into memory, which is expected at specified VMAs. |