From: "Jan Beulich" <JBeulich@novell.com>
To: <binutils@sourceware.org>
Subject: ld's targets vs emulations (intending to link EFI binaries on Linux)
Date: Mon, 02 May 2011 07:44:00 -0000 [thread overview]
Message-ID: <4DBE7CE2020000780003F1C6@vpn.id2.novell.com> (raw)
What is the point of ld supporting (in e.g. the default x86 Linux
configurations) PE executables as targets, but not as emulations?
This basically means that one can link such executables, but there's
no control over the various linking parameters (as those are
processed by the respective [not present] emulation code).
Note that elilo, for example, is also suffering from this, working
around it by first linking an ELF shared object, then converting it
to a PE executable via objcopy. A gross hack imo, not the least
because according to what I can see, objcopy doesn't translate
relocations, requiring the produced binary to do "self relocation"
(see the gnu-efi project).
Thanks, Jan
next reply other threads:[~2011-05-02 7:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-02 7:44 Jan Beulich [this message]
2011-05-10 16:28 ` Nick Clifton
2011-05-11 6:59 ` Jan Beulich
2011-05-12 11:04 ` Nick Clifton
2011-05-13 6:54 ` Jan Beulich
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=4DBE7CE2020000780003F1C6@vpn.id2.novell.com \
--to=jbeulich@novell.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).