DragonFly bugs List (threaded) for 2008-03
DragonFly BSD
DragonFly bugs List (threaded) for 2008-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: profiling problem


From: Johannes Hofmann <Johannes.Hofmann@xxxxxx>
Date: 18 Mar 2008 18:49:39 GMT

Simon 'corecode' Schubert <corecode@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]