From: "Noah yan" <noah.yan@gmail.com>
To: binutils@sourceware.org
Subject: Re: remove the PF_W of the text program section
Date: Thu, 10 Aug 2006 14:08:00 -0000 [thread overview]
Message-ID: <59521b110608092053k6b55ed99le4258d5de09774b8@mail.gmail.com> (raw)
In-Reply-To: <20060810015356.GB16979@bubble.grove.modra.org>
Hi Alan,
On 8/9/06, Alan Modra <amodra@bigpond.net.au> wrote:
> On Wed, Aug 09, 2006 at 10:57:09AM -0700, Noah yan wrote:
> > I did the check, all the object files (*.o) are safe (the .text
> > section flag is all AX), But I found another two .so files that link
> > into the final object have .got section marked as AWX. are they
> > creating the problem? if so, how to do with it?
>
> No, they won't be causing a problem. (.so sections are not linked into
> your executable.)
>
> Hmm, I guess I should have told you to generate a map file before
> looking at all the input files. A map file will tell you which input
> file sections are linked into the output .text section. You probably
> will find that some other (writable) section is being linked to .text.
> If that is the case, then the cure is to fix your linker script. (I
> gather from a previous comment that you are using your own linker
> script.)
There is one section .plt that is RWX is linked into .text. but when i
put it in the .data section in the script file. The .data section
program header is gone and all (.text, .data, .bss) moves to .text
sections.
Noah
>
> --
> Alan Modra
> IBM OzLabs - Linux Technology Centre
>
prev parent reply other threads:[~2006-08-10 3:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-09 0:26 Noah yan
2006-08-09 0:44 ` Alan Modra
2006-08-09 0:58 ` Noah yan
2006-08-09 1:24 ` Alan Modra
2006-08-09 18:04 ` Noah yan
2006-08-10 3:53 ` Alan Modra
2006-08-10 14:08 ` Noah yan [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=59521b110608092053k6b55ed99le4258d5de09774b8@mail.gmail.com \
--to=noah.yan@gmail.com \
--cc=binutils@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).