Golang binary dwarf
Manoj Kumar
manoj.gurukul@yahoo.com
Sun Feb 7 17:40:26 GMT 2021
Wrapecho starts a local server on port 1323. It provides handlers for url localhost:1323/ and localhost:1323/cat. The handlers simply execute some user defined code.
Sure I will contact th golang team.
Thanks for providing the details.
On Sunday, 7 February, 2021, 10:58:26 pm IST, Mark Wielaard <mark@klomp.org> wrote:
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 elfutils-devel@sourceware.org
I got them, but they were really big:
$ du -h echobin.tar.gz wrapecho*
7.7M echobin.tar.gz
11M wrapecho_linkshared.txt
7.4M wrapecho.txt
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).
Cheers,
Mark
More information about the Elfutils-devel
mailing list