Stripping destroys 'go' binaries
Dagobert Michelsen
dam at opencsw.org
Sat May 16 23:47:27 CEST 2015
Hi folks,
when fiddling with logstash and logstash-forwarder I noticed that the automatic
stripping in mGAR corrupt executables:
> root at experimental10s [experimental10s]:/home/dam/mgar/pkg/logstash-forwarder/trunk/work/solaris10-sparc > file pkgroot/opt/csw/bin/logstash-forwarder build-isa-sparcv8plus/logstash-forwarder-0.4.0/logstash-forwarder
> pkgroot/opt/csw/bin/logstash-forwarder: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, stripped
> build-isa-sparcv8plus/logstash-forwarder-0.4.0/logstash-forwarder: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped
Stripped, does not work:
> root at experimental10s [experimental10s]:/home/dam/mgar/pkg/logstash-forwarder/trunk/work/solaris10-sparc > pkgroot/opt/csw/bin/logstash-forwarder
> no debug info in ELF executable errno -1
> fatal error: no debug info in ELF executable
>
> runtime stack:
> no debug info in ELF executable errno -1
> panic during panic
> zsh: 23869 exit 3 pkgroot/opt/csw/bin/logstash-forwarder
Freshly compiled with gccgo, not stripped, works:
> root at experimental10s [experimental10s]:/home/dam/mgar/pkg/logstash-forwarder/trunk/work/solaris10-sparc/build-isa-sparcv8plus/logstash-forwarder-0.4.0 > ./logstash-forwarder
> 2015/05/16 23:41:42.699396 fatal: config file must be defined
> zsh: 23856 exit 1 ./logstash-forwarder
This was all compiled with our "broken" gcc 4.9.2.
@Maciej: Would you mind retrying with our infra-script?
Best regards
-- Dago
More information about the maintainers
mailing list