- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: link time
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
тАО11-03-2008 08:20 AM
тАО11-03-2008 08:20 AM
there is way to know when an executable file was compiled and linked?
ciao
GIovanni
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2008 08:33 AM
тАО11-03-2008 08:33 AM
Re: link time
you can use chatr commnad. for example:
#chatr /usr/bin/ll
/usr/bin/ll:
32-bit ELF executable
shared library dynamic path search:
LD_LIBRARY_PATH disabled first
SHLIB_PATH disabled second
embedded path enabled third Not Defined
shared library list:
libxcurses.so.1
libc.so.1
shared library binding:
deferred
global hash table disabled
global hash table size 1103
shared library mapped private disabled
mem_check value disabled
shared library segment merging disabled
shared vtable support disabled
explicit unloading disabled
linkage table protection disabled
segments:
index type address flags size
7 text 04000000 z---c- D (default)
8 data 40000000 ---m-- D (default)
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation for dynamic segments disabled
nulptr dereferences trap disabled
address space model: default
caliper dynamic instrumentation disabled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2008 08:44 AM
тАО11-03-2008 08:44 AM
Re: link time
unless I'm missing sometingh from your post...
I cannot see when /usr/bin/ll have been compiled nor linked
ciao
GIovanni
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2008 01:26 PM
тАО11-03-2008 01:26 PM
Re: link time
If you are referring to the time the actual compile / link steps were performed to generate the executable, I don't believe that information is tracked anywhere within the executable. The nearest would be the various access / modification times of the file itself, which are probably not going to be sufficient.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2008 08:54 PM
тАО11-03-2008 08:54 PM
Re: link time
'odump -compunit
This will give you the list of all source files that were used to compile the executable, along with the compile and source time for each of the source files.
I noticed that though this works for some executables (like perl), it didn't work for many others (like ls).
--Binu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2008 10:36 PM
тАО11-03-2008 10:36 PM
Re: link time
This is for PA32, compile times only.
For link time, you need to add "-aux" and look for the latest:
Auxiliary Header Record (Linker) for hiii:
product_id = 92453-07B version_id = 11.53
when_linked = Mon Nov 03 2008 22:29:59.000000000 PST
For PA64 and ELF you can use "elfdump -dl". -dl for linker only, -dc for compile, -d for both.
You can also use footprints(1):
Compiler footprint summary
Number of compilation units: 3
Earliest compiler timestamp: 10-Jun-2008 17:51 UTC
Latest compiler timestamp: 04-Nov-2008 06:29 UTC
Linker timestamp: 04-Nov-2008 06:29 UTC
...
>it didn't work for many others (like ls).
Those were stripped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2008 09:03 PM
тАО11-04-2008 09:03 PM
Solutionpartial output example:
--------------------------------------------------------------------------
$ uname -a
HP-UX hpux B.11.23 U ia64 3450348729 unlimited-user license
$ footprints /usr/bin/ls
Scanning /usr/bin/ls ...
Compiler footprint summary
Number of compilation units: 2
Earliest compiler timestamp: N/A
Latest compiler timestamp: N/A
Linker timestamp: 25-Aug-2004 05:01 UTC
Total size: 45.1K (text) 5.1K (data)
version [(na)/ANSI C 2]
architecture [ipf32 2]
-O [02 2]
(etc)
--------------------------------------------------------------------------
--
ranga
[i work for hpe]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2008 01:37 AM
тАО11-13-2008 01:37 AM
Re: link time
thank you all for yours usefull hints.
ciao
GIovanni
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2008 11:58 AM
тАО11-14-2008 11:58 AM
Re: link time
If our answers were helpful, please read the following about assigning points:
http://forums.itrc.hp.com/service/forums/helptips.do?#33