Project

General

Profile

Actions

Bug #969

closed

profiling problem

Added by corecode about 16 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

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

Actions #1

Updated by Johannes.Hofmann about 16 years ago

Yeah, I can see that now.

No idea whatsoever :-) Anyone else?

Cheers,
Johannes

Actions #2

Updated by dillon about 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
<>
Actions #3

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

Actions #4

Updated by Johannes.Hofmann almost 16 years ago

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

Cheers,
Johannes

Actions #5

Updated by corecode almost 16 years ago

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

cheers
simon

Actions #6

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

Actions #7

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

Actions #8

Updated by corecode about 15 years ago

fixed in d9f47b9b82dc9e762119fd00267eef9a0268680a

Actions

Also available in: Atom PDF