comp.lang.ada
 help / color / mirror / Atom feed
From: wojtek@power.com.pl (Wojtek Narczynski)
Subject: Re: embedding text in executables??
Date: 20 Mar 2003 13:26:30 -0800
Date: 2003-03-20T21:26:30+00:00	[thread overview]
Message-ID: <5ad0dd8a.0303201326.72051bf7@posting.google.com> (raw)
In-Reply-To: 3E776E2F.A99F7BA@boeing.com

B0966864 <B0966864@boeing.com> wrote in message news:<3E776E2F.A99F7BA@boeing.com>...
> I am looking for a way to embed a proprietary rights header at the top
> of the executable when viewed with a basic text editor. I can get it
> into the data section of the file but it needs to be at or near the
> beginning so it is immediately visible. Anyone have any ideas or
> experience in this? Environment Ada95, GHS Adamulti2000v3.5 

In ELF you can have any number of sections with arbirtary names that
don't need to be unique, mean also 'copyright' section at 1st
position. No .dot means that this is user section as opposed to
.system sections. Nothing prevents you from putting it as the first
section. (I believe that using note section of the program header may
not be the correct approach.)

The objcopy utility from the the gnu binutils, will let you add a
section, but I am not aware of any existing utility to reorder the
sections other than using the binutils library programmatically.

From your email's domain I reason that you have all the resources to
do it yourselves, should I be mistaken - contact me off the list ;-)

Regards,
Wojtek Narczynski



      parent reply	other threads:[~2003-03-20 21:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-18 19:06 embedding text in executables?? B0966864
2003-03-19  4:54 ` John R. Strohm
2003-03-19  8:15 ` Martin Dowie
2003-03-19 12:17   ` B0966864
2003-03-20  1:14     ` John R. Strohm
2003-03-19 12:54 ` SIMON Claude
2003-03-20 21:26 ` Wojtek Narczynski [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox