From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a2a82ecf7876e5c1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-20 13:26:31 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: wojtek@power.com.pl (Wojtek Narczynski) Newsgroups: comp.lang.ada Subject: Re: embedding text in executables?? Date: 20 Mar 2003 13:26:30 -0800 Organization: http://groups.google.com/ Message-ID: <5ad0dd8a.0303201326.72051bf7@posting.google.com> References: <3E776E2F.A99F7BA@boeing.com> NNTP-Posting-Host: 212.160.20.107 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1048195590 387 127.0.0.1 (20 Mar 2003 21:26:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 20 Mar 2003 21:26:30 GMT Xref: archiver1.google.com comp.lang.ada:35578 Date: 2003-03-20T21:26:30+00:00 List-Id: B0966864 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