profiling problem

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Sun Mar 16 16:42:30 PDT 2008


[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 
don't know how we can move that one to the beginning.  Linker script?

cheers
  simon
--
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \





More information about the Bugs mailing list