From: Michael Shmulevich <michaels@jungo.com>
To: Linux/MIPS <linux-mips@oss.sgi.com>, FR Linux/MIPS <linux-mips@fnet.fr>
Subject: Dynamic linker and .interp section
Date: Thu, 12 Apr 2001 16:39:15 +0300 [thread overview]
Message-ID: <3AD5B003.7000908@jungo.com> (raw)
Hello,
My question may be a bit off-topic for this list, but still I consider
the list as a place that may answer me.
I am trying to create a cross-compile environement for linux system that
will use some specific dynamic linker. To do so I specify
-Wl,--dynamic-linker flag to gcc. However doing this I face several
problems:
- the place for the linker during the compilation must match the place
at the target system (if I pass -Wl,--dynamic-linker /xxx/yyy/ld.so then
for the executable kernel looks for /xxx/yyy/ld.so in order to execute
it. Instead I would like to use simply /lib/ld.so
- If I pass -Wl,--dynamic-linker /lib/ld.so, then the /lib/ld.so must
exist during the compilation and match the chosen system's architecture.
I don't want to create this file (/lib/ld.so) on my compilation machine,
as there are many architectures that get compiled there and I cannot use
the same ld.so for all of them.
- I saw that in gcc's spec file there is a mention of dynamic linker,
for example, this one is for PPC %:{!dynamic-linker:-dynamic-linker
/lib/ld.so.1}
This one is interesting because there is no /lib/ld.so.1 on my machine,
and it resides under /usr/local/powerpc-linux/lib. Still compiler seems
to ignore the fact that it is missing from /lib and creates the
corresponding .interp section and PT_INTERP header.
So my question sounds like: can I specify a non-existing linker and tell
ld to ignore missing file?
Thanks in advance for any response, no matter how insulting it may be :-)
--
Sincerely yours,
Michael Shmulevich
______________________________________
Software Developer
Jungo - R&D
email: michaels@jungo.com
web: http://www.jungo.com
Phone: 1-877-514-0537(USA) +972-9-8859365(Worldwide) ext. 233
Fax: 1-877-514-0538(USA) +972-9-8859366(Worldwide)
next reply other threads:[~2001-04-12 13:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-12 13:39 Michael Shmulevich [this message]
2001-04-12 14:09 ` Dynamic linker and .interp section Maciej W. Rozycki
2001-04-12 14:29 ` Michael Shmulevich
2001-04-12 14:46 ` Maciej W. Rozycki
2001-04-12 14:44 ` Michael Shmulevich
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=3AD5B003.7000908@jungo.com \
--to=michaels@jungo.com \
--cc=linux-mips@fnet.fr \
--cc=linux-mips@oss.sgi.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.