Hi,

Am 16.05.15 um 23:47 schrieb Dagobert Michelsen:
> Hi folks,
> 
> when fiddling with logstash and logstash-forwarder I noticed that the 
> automatic
> stripping in mGAR corrupt executables:
> 
>> root@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@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@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.

Is this stripped with gnu strip or the SUN one?

GNU tends to brake stuff:
https://buildfarm.opencsw.org/source/xref/opencsw/csw/mgar/pkg/ffmpeg/trunk/Makefile#200

Greetings
Jan







Reply via email to