public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: Ruslan Kuprieiev <kupruser@gmail.com>
To: linux-kbuild@vger.kernel.org
Subject: Re: rela sections in vmlinux
Date: Tue, 15 Mar 2016 02:10:35 +0200	[thread overview]
Message-ID: <56E752FB.6000300@gmail.com> (raw)
In-Reply-To: <56DC9B44.6020104@gmail.com>

Hi All,

Just wanted to answer my own question.

The problem was that I forgot to add --emit-relocs to my own script and
that's why I didn't find any rela sections in vmlinux. After adding proper
ld options everything started to make sense =).

Thanks,
Ruslan

On 03/06/2016 11:04 PM, Ruslan Kuprieiev wrote:
> Hi!
>
> I'm trying to figure out how CONFIG_RELOCATABLE works and one of the 
> things
> that I've noticed is that vmlinux itself doesn't have any rela 
> sections, which is
> confusing for me considering the name of the option. I did read the 
> patches that
> introduced this option but it is still not clear to me how exactly it 
> works and why
> there are no relocations left in the vmlinux. Could you please give me 
> a hint on
> why it happens and point me where to read more?
>
> I also see that vmlinux.o has all the rela sections I'm looking for(as 
> an object file
> should =)), so it raises another question: Is it possible to make 
> vmlinux keep that
> rela sections? I also went through makefiles but couldn't figure out 
> where to
> make a proper change to achieve that.
>
> I'm using default 3.10.0-229.20.1.el7.x86_64 centos7 kernel with 
> CONFIG_RELOCATABLE
> enabled.
>
> Thanks,
> Ruslan


      reply	other threads:[~2016-03-15  0:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-06 21:04 rela sections in vmlinux Ruslan Kuprieiev
2016-03-15  0:10 ` Ruslan Kuprieiev [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=56E752FB.6000300@gmail.com \
    --to=kupruser@gmail.com \
    --cc=linux-kbuild@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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