public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
From: "Eric Youngdale" <eric@aib.com>
To: hjl@nynexst.com (H.J. Lu)
Cc: gas2@cygnus.com, raeburn@cygnus.com (Ken Raeburn),
	ian@cygnus.com (Ian Lance Taylor),
	linux-gcc@vger.rutgers.edu (linuxgcc),
	bonn@eskimo.com (David Bonn),
	kjahds@kjahds.com (Kenneth Albanowski),
	lmfken@lmf.ericsson.se (Kenneth Osterberg),
	ian@lasermoon.co.uk, mat@ardi.com (Mat Hostetter),
	ecn@clark.net (Eric C. Newton),
	doughera@lafcol.lafayette.edu (Andy Dougherty),
	brian@mathworks.com (Brian Bourgault),
	jchristy@bga.com (John W. Christy),
	craig@metrolink.com (Craig Groeschel),
	imp@village.org (Warner Losh), robf@www.willows.com (Rob Farnum),
	Huw.Rogers@ska.com (Huw Rogers),
	meissner@cygnus.com (Michael Meissner)
Subject: Re: DT_SYMBOLIC and -Bsymbolic
Date: Mon, 19 Jun 1995 08:13:00 -0000	[thread overview]
Message-ID: <9506191109.ZM13867@aib.com> (raw)
In-Reply-To: <9506191453.AA04291@titanic.nynexst.com>

On Jun 19, 10:58am, H.J. Lu wrote:
> That is what I thought. While I am on it, let me ask one more
> question :-(. Is DT_TEXTREL supported? Or should it be?


	Yes.  This one should only occur if you attempt to create
a shared library from non-PIC code, as the .text section will then
need to have relocations applied.  The DT_TEXTREL tells the dynamic
loader that it needs to mprotect the .text section to make it writable
before applying relocations, and once we are through, we need to set
them back again.

	The dynamic loader should be doing this correctly -
someone did accidentally make a shared library from non-PIC code
as I recall.  They were complaining that dynamic linking was broken
(not surprising), but it worked otherwise, which would tend to suggest
that the linker is inserting DT_TEXTREL and the dynamic loader is
doing the right thing with it.

	I am trying to grab the latest binutils sources -  I will take
a look at DT_SYMBOLIC.

-Eric

-- 
"The woods are lovely, dark and deep.  But I have promises to keep,
And lines to code before I sleep, And lines to code before I sleep."


  reply	other threads:[~1995-06-19  8:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-06-19  7:01 H.J. Lu
1995-06-19  7:42 ` Eric Youngdale
1995-06-19  8:01   ` H.J. Lu
1995-06-19  8:13     ` Eric Youngdale [this message]
1995-06-19 14:54     ` Eric Youngdale
1995-06-19 15:21 ` Eric Youngdale
1995-06-19 17:55   ` H.J. Lu
1995-06-20 11:55     ` Eric Youngdale

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=9506191109.ZM13867@aib.com \
    --to=eric@aib.com \
    --cc=Huw.Rogers@ska.com \
    --cc=bonn@eskimo.com \
    --cc=brian@mathworks.com \
    --cc=craig@metrolink.com \
    --cc=doughera@lafcol.lafayette.edu \
    --cc=ecn@clark.net \
    --cc=gas2@cygnus.com \
    --cc=hjl@nynexst.com \
    --cc=ian@cygnus.com \
    --cc=ian@lasermoon.co.uk \
    --cc=imp@village.org \
    --cc=jchristy@bga.com \
    --cc=kjahds@kjahds.com \
    --cc=linux-gcc@vger.rutgers.edu \
    --cc=lmfken@lmf.ericsson.se \
    --cc=mat@ardi.com \
    --cc=meissner@cygnus.com \
    --cc=raeburn@cygnus.com \
    --cc=robf@www.willows.com \
    /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).