From: Anant Narayanan <anant@kix.in>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: Page-aligned executables (Was re: [9fans] Non-stack-based calling conventions)
Date: Tue, 19 Feb 2008 00:54:36 +0530 [thread overview]
Message-ID: <6B6DC1B5-662B-4408-9F52-D0CC7302FDC0@kix.in> (raw)
In-Reply-To: <7871fcf50802180853v7473d507w991517014e3cb4bb@mail.gmail.com>
>> Hence, writing the loader for Plan 9's a.out proved to be a
>> challenge.
>>
>> I ended up writing a user-space program that padded out the required
>> gap between TEXT and DATA before asking the kernel to execute it.
>> Suboptimal, but it works.
>>
>> If anyone has any ideas as to how I can improve the situation, i'll
>> be
>> grateful.
>
> What's the context that you're building this loader for?
I'm building a sort of reverse linuxemu, call it plan9emu if you will.
I want to be able to run plan 9 binaries on linux without any
modification. I've gotten as far as catching the syscalls, but the
binary still has to be modified (padded).
--
Anant
prev parent reply other threads:[~2008-02-18 19:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-18 16:53 Joel C. Salomon
2008-02-18 17:10 ` ron minnich
2008-02-18 18:06 ` Joel C. Salomon
2008-02-18 18:12 ` ron minnich
2008-02-18 18:20 ` Joel C. Salomon
2008-02-18 18:51 ` ron minnich
2008-02-18 19:24 ` Anant Narayanan [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=6B6DC1B5-662B-4408-9F52-D0CC7302FDC0@kix.in \
--to=anant@kix.in \
--cc=9fans@cse.psu.edu \
/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 NNTP newsgroup(s).