Bug #969
closedprofiling problem
0%
Description
[redirecting to bugs@]
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
Updated by Johannes.Hofmann over 16 years ago
Yeah, I can see that now.
No idea whatsoever :-) Anyone else?
Cheers,
Johannes
Updated by dillon over 16 years ago
: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
Maybe, or adjust the exec code to load more then one page.
-Matt
Matthew Dillon
<dillon@backplane.com>
Updated by corecode over 16 years ago
I checked FreeBSD, and they also only operate on one page. So I guess
there has to be a way to put the note in the beginning.
Must be some linker magic.
cheers
simon
Updated by Johannes.Hofmann over 16 years ago
Just noticed that a simple "brandelf -t FreeBSD" makes the binary work.
Cheers,
Johannes
Updated by corecode over 16 years ago
Yes, that's true, but we should try to get a working fix.
cheers
simon
Updated by Johannes.Hofmann over 16 years ago
Can you give me a pointer where this linker stuff resides in the tree?
Perhaps I can find something related in the other BSDs
Cheers,
Johannes
Updated by corecode over 16 years ago
I didn't find anything in the other BSDs. I suspect we'd have to pass
some directive to ld when linking with profiling, or we need to link gcrt
specially. You can find the former in
/usr/src/gnu/usr.bin/cc41/cc_prep/config/dragonfly-spec.h.
cheers
simon
Updated by corecode almost 16 years ago
fixed in d9f47b9b82dc9e762119fd00267eef9a0268680a