Golang binary dwarf
Sun Feb 7 17:27:14 GMT 2021
On Sun, Feb 07, 2021 at 05:16:27PM +0000, Manoj Kumar wrote:
> Please confirm if you have got the binaries.
> I got failure message for email@example.com
I got them, but they were really big:
$ du -h echobin.tar.gz wrapecho*
What does wrapecho do?
Looking at them it seems the wrapecho_linkshared variant (even though
it is larger than the non-linkshared variant) simply dropped all
debuginfo generated by the Go compiler:
$ eu-readelf --debug-dump=info wrapecho.txt | grep producer | sort | uniq -c
1 producer (string) "GNU AS 2.25"
147 producer (string) "Go cmd/compile go1.15.1"
2 producer (strp) "GNU C11 6.5.0 20181026"
16 producer (strp) "GNU C 4.9.2"
$ eu-readelf --debug-dump=info wrapecho_linkshared.txt | grep producer | sort | uniq -c
1 producer (string) "GNU AS 2.26.1"
18 producer (strp) "GNU C11 6.5.0 20181026"
So the information you want to extract from them is simply not there
for the Go compiler generated functions.
This is probably a bug you should produce to the Go language team or
Ubuntu (if it is specific to their packaging).
More information about the Elfutils-devel