[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?
Yeah, I can see that now.
No idea whatsoever :-) Anyone else?
: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?
Maybe, or adjust the exec code to load more then one page.
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.
Just noticed that a simple "brandelf -t FreeBSD" makes the binary work.
Yes, that's true, but we should try to get a working fix.
Can you give me a pointer where this linker stuff resides in the tree?
Perhaps I can find something related in the other BSDs
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
fixed in d9f47b9b82dc9e762119fd00267eef9a0268680a
Also available in: Atom