<?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: Adding tags in Executable in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534019#M701616</link>
    <description>FWIW command called 'what' will print out identification information about executable or library if source file(s) used to compile contain the following line.&lt;BR /&gt;&lt;BR /&gt;char ident[] = "@(#)identification information";&lt;BR /&gt;&lt;BR /&gt;$ what a.out&lt;BR /&gt;a.out:    identification information</description>
    <pubDate>Thu, 28 Apr 2005 08:41:08 GMT</pubDate>
    <dc:creator>Ermin Borovac</dc:creator>
    <dc:date>2005-04-28T08:41:08Z</dc:date>
    <item>
      <title>Adding tags in Executable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534018#M701615</link>
      <description>Sorry I had to start a new thread as that magical answer sign was creating a problem.&lt;BR /&gt;&lt;BR /&gt;Okay so finally getting the feeling that there is nothing in HP like mcs.&lt;BR /&gt;&lt;BR /&gt;But still I have to try and finally came upto something after so many days.&lt;BR /&gt;Some help needed for this.&lt;BR /&gt;&lt;BR /&gt;ld has some options which may be useful for me:&lt;BR /&gt;+h file_name&lt;BR /&gt;It says it gives an internal name to the generated shared lib. Now what is this internal name?&lt;BR /&gt;&lt;BR /&gt;It also states something about mapfile. I unable to figure out what is the use of mapfile.&lt;BR /&gt;&lt;BR /&gt;I have a 2 step compilation process&lt;BR /&gt;First:&lt;BR /&gt;aCC -c flags ( produces .o )&lt;BR /&gt;Second:&lt;BR /&gt;aCC objs flags -o file&lt;BR /&gt;&lt;BR /&gt;Now how can i add my +h option here.&lt;BR /&gt;I am passing flags to the linker using "flags" -&amp;gt; -Wl,+s,-a,default&lt;BR /&gt;Here i am trying to pass +h name but it gives me error.&lt;BR /&gt;I also tried -c file ( in which i had given the +h), it doesn't work either.&lt;BR /&gt;&lt;BR /&gt;Please help</description>
      <pubDate>Thu, 28 Apr 2005 08:11:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534018#M701615</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-04-28T08:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adding tags in Executable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534019#M701616</link>
      <description>FWIW command called 'what' will print out identification information about executable or library if source file(s) used to compile contain the following line.&lt;BR /&gt;&lt;BR /&gt;char ident[] = "@(#)identification information";&lt;BR /&gt;&lt;BR /&gt;$ what a.out&lt;BR /&gt;a.out:    identification information</description>
      <pubDate>Thu, 28 Apr 2005 08:41:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534019#M701616</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-04-28T08:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding tags in Executable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534020#M701617</link>
      <description>This is what i exactly want to do, and what i had being doing in Solaris.&lt;BR /&gt;&lt;BR /&gt;But for that i didn't had to touch the source code in solaris.&lt;BR /&gt;&lt;BR /&gt;I used mcs.&lt;BR /&gt;I read the man pages of aCC and came up with some options that could help me to achieve that thing.&lt;BR /&gt;I am just unable to put it together.</description>
      <pubDate>Thu, 28 Apr 2005 09:36:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534020#M701617</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-04-28T09:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding tags in Executable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534021#M701618</link>
      <description>mcs adjusts the .comment field in an ELF executable. So I guess the first thing you have to ensure is that you are creating an ELF executable and not a PA-RISC one, then we'd have to find somthing that lets you change the .comment field.</description>
      <pubDate>Thu, 28 Apr 2005 10:13:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534021#M701618</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-04-28T10:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding tags in Executable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534022#M701619</link>
      <description>On doing file operation on my .sl, I am getting&lt;BR /&gt;&lt;BR /&gt;ELF-64 shared object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;&lt;BR /&gt;What is this, it contains both ELF and PA_RISC.&lt;BR /&gt;&lt;BR /&gt;I know ELF but nothing about the latter one.&lt;BR /&gt;Going to google.</description>
      <pubDate>Thu, 28 Apr 2005 23:35:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534022#M701619</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-04-28T23:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding tags in Executable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534023#M701620</link>
      <description>That's OK, what you didn't want to see was&lt;BR /&gt;&lt;BR /&gt;PA-RISC1.1 shared executable&lt;BR /&gt;or something similar without the ELF part.</description>
      <pubDate>Fri, 29 Apr 2005 02:40:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534023#M701620</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-04-29T02:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding tags in Executable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534024#M701621</link>
      <description>Okay,&lt;BR /&gt;&lt;BR /&gt;So now help me to solve it.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Apr 2005 09:15:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534024#M701621</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-04-29T09:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding tags in Executable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534025#M701622</link>
      <description>Probably the only way you're going to get anywhere near what you want is to&lt;BR /&gt;&lt;BR /&gt;(a) create a file called say ident.c&lt;BR /&gt;and place in it the identification string as suggested by ermin.&lt;BR /&gt;&lt;BR /&gt;(b) semi-compile that ident.c file into an ident.o file (once)&lt;BR /&gt;&lt;BR /&gt;(c) semi-compile your code as normal to .o stage.&lt;BR /&gt;&lt;BR /&gt;(d) When linking, include the ident.o file in the link line.&lt;BR /&gt;&lt;BR /&gt;Use 'what' on your executable to get the ident info.&lt;BR /&gt;&lt;BR /&gt;This sort of meets your requirements as you have made no changes to your code, you are merely relinking it. If you want a different ident in each executable, as opposed to a project wide ident that effectively is a version number, then you'd have to create multiple ident.o file. When you change the ident, you just relink, you don't have to recompile your code.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Apr 2005 10:11:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534025#M701622</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-04-29T10:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Adding tags in Executable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534026#M701623</link>
      <description>So,&lt;BR /&gt;&lt;BR /&gt;Finally something to work on.&lt;BR /&gt;Good option!&lt;BR /&gt;&lt;BR /&gt;I was thinking something else.&lt;BR /&gt;I was searching about that internal name which i mentioned in my first post.&lt;BR /&gt;&lt;BR /&gt;Till now i am unable to find out what is it.&lt;BR /&gt;If it somehow gives an name to the executable then we can use that option also.&lt;BR /&gt;&lt;BR /&gt;Can you help me in this case.&lt;BR /&gt;Thanks</description>
      <pubDate>Sun, 01 May 2005 23:57:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534026#M701623</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-05-01T23:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding tags in Executable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534027#M701624</link>
      <description>They way I understood it, the +h flag gives a shared library an internal name, and thus wouldn't be of any use in your case for use in an executable.</description>
      <pubDate>Tue, 03 May 2005 04:44:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534027#M701624</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-05-03T04:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding tags in Executable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534028#M701625</link>
      <description>Yup,&lt;BR /&gt;&lt;BR /&gt;I used the term executable in a general way (.sl and executable )&lt;BR /&gt;&lt;BR /&gt;Yesterday I read the whole linker man page and experimented for a couple of hours.&lt;BR /&gt;Finally got the +h option right.&lt;BR /&gt;&lt;BR /&gt;For strict executables i found one more thing. Mapfiles&lt;BR /&gt;While reading the man pages, what i figured out is that it can be used to add something to the executables.&lt;BR /&gt;&lt;BR /&gt;But even after hours of experimenting i wasn't able to write a mapfile.&lt;BR /&gt;It always gave me syntax error.&lt;BR /&gt;&lt;BR /&gt;Can anybody guide me to write a simple mapfile.&lt;BR /&gt;</description>
      <pubDate>Tue, 03 May 2005 08:56:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-tags-in-executable/m-p/3534028#M701625</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-05-03T08:56:51Z</dc:date>
    </item>
  </channel>
</rss>

