<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Utility to change &amp;quot;image file identification&amp;quot;? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5730855#M36943</link>
    <description>&lt;P&gt;For &lt;U&gt;&lt;STRONG&gt;non-operating system executable images&lt;/STRONG&gt;&lt;/U&gt; this idea is ducky.&amp;nbsp; But, from past experience, munging around with the information in these areas for original .EXE files that are part of OpenVMS or it's layered products is generally what could be called &lt;EM&gt;A Bad Thing&lt;/EM&gt;.&amp;nbsp; There are several utilities that use the information contained within the executable header of O/S images that depend on the data being exactly what DEC/CPQ/HP sent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having said that...it is your (or your customer's) system and it can be modified however you wish.&amp;nbsp; Just please be prepared with a backup of the disk or images if things stop working so you can restore what got clobbered.&amp;nbsp; It would also be polite to let customer support know if you've made changes of this sort because tools they use will also be effectively neutered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bob&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jul 2012 16:39:43 GMT</pubDate>
    <dc:creator>Bob Blunt</dc:creator>
    <dc:date>2012-07-19T16:39:43Z</dc:date>
    <item>
      <title>Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5717427#M36924</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Does anyone know of a program or a way of changing or patching the "image file identification", i.e.. the program version number string that is set by the linker identification keyword, in an existing image file?? I am specifically looking for something that would work under Itanium OpenVMS, which, as I understand it, is a bit more complicated since it is embedded in the ELF image format, however it would&amp;nbsp;ideal if it could work under Alpha, as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The problem I am trying to solve is that I have a large collection of .EXE files that I'd really like to not re-link (or can't) and the developers&amp;nbsp;didn't conform to the standard of putting the version number in this field, so automated tools built on analyze/image can't retrieve an accurate version number. I'd like to update these "in place". The SET IMAGE command looked promising but this does not&amp;nbsp;seem to be&amp;nbsp;a field it supports changing. I can put in an enhancement request to HP but I was hoping for a solution this century.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks in advance for any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Dave&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2012 01:09:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5717427#M36924</guid>
      <dc:creator>David R. Lennon</dc:creator>
      <dc:date>2012-07-10T01:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5717449#M36925</link>
      <description>&lt;P&gt;Dave,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; When you say "didn't conform to the standard" do you mean they&amp;nbsp;specified something, but not what you want, or that it's undefined or null? If there's something there which is at least&amp;nbsp;the correct string length, you may be able to&amp;nbsp;fix it using PATCH/ABSOLUTE (this is a one-off isn't it?). Worst case pad it with blanks.&amp;nbsp;Changing the string length might get a bit ugly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Most likely your approach will need to be completely different between Alpha and Itanium.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Maybe you can appease your automated tools with dummy images containing the correct string, visible only to the analysis utility via a search list? (without knowing more about your environment...)&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2012 01:39:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5717449#M36925</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2012-07-10T01:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5717613#M36926</link>
      <description>&lt;P&gt;FWIW, playing around on Alpha, Isuccessfully changed the image file identification on a copy of ZIP.EXE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I found the ident string at offset 0F0 in the header as a counted ASCII string. The original value was ZIP 3.0 (with a count byte of 7). There were 2 empty longwords to the next field (looks like the linker ident, also as a counted string). That meant I was able to patch the ident string up to 15 characters. Here's a transcript:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Before

        Image Identification Information

                image name: "ZIP"
                image file identification: "ZIP 3.0"
                image file build identification: ""
                link date/time: 26-FEB-2009 21:51:20.33
                linker identification: "A13-03"


$ patch/absolute zip.exe


  OpenVMS PATCH Version T8.2-001

%PATCH-I-NOGBL, some or all global symbols not accessible
%PATCH-I-NOLCL, image does not contain local symbols
PATCH&amp;gt;examine 0f0:0100
000000F0:  50495A07   ! Count byte 7, text ZIP
000000F4:  302E3320   ! text &amp;lt;sp&amp;gt;3.0
000000F8:  00000000   ! empty
000000FC:  00000000   ! empty
00000100:  33314106   ! start of 6 byte linker ident string

PATCH&amp;gt;dep/byte 0f0=0f
old:    000000F0:  07
new:    000000F0:  0F
PATCH&amp;gt;dep/ascii .+1='ZIP'
old:    000000F1:  'ZIP '
new:    000000F1:  'ZIP'
PATCH&amp;gt;dep/ascii .+3=' NEW'
old:    000000F4:  '3.0'
new:    000000F4:  ' NEW'
PATCH&amp;gt;dep/ascii .+4=' V3.'
old:    000000F8:  ''
new:    000000F8:  ' V3.'
PATCH&amp;gt;dep/ascii .+4='1415'
old:    000000FC:  ''
new:    000000FC:  '1415'
PATCH&amp;gt;update
%PATCH-I-WRTFIL, updating image file DISK1:[GILLINGS]ZIP.EXE;4


After

        Image Identification Information

                image name: "ZIP"
                image file identification: "ZIP NEW V3.1415"
                image file build identification: ""
                link date/time: 26-FEB-2009 21:51:20.33
                linker identification: "A13-03"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if the 0F0 is constant for all images (though a quick look at several images looks like it is). Assuming that's the case it's fairly simple to generate patch scripts, at least on Alpha. When I get a chance I'll see if I can figure out how it works on Itanium&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2012 04:15:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5717613#M36926</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2012-07-10T04:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5717897#M36927</link>
      <description>&lt;P&gt;As far as I know, the only public documentation on the image format - either Alpha or Integrity - is in starlet and lib. For C header files look for ei* in sys$lib_c.tlb and elf* in sys$starlet_c.tlb. The image file identification is not at a fixed offset, not even for Alpha.&amp;nbsp; You probably need a combination of analyze/image and dump/page to determine the offset on Alpha. For Integrity analyze/image prints offsets. Then use your favorite patch utility. (But you can use EDIT/TPU to search for a given string and replace it - and reset the file attributes after TPU wrote a new version of the file.) But you can (or ask others to) write a simple C program to do the work, with code for both formats. It shouldn't be that difficult and expensive.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2012 07:14:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5717897#M36927</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2012-07-10T07:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5719097#M36928</link>
      <description>&lt;P&gt;Thanks to Hartmut's clue, I found EIHD$L_IMGIDOFF=24 so the longword at offset 24 in the image header&amp;nbsp;is an offset to the image ident area (EIHI$).&amp;nbsp;That block contains major and minor IDs, link time, image name, image ID and linker ID. The Image ID is a counted string at EIHI$T_IMGID=56 within the block. Maximum length of the field (including the size byte) is EIHI$S_LINKID=16&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So here's a DCL procedure to find the image ident string of an image:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$ f=F$PARSE(p1,"SYS$DISK:[].EXE")
$ lf=""
$ SET NOON
$ EIHD$L_IMGIDOFF=24     ! Location of offset to ImageID
$ EIHI$T_IMGID=56
$ ByteSize=8
$ LongSize=32
$ Loop: ff=F$SEARCH(f)
$ IF ff.NES."".AND.ff.NES.lf
$ THEN
$   lf=ff
$   OPEN/READ img 'ff'
$     READ img head          ! Get image header
$   CLOSE img
$     ! Calculate byte offset to Image Ident string
$   idoff=F$CVUI(EIHD$L_IMGIDOFF*ByteSize,LongSize,head)+EIHI$T_IMGID
$   len=F$CVUI(idoff*ByteSize,ByteSize,head)  ! Read Length byte
$   IdStr=F$EXTRACT(idoff+1,len,head)         ! Extract ident string
$   WRITE SYS$OUTPUT "''ff' ''IdStr'"
$   GOTO Loop
$ ENDIF
$ EXIT&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get sensible answers for all the images I've tried it on. Including everything in SYS$SYSTEM, SYS$SHARE and&amp;nbsp;SYS$LOADABLE_IMAGES.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found documentation describing the (Alpha) image&amp;nbsp;header in section 28.1.4 in the IDSM V1.5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above DCL could be used to generate a PATCH script to hack the ident string of an image.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2012 22:23:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5719097#M36928</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2012-07-10T22:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5719099#M36929</link>
      <description>&lt;P&gt;I think you didn't even need to use PATCH on an Alpha.&amp;nbsp; The .EXE file is fixed length 512 byte records, so just open the .EXE like a normal file, read the first record/block, modify the field,&amp;nbsp;WRITE/UPDATE/SYMBOL the record, then close the file.&amp;nbsp; Or, if you wanted to play safe,&amp;nbsp;write the modified record to a new file and copy the rest of the initial file there too.&amp;nbsp; Of course you'll need to first identify the location of the&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if&amp;nbsp;Itanium .EXE's can be processed in a&amp;nbsp;similar fashion.&amp;nbsp;I've got a vague recollection that&amp;nbsp;there's a checksum&amp;nbsp;at the end of each section of the ELF, but hopefully I'm wrong.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2012 22:27:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5719099#M36929</guid>
      <dc:creator>John McL</dc:creator>
      <dc:date>2012-07-10T22:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5719403#M36930</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt; that&amp;nbsp;there's a checksum&amp;nbsp;at the end of each section of the ELF&lt;/EM&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;No, there isn't. As we all know, the ELF is quite different from the VAX/Alpha image format. The "image file identification" is in the note section. The location of this section is described in the section header table. The location of this table is described in the ELF header. This header is at the beginning of the file. The good thing here is, that the linker developer almost always wrote sections and the section header table starting at disk blocks - an implementation detail which can change any time. So it is doable, even in DCL but it is more work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although output parsing is not recommended the most effective way in DCL would be to parse the output of analyze/image/section=note to calculate the file offset. At least for me, writing a small program to do this is much easier. But I didn't receive any request , so far :-)&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2012 07:12:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5719403#M36930</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2012-07-11T07:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5719961#M36931</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for everyone's input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;H.Becker - sure, what can I do to request/bribe you to write a program? Could the program be able to "modify" the field, not just display it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a program that looks like it is similar to the SET IMAGE command, I wonder if that could be modified to do this easier than writing one from scratch?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://vouters.dyndns.org/tima/OpenVMS-IA64-THREADCP_rewritten_for_Itanium.html"&gt;http://vouters.dyndns.org/tima/OpenVMS-IA64-THREADCP_rewritten_for_Itanium.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2012 14:17:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5719961#M36931</guid>
      <dc:creator>David R. Lennon</dc:creator>
      <dc:date>2012-07-11T14:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5720153#M36932</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt; I found a program that looks like it is similar to the SET IMAGE command, I wonder if that could be modified to do this easier than writing one from scratch?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;I can't comment on this one, the html page is not available for me. But changing thread related flags is changing DT_VMS_LINKFLAGS in the dynamic table and that is a little bit different. But for a start ... There is probably more available on the net.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You are very likely looking for something like&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;$ mc []imgid main.exe&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;imgid: 'V1.0'&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;$ mc []imgid main.exe "V1.0.8.8"&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;imgid: 'V1.0'&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;new imgid too long, supply a string with length &amp;lt; 8&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;$ mc []imgid main.exe "V1.0.8"&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;imgid: 'V1.0'&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;new imgid: 'V1.0.8'&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;$ mc []imgid main.exe &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;imgid: 'V1.0.8'&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;$&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Fresh out of the compiler, the bits are still wet. Unfortunately I can't test/analyze the generated image, because this ran on Alpha and I don't have access to an Integrity.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The note's entry for imgid has a max size, a multiple of 8, depending on what is already there. The string is zero-terminated and the terminator counts.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regarding the bribe and how you can get this, send me a mail, or what they call here a private message. And let me know where you want to run the tool, VMS-Alpha/Integrity (or X86/Linux. No, no Win32 code!)&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Jul 2012 17:34:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5720153#M36932</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2012-07-11T17:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5722221#M36933</link>
      <description>&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the imgid Alpha source code, be in touch with H. Becker. For the imgid Itanium code, refer to:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://vouters.dyndns.org/tima/OpenVMS-IA64-Changing_the_image_identitication_of_an_executable.html"&gt;http://vouters.dyndns.org/tima/OpenVMS-IA64-Changing_the_image_identitication_of_an_executable.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yours truly,&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2012 10:55:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5722221#M36933</guid>
      <dc:creator>Ph Vouters</dc:creator>
      <dc:date>2012-07-13T10:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5722369#M36934</link>
      <description>&lt;DIV&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&amp;nbsp;For the imgid Itanium code, refer to:&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;A target="_blank" href="http://vouters.dyndns.org/tima/OpenVMS-IA64-Changing_the_image_identitication_of_an_executable.html"&gt;http://vouters.dyndns.org/tima/OpenVMS-IA64-Changing_the_image_identitication_of_an_executable.html&lt;/A&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; /*&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp;* The ident string must be no longer than eight characters&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp;* including the null terminating byte.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp;*/&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;No, see previous replies. In case the current string length is &amp;gt;=8 characters, your code creates an&amp;nbsp;invalid -&amp;nbsp;or should I say corrupts the ? - note section.&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Jul 2012 13:26:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5722369#M36934</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2012-07-13T13:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5722659#M36935</link>
      <description>&lt;P&gt;Harmut,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did realize that the linker's IDENTIFICATION option string can be longer than 7 characters not including the&lt;/P&gt;&lt;P&gt;terminating null byte. So I reworked the code. The new code has been tested using binutils' readelf and is available at the same URL. I have set the ID string buffer limit to 80 inside the code. I hope it is large enough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been misled by your imgid run on Alpha.&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2012 19:21:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5722659#M36935</guid>
      <dc:creator>Ph Vouters</dc:creator>
      <dc:date>2012-07-13T19:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5725591#M36936</link>
      <description>&lt;P&gt;I still think Philippe's code won't do the right thing if you expand an image ident such that the .note section grows past a page boundary.&amp;nbsp; If you have to bump other sections down inside the file, you have LOTS of work to do to recompute all the section offsets in the header table.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2012 16:38:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5725591#M36936</guid>
      <dc:creator>jreagan</dc:creator>
      <dc:date>2012-07-16T16:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5726951#M36937</link>
      <description>&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do not think ! Send me an actual VMS image where the code I post does not do the trick and I'll rework upon it. On Itanium, I use both analyze/image and binutils' readelf to control. On Alpha, I only know of analyze/image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2012 12:37:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5726951#M36937</guid>
      <dc:creator>Ph Vouters</dc:creator>
      <dc:date>2012-07-17T12:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5727403#M36938</link>
      <description>&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can read from this binutils's readelf run, the IA64 VMS Linker aligns the .note section on a disk block boundary and the .note length does not exceed a disk block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ readelf -a Rudy.EXE&lt;BR /&gt;ELF Header:&lt;BR /&gt;&amp;nbsp; Magic:&amp;nbsp;&amp;nbsp; 7f 45 4c 46 02 01 01 0d 02 00 00 00 00 00 00 00&lt;BR /&gt;&amp;nbsp; Class:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELF64&lt;BR /&gt;&amp;nbsp; Data:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2's complement, little endian&lt;BR /&gt;&amp;nbsp; Version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 (current)&lt;BR /&gt;&amp;nbsp; OS/ABI:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VMS - OpenVMS&lt;BR /&gt;&amp;nbsp; ABI Version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;BR /&gt;&amp;nbsp; Type:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXEC (Executable file)&lt;BR /&gt;&amp;nbsp; Machine:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Intel IA-64&lt;BR /&gt;&amp;nbsp; Version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1&lt;BR /&gt;&amp;nbsp; Entry point address:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x501c8&lt;BR /&gt;&amp;nbsp; Start of program headers:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 72 (bytes into file)&lt;BR /&gt;&amp;nbsp; Start of section headers:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11784 (bytes into file)&lt;BR /&gt;&amp;nbsp; Flags:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1000014, 64-bit, vms_linkages&lt;BR /&gt;&amp;nbsp; Size of this header:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 72 (bytes)&lt;BR /&gt;&amp;nbsp; Size of program headers:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 56 (bytes)&lt;BR /&gt;&amp;nbsp; Number of program headers:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;BR /&gt;&amp;nbsp; Size of section headers:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 64 (bytes)&lt;BR /&gt;&amp;nbsp; Number of section headers:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9&lt;BR /&gt;&amp;nbsp; Section header string table index: 1&lt;BR /&gt;&lt;BR /&gt;Section Headers:&lt;BR /&gt;&amp;nbsp; [Nr] Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Address&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Offset&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EntSize&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flags&amp;nbsp; Link&amp;nbsp; Info&amp;nbsp; Align&lt;BR /&gt;&amp;nbsp; [ 0]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000000000000000&amp;nbsp; 00000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000000000000000&amp;nbsp; 0000000000000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;&amp;nbsp; [ 1] .shstrtab&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STRTAB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000000000000000&amp;nbsp; 00002c08&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000000000000056&amp;nbsp; 0000000000000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;&amp;nbsp; [ 2] .strtab&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STRTAB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000000000000000&amp;nbsp; 00002a08&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000000000000001&amp;nbsp; 0000000000000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;&amp;nbsp; [ 3] .debug_line&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VMS_TRACE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000000000000000&amp;nbsp; 00001e00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 000000000000020f&amp;nbsp; 0000000000000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;&amp;nbsp; [ 4] .trace_abbrev&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VMS_TRACE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000000000000000&amp;nbsp; 00002200&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 000000000000001e&amp;nbsp; 0000000000000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;&amp;nbsp; [ 5] .trace_info&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VMS_TRACE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000000000000000&amp;nbsp; 00002400&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 000000000000006c&amp;nbsp; 0000000000000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;&amp;nbsp; [ 6] .trace_aranges&amp;nbsp;&amp;nbsp;&amp;nbsp; VMS_TRACE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000000000000000&amp;nbsp; 00002600&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000000000000030&amp;nbsp; 0000000000000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;&amp;nbsp; [ 7] .note&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOTE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000000000000000&amp;nbsp; 00002800&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000000000000188&amp;nbsp; 0000000000000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;&amp;nbsp; [ 8] .dynstr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STRTAB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000000000000000&amp;nbsp; 00001750&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 000000000000000a&amp;nbsp; 0000000000000000&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;Key to Flags:&lt;BR /&gt;&amp;nbsp; W (write), A (alloc), X (execute), M (merge), S (strings)&lt;BR /&gt;&amp;nbsp; I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown)&lt;BR /&gt;&amp;nbsp; O (extra OS processing required) o (OS specific), p (processor specific)&lt;BR /&gt;&lt;BR /&gt;There are no section groups in this file.&lt;BR /&gt;&lt;BR /&gt;Program Headers:&lt;BR /&gt;&amp;nbsp; Type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Offset&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VirtAddr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PhysAddr&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileSiz&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MemSiz&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flags&amp;nbsp; Align&lt;BR /&gt;&amp;nbsp; LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000000000000 0x0000000000010000 0x0000000000000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000000000000 0x0000000000001230&amp;nbsp; RW&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;BR /&gt;&amp;nbsp; LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000000000200 0x0000000000020000 0x0000000000000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000000000c90 0x0000000000000c90&amp;nbsp; R E&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;BR /&gt;&amp;nbsp; LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000000001000 0x0000000000030000 0x0000000000000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000000000b0 0x00000000000000b0&amp;nbsp; R&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;BR /&gt;&amp;nbsp; LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000000001200 0x0000000000040000 0x0000000000000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000000000100 0x0000000000000100&amp;nbsp; R&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&lt;BR /&gt;&amp;nbsp; LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000000001400 0x0000000000050000 0x0000000000000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000000001f8 0x00000000000001f8&amp;nbsp; R&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;BR /&gt;&amp;nbsp; DYNAMIC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000000001600 0x0000000080000000 0x0000000000000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000000000668 0x0000000000000668&amp;nbsp; R&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;Section to Segment mapping:&lt;BR /&gt;&amp;nbsp; Segment Sections...&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 00&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 01&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 02&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 03&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 04&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 05&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Dynamic section at offset 0x1600 contains 21 entries:&lt;BR /&gt;&amp;nbsp; Tag&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name/Value&lt;BR /&gt;&amp;nbsp;0x0000000060000019 (VMS_IDENT)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x12c457f1337f3&lt;BR /&gt;&amp;nbsp;0x0000000060000035 (VMS_LINKTIME)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012-07-14T19:26:47&lt;BR /&gt;&amp;nbsp;0x000000006000004d (VMS_PLTGOT_SEG)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x4&lt;BR /&gt;&amp;nbsp;0x000000006000004b (VMS_PLTGOT_OFFSET)&amp;nbsp; 0x200000&lt;BR /&gt;&amp;nbsp;0x000000006000002f (VMS_UNWINDSZ)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x60&lt;BR /&gt;&amp;nbsp;0x0000000060000031 (VMS_UNWIND_CODSEG)&amp;nbsp; 0x1&lt;BR /&gt;&amp;nbsp;0x0000000060000033 (VMS_UNWIND_INFOSEG) 0x3&lt;BR /&gt;&amp;nbsp;0x000000006000003d (VMS_UNWIND_OFFSET)&amp;nbsp; 0x0&lt;BR /&gt;&amp;nbsp;0x000000006000003f (VMS_UNWIND_SEG)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x3&lt;BR /&gt;&amp;nbsp;0x000000006000004f (VMS_FPMODE)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x9800000&lt;BR /&gt;&amp;nbsp;0x0000000060000041 (VMS_STRTAB_OFFSET)&amp;nbsp; 0x150&lt;BR /&gt;&amp;nbsp;0x000000000000000a (STRSZ)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10 (bytes)&lt;BR /&gt;&amp;nbsp;0x000000006000001d (VMS_NEEDED_IDENT)&amp;nbsp;&amp;nbsp; 0x2000100000001&lt;BR /&gt;&amp;nbsp;0x0000000000000001 (NEEDED)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shared library: [DECC$SHR]&lt;BR /&gt;&amp;nbsp;0x0000000060000025 (VMS_FIXUP_NEEDED)&amp;nbsp;&amp;nbsp; 0x0&lt;BR /&gt;&amp;nbsp;0x0000000060000023 (VMS_FIXUP_RELA_CNT) 0x13&lt;BR /&gt;&amp;nbsp;0x0000000060000049 (VMS_FIXUP_RELA_OFF) 0x160&lt;BR /&gt;&amp;nbsp;0x0000000060000015 (VMS_LNKFLAGS)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x4a0 IMGSTA MAIN TBK_IN_IMG&lt;BR /&gt;&amp;nbsp;0x000000006000001f (VMS_IMG_RELA_CNT)&amp;nbsp;&amp;nbsp; 0x11&lt;BR /&gt;&amp;nbsp;0x0000000060000045 (VMS_IMG_RELA_OFF)&amp;nbsp;&amp;nbsp; 0x3c0&lt;BR /&gt;&amp;nbsp;0x0000000000000000 (NULL)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xdead&lt;BR /&gt;&lt;BR /&gt;There are no relocations in this file.&lt;BR /&gt;&lt;BR /&gt;There are no unwind sections in this file.&lt;BR /&gt;&lt;BR /&gt;No version information found in this file.&lt;BR /&gt;&lt;BR /&gt;Notes at offset 0x00002800 with length 0x00000188:&lt;BR /&gt;&amp;nbsp; Owner&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description&lt;BR /&gt;&amp;nbsp; IPF/VMS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000005&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NT_VMS_IMGNAM (image name)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Image name: RUDY&lt;BR /&gt;&amp;nbsp; IPF/VMS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000005&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NT_VMS_GSTNAM (sym table name)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Global symbol table name: Rudy&lt;BR /&gt;&amp;nbsp; IPF/VMS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NT_VMS_IMGID (image id)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Image id: 123456789012345&lt;BR /&gt;&amp;nbsp; IPF/VMS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000020&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NT_VMS_IMGBID (build id)&lt;BR /&gt;&amp;nbsp; IPF/VMS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000008&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NT_VMS_LINKTIME&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Link time: 2012-07-14T19:26:47&lt;BR /&gt;&amp;nbsp; IPF/VMS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000e&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NT_VMS_LINKID (link id)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Linker id: Linker I02-38&lt;BR /&gt;&amp;nbsp; IPF/VMS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000025&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NT_VMS_ORIG_DYN&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Major id: 1,&amp;nbsp; minor id: 3&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Manip date&amp;nbsp; : 2012-07-14T19:26:47&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Link flags&amp;nbsp; : 0x00000000000004a0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Header flags: 0x01000014&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Image id&amp;nbsp;&amp;nbsp;&amp;nbsp; : V1.0&lt;BR /&gt;&amp;nbsp; IPF/VMS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000008&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NT_VMS_PATCHTIME&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Patch time: 2012-07-14T19:26:47&lt;BR /&gt;&lt;BR /&gt;If you carefully paid attention to the code, this is just 8 + 8 or 16 + 24 bytes I am concerned with (NT_VMS_IMGID above). So, unless I misunderstood it, your remark was purely theoretical. However to satisfy your past (maybe current) developer mind, I did address your remark in an update of the code. Practically speaking, this should have no influence onto the sake of the produced ELF image compared with previously.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2012 18:23:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5727403#M36938</guid>
      <dc:creator>Ph Vouters</dc:creator>
      <dc:date>2012-07-17T18:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5727467#M36939</link>
      <description>&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could only be correct provided the&amp;nbsp;NT_VMS_IMGNAM +&amp;nbsp;NT_VMS_GSTNAM .note subentries are so large that the&amp;nbsp;NT_VMS_IMGID spans over two adjacent disk blocks AND the ELF image is not disk [re]written into a new file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One can comment onto IMGNAM and GSTNAM physical limits on VMS.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2012 19:18:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5727467#M36939</guid>
      <dc:creator>Ph Vouters</dc:creator>
      <dc:date>2012-07-17T19:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5727537#M36940</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;the IA64 VMS Linker aligns the .note section on a disk block boundary&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;DIV&gt;This was already mentioned in this thread. Except for the dynstr, which for VMS images is part of the dynamic segment, all sections are on disk block boundary. Can you post an output of analyze./image? I'm curious to see that there are two other sections not starting at a block boundary. &amp;nbsp;But what do I expect.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;and the .note length does not exceed a disk block.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In your example the length is 0x188, so in the disk block there is space left for 0x78 characters.&lt;/DIV&gt;&lt;DIV&gt;In ELF, there are no limits for the size of the note entries, except that the descriptor size here has to fit in 64 bits. If there is a limit for the imgnam, then it is very likely in the linker processing options and/or tparse. An option line has to be longer than 1024, which is the maximum symbol length. I wouldn't expect any specific limit for the NAME= option. Gstnam is derived from a filename. All together it seems possible to fill more than a disk block. Not usual, but possible. And, the linker may change and add some more note entries and/or data to the orig area.&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Jul 2012 20:49:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5727537#M36940</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2012-07-17T20:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5728929#M36941</link>
      <description>&lt;P&gt;Harmut and John,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please do refrein yourself from thinking theoretically. Find me a single non corrupted .EXE which matches your hypothesis. I can't find any which does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ @notes_section.com&lt;BR /&gt;Number of .EXE scanned&lt;BR /&gt;&lt;BR /&gt;Grand total of 455 directories, 4563 files.&lt;BR /&gt;$ type notes_section.com&lt;BR /&gt;$ create notes_section.gawk&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; blocksize = 512;&lt;BR /&gt;&amp;nbsp; if (/^Notes at offset /) {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; match($0,/^Notes at offset (.*) with length (.*):/,a);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((strtonum(a[1])%blocksize != 0) || (strtonum(a[2]) &amp;gt; blocksize)) {&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Alert : Note section not aligned on a block boundary or ...";&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Notes section length greater than a block size";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit 44&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;$ write sys$output "Number of .EXE scanned"&lt;BR /&gt;$ dire/grand sys$sysdevice:[*...]*.EXE;&lt;BR /&gt;$ context = 10&lt;BR /&gt;$ set process/priv=bypass&lt;BR /&gt;$ loop:&lt;BR /&gt;$ file = f$search("sys$sysdevice:[*...]*.EXE;",context)&lt;BR /&gt;$ if file .eqs. "" then exit&lt;BR /&gt;$ pipe readelf --note 'file' | gawk -f notes_section.gawk&lt;BR /&gt;$ if $STATUS .eq. 44&lt;BR /&gt;$ then&lt;BR /&gt;$&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write sys$output "Look at this ''file' file"&lt;BR /&gt;$ endif&lt;BR /&gt;$ goto loop&lt;BR /&gt;$ logout&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2012 13:48:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5728929#M36941</guid>
      <dc:creator>Ph Vouters</dc:creator>
      <dc:date>2012-07-18T13:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5729445#M36942</link>
      <description>&lt;P&gt;I'll refrain from thinking.&amp;nbsp; I've done that for years... ask my wife.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In an .EXE, there is an upperbound for .note section size.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;linktime + imgnam + imgid + linkid + imgbid + gstnam + orig_dyn + patchtime&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That should always be under 512 (I didn't actually add the max values, I did some thinking instead)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For .OBJ files, the .note sections can theoreticallly (there's that word again) be much larger than 512.&amp;nbsp; If the compilers decide to emit source file names, title text, and Pascal's "entity ident consistency check".&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2012 21:44:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5729445#M36942</guid>
      <dc:creator>jreagan</dc:creator>
      <dc:date>2012-07-18T21:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Utility to change "image file identification"?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5730855#M36943</link>
      <description>&lt;P&gt;For &lt;U&gt;&lt;STRONG&gt;non-operating system executable images&lt;/STRONG&gt;&lt;/U&gt; this idea is ducky.&amp;nbsp; But, from past experience, munging around with the information in these areas for original .EXE files that are part of OpenVMS or it's layered products is generally what could be called &lt;EM&gt;A Bad Thing&lt;/EM&gt;.&amp;nbsp; There are several utilities that use the information contained within the executable header of O/S images that depend on the data being exactly what DEC/CPQ/HP sent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having said that...it is your (or your customer's) system and it can be modified however you wish.&amp;nbsp; Just please be prepared with a backup of the disk or images if things stop working so you can restore what got clobbered.&amp;nbsp; It would also be polite to let customer support know if you've made changes of this sort because tools they use will also be effectively neutered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bob&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2012 16:39:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/utility-to-change-quot-image-file-identification-quot/m-p/5730855#M36943</guid>
      <dc:creator>Bob Blunt</dc:creator>
      <dc:date>2012-07-19T16:39:43Z</dc:date>
    </item>
  </channel>
</rss>

