public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* objdump: DWARF error: could not find variable specification at offset ...
@ 2020-08-17 18:15 Freddie Chopin
  2020-08-19  1:08 ` Alan Modra
  2020-09-22 12:36 ` Nick Clifton
  0 siblings, 2 replies; 4+ messages in thread
From: Freddie Chopin @ 2020-08-17 18:15 UTC (permalink / raw)
  To: binutils

Hello!

I have multiple embedded projects that - as part of the compilation
process - produce also assembly listing with command similar to this
one:

$ arm-none-eabi-objdump -S --demangle distortosTest.elf > distortosTest.lss

This worked flawlessly up to (and including) previous release of
binutils. In 2.35 something changed. The assembly listing is still
generated and it seems to be correct (I did not check it very
thoroughly), the command ends with no fatal errors (it returns "0" to
the shell), however I see multiple errors like these:

arm-none-eabi-objdump: DWARF error: could not find variable specification at offset 2f9
arm-none-eabi-objdump: DWARF error: could not find variable specification at offset 305
arm-none-eabi-objdump: DWARF error: could not find variable specification at offset 311
...

If I take the .elf file produced by the "new" toolchain (it also
includes GCC 10.2) and do the command above but with objdump from the
"old" toolchain (binutils 2.34), then there is no error. In a reversed
scenario (.elf produced by "old" toolchain, passed to "new" objdump) I
see 10x more errors like the ones above.

I have no idea what does it mean, whether its a problem or not, what
variables are a problem here and how to solve it. Any hints will be
appreciated, I probably should provide some more details, but I don't
really know where to start...

P.S. Please keep me CCed.

Regards,
FCh


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-22 12:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-17 18:15 objdump: DWARF error: could not find variable specification at offset Freddie Chopin
2020-08-19  1:08 ` Alan Modra
2020-09-22 12:36 ` Nick Clifton
2020-09-22 12:40   ` Freddie Chopin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).