Bug #969

profiling problem

Added by corecode about 6 years ago. Updated over 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

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

History

#1 Updated by Johannes.Hofmann about 6 years ago

Yeah, I can see that now.

No idea whatsoever :-) Anyone else?

Cheers,
Johannes

#2 Updated by dillon about 6 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
<>

#3 Updated by corecode about 6 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

#4 Updated by Johannes.Hofmann almost 6 years ago

Just noticed that a simple "brandelf -t FreeBSD" makes the binary work.

Cheers,
Johannes

#5 Updated by corecode almost 6 years ago

Yes, that's true, but we should try to get a working fix.

cheers
simon

#6 Updated by Johannes.Hofmann almost 6 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

#7 Updated by corecode almost 6 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

#8 Updated by corecode over 5 years ago

fixed in d9f47b9b82dc9e762119fd00267eef9a0268680a

Also available in: Atom PDF