From: Rusty Russell <rusty@rustcorp•com.au>
To: Paul Mackerras <paulus@samba•org>
Cc: sfr@canb•auug.org.au, linuxppc-embedded@ozlabs•org,
linuxppc-dev@ozlabs•org
Subject: Re: [PATCH] [POWERPC] Optimize counting distinct entries in therelocation sections
Date: Tue, 13 Nov 2007 15:27:39 +1100 [thread overview]
Message-ID: <200711131527.39491.rusty@rustcorp.com.au> (raw)
In-Reply-To: <18233.4267.193447.339119@cargo.ozlabs.ibm.com>
On Tuesday 13 November 2007 13:49:15 Paul Mackerras wrote:
> Medve Emilian writes:
> > Seems like there are R_PPC_REL24 with r_addend != 0. Within a set of 41
> > modules (featuring 5457 R_PPC_REL24 relocations) already included within
> > the kernel tree I found 37 such relocations (R_PPC_REL24) with r_addend
> > != 0. In my test case, from 35K relocations, 7K are R_PPC_REL24 and from
> > those only 8 have r_addend != 0.
>
> I did a quick scan and the ones with r_addend != 0 all seem to be
> references to .text from the .init.text, .exit.text or .fixup
> sections. Assuming we can get those allocated near each other they
> shouldn't need trampolines.
>
> Rusty, do we manage to put .init.text and .fixup near .text?
Definitely not. That's why we trampoline between them. But since we discard
the init sections and the tramps with them, I wouldn't bother uniquifing
them: just alloc that many.
> Also, do you know what we see in r_info for a relocation that is
> relative to a section rather than a symbol?
Can't remember off the top of my head, sorry.
Rusty.
prev parent reply other threads:[~2007-11-13 4:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-08 23:36 [PATCH] [POWERPC] Optimize counting distinct entries in the relocation sections Emil Medve
2007-11-12 6:00 ` Paul Mackerras
2007-11-12 8:01 ` Rusty Russell
2007-11-12 11:55 ` Modulo operation in C for -ve values Deepak Gaur
2007-11-12 16:50 ` [PATCH] [POWERPC] Optimize counting distinct entries in the relocation sections Medve Emilian
2007-11-12 22:31 ` [PATCH] [POWERPC] Optimize counting distinct entries in therelocation sections Medve Emilian
2007-11-13 2:49 ` Paul Mackerras
2007-11-13 4:27 ` Rusty Russell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200711131527.39491.rusty@rustcorp.com.au \
--to=rusty@rustcorp$(echo .)com.au \
--cc=linuxppc-dev@ozlabs$(echo .)org \
--cc=linuxppc-embedded@ozlabs$(echo .)org \
--cc=paulus@samba$(echo .)org \
--cc=sfr@canb$(echo .)auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox