- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Adding tags in Executable
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2005 01:11 AM
тАО04-28-2005 01:11 AM
Okay so finally getting the feeling that there is nothing in HP like mcs.
But still I have to try and finally came upto something after so many days.
Some help needed for this.
ld has some options which may be useful for me:
+h file_name
It says it gives an internal name to the generated shared lib. Now what is this internal name?
It also states something about mapfile. I unable to figure out what is the use of mapfile.
I have a 2 step compilation process
First:
aCC -c flags ( produces .o )
Second:
aCC objs flags -o file
Now how can i add my +h option here.
I am passing flags to the linker using "flags" -> -Wl,+s,-a,default
Here i am trying to pass +h name but it gives me error.
I also tried -c file ( in which i had given the +h), it doesn't work either.
Please help
Solved! Go to Solution.
- Tags:
- aCC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2005 01:41 AM
тАО04-28-2005 01:41 AM
Re: Adding tags in Executable
char ident[] = "@(#)identification information";
$ what a.out
a.out: identification information
- Tags:
- what
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2005 02:36 AM
тАО04-28-2005 02:36 AM
Re: Adding tags in Executable
But for that i didn't had to touch the source code in solaris.
I used mcs.
I read the man pages of aCC and came up with some options that could help me to achieve that thing.
I am just unable to put it together.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2005 03:13 AM
тАО04-28-2005 03:13 AM
Re: Adding tags in Executable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2005 04:35 PM
тАО04-28-2005 04:35 PM
Re: Adding tags in Executable
ELF-64 shared object file - PA-RISC 2.0 (LP64)
What is this, it contains both ELF and PA_RISC.
I know ELF but nothing about the latter one.
Going to google.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2005 07:40 PM
тАО04-28-2005 07:40 PM
Re: Adding tags in Executable
PA-RISC1.1 shared executable
or something similar without the ELF part.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2005 02:15 AM
тАО04-29-2005 02:15 AM
Re: Adding tags in Executable
So now help me to solve it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2005 03:11 AM
тАО04-29-2005 03:11 AM
Solution(a) create a file called say ident.c
and place in it the identification string as suggested by ermin.
(b) semi-compile that ident.c file into an ident.o file (once)
(c) semi-compile your code as normal to .o stage.
(d) When linking, include the ident.o file in the link line.
Use 'what' on your executable to get the ident info.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2005 04:57 PM
тАО05-01-2005 04:57 PM
Re: Adding tags in Executable
Finally something to work on.
Good option!
I was thinking something else.
I was searching about that internal name which i mentioned in my first post.
Till now i am unable to find out what is it.
If it somehow gives an name to the executable then we can use that option also.
Can you help me in this case.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2005 09:44 PM
тАО05-02-2005 09:44 PM