mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@uni-koblenz.de>
To: dirty boy <slashdotcommacolon@hotmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linux ELF Implementation
Date: Mon, 2 Sep 2002 06:07:49 +0200	[thread overview]
Message-ID: <20020902060749.A6109@bacchus.dhis.org> (raw)
In-Reply-To: <F218kOUkl2SN8anK0B30000890f@hotmail.com>; from slashdotcommacolon@hotmail.com on Sun, Sep 01, 2002 at 10:26:10PM +0000

On Sun, Sep 01, 2002 at 10:26:10PM +0000, dirty boy wrote:

> im learning about the ELF specification with a friend of mine, were hoping 
> to get a better understanding of how these things work, and a wild idea 
> occurred to us - would it be possible to create a valid ELF executable from 
> purely printable ASCII characters ?
> 
> by that i mean, you would be able to literally cat > a.out and enter your 
> executable from the keyboard! it wouldnt have todo anything, just return 
> 0...
> 
> the file wouldnt have to be portable, only the fields that the kernel is 
> going to notice would have to be present, so long as it executes!
> 
> im convinced the answer is no - but my friend says it is, he says hes seen 
> it done in PE format ( although we cant find it on the web ) and therefore 
> theres no reason why it couldnt be done in ELF.

There answer is no; the ELF magic at the begin of an ELF file contains
a non-printable character.

  Ralf

  reply	other threads:[~2002-09-02  4:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-01 22:26 dirty boy
2002-09-02  4:07 ` Ralf Baechle [this message]
2002-09-02  4:57   ` Thunder from the hill
2002-09-02  6:12     ` Chris Wedgwood

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=20020902060749.A6109@bacchus.dhis.org \
    --to=ralf@uni-koblenz.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=slashdotcommacolon@hotmail.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

all inboxes | Powered by JetHome®