- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pic information in object files
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
Forums
Discussions
Discussions
Discussions
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
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
10-27-2010 01:37 AM
10-27-2010 01:37 AM
eg:
elfdump -s
Solved! Go to Solution.
- Tags:
- elfdump
- footprints
- PIC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2010 03:20 AM
10-27-2010 03:20 AM
Re: pic information in object files
footprints(1) will decode the info in "elfdump -dc".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2010 10:01 PM
10-27-2010 10:01 PM
Re: pic information in object files
Thanks for the answer.
elfdump -s
shows ".picdata" section on solaris platform if the library is compiled PIC.
Do we have a similar way to identify the Pic section in library file on hp-ux ?
Thanks,
Usha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2010 01:16 AM
10-28-2010 01:16 AM
Re: pic information in object files
I assume you want to know if the code is PIC or not, not what's in .picdata?
(Or if the latter, you'll have to tell us what's there.)
Shlibs are PIC, no need to check.
The default on Integrity is PIC.
As to an object file, you could look at the relocations and using advanced AI technology make a guess.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2010 10:51 PM
10-28-2010 10:51 PM
Re: pic information in object files
HI Dennis,
By examining the object code sections of library, can i determine if its compiled PIC.
eg: on solaris platforms, if my library is compiled PIC, then
elfdump -s
shows me ".picdata" section along with other sections like .text, .data, .BSS etc
So, similarly on hp-ux, can I examine my library object file sections and determine whether its compiled Pic
Thanks,
Usha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2010 04:40 AM
10-29-2010 04:40 AM
SolutionNo, it isn't simple. Whether it is PIC or not is encoded in the relocations: elfdump -r
The obvious way is just link it and look for errors:
cc -b foo.o
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2010 09:58 PM
11-01-2010 09:58 PM
Re: pic information in object files
Thanks Dennis.