profiling problem

Johannes Hofmann Johannes.Hofmann at gmx.de
Tue Mar 18 11:49:39 PDT 2008


Simon 'corecode' Schubert <corecode at fs.ei.tum.de> wrote:
> [redirecting to bugs@]
> 
> Johannes Hofmann wrote:
>> when I try to compile a statically linked binary for profiling
>> I get the following error:
>> 
>> blob:/tmp >echo "int main(int argc, char **argv) { for (;;); }" > test.c
>> blob:/tmp >gcc -static -pg -o test test.c
>> blob:/tmp >./test
>> ELF binary type "0" not known.
>> Abort trap
>> 
>> without -static or -pg it works ok.
> 
> The problem seems to be that for some reason the ABI-tag winds up later 
> than in the first page, and the kernel decides to ignore it.
> 
> Just do an objdump -x on gcrt1.o or the binary to see what I mean.  I 

Yeah, I can see that now.

> don't know how we can move that one to the beginning.  Linker script?

No idea whatsoever :-) Anyone else? 

Cheers,
Johannes





More information about the Bugs mailing list