From: "Dannie Gay" <dang@broadcom.com>
To: linux-mm@kvack.org, linux-questions-only@ssc.com,
david@kasey.umkc.edu, Dannie Gay <dang@broadcom.com>
Subject: loading and executing a binary image (user mode) from memory
Date: Thu, 13 Feb 2003 18:34:31 -0500 [thread overview]
Message-ID: <NDBBILGLJCKBNGMNECMOCEDFILAA.dang@broadcom.com> (raw)
Need assistance with this embedded linux project:
I want to decompress (from flash) a application into memory and execute it.
Ideally I want to simply jump to the starting location and run. I've
already successfully allocated the required amount of memory (on bootup)
with alloc_bootmem_pages() from the kernel and decompress the image from
flash and load it into my allocated memory (free from kernel tampering).
My user mode application loads from a small initial ram disk, maps the
allocated memory into my process space and marks it as read/execute via mmap
PROT_READ|PROT_EXEC. The problem is what kind of binary image is required
to be built which would allow simply jumping to this location? Can a
particular binary image be built with gcc that is possition independant and
free from the file system requirements imposed upon do_execve?
I'm stuck here, has anyone done this sort of thing?
thanks,
dang
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org">aart@kvack.org</a>
next reply other threads:[~2003-02-13 23:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-13 23:34 Dannie Gay [this message]
2003-02-14 15:45 ` Eric W. Biederman
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=NDBBILGLJCKBNGMNECMOCEDFILAA.dang@broadcom.com \
--to=dang@broadcom.com \
--cc=david@kasey.umkc.edu \
--cc=linux-mm@kvack.org \
--cc=linux-questions-only@ssc.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