Bug #969
closed
Added by corecode over 16 years ago.
Updated almost 16 years ago.
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
Yeah, I can see that now.
No idea whatsoever :-) Anyone else?
Cheers,
Johannes
: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>
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
Just noticed that a simple "brandelf -t FreeBSD" makes the binary work.
Cheers,
Johannes
Yes, that's true, but we should try to get a working fix.
cheers
simon
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
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
fixed in d9f47b9b82dc9e762119fd00267eef9a0268680a
Also available in: Atom
PDF