- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: problesm with building object file
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
тАО09-29-2003 01:25 PM
тАО09-29-2003 01:25 PM
problesm with building object file
I am trying build an object file using the -r option. If I use aCC -Wl,-r -o
/usr/ccs/bin/ld: (Warning) Shared library /usr/lib/libstd.sl referenced during relocatable link - ignored
/usr/ccs/bin/ld: (Warning) Shared library /usr/lib/libstream.sl referenced during relocatable link - ignored
/usr/ccs/bin/ld: (Warning) Shared library /usr/lib/libCsup.sl referenced during relocatable link - ignored
/usr/ccs/bin/ld: (Warning) Shared library /usr/lib/libm.sl referenced during relocatable link - ignored
/usr/ccs/bin/ld: (Warning) Shared library /usr/lib/libcl.sl referenced during relocatable link - ignored
...
...
If I use ld -r to generate the object file, it creates it, but when I do nm on the object file I get the following message
nm: cannot build list of section names.
I need to generate an object file on which I can do an nm since I need the symbol information to hide certain symbols when building a shared library with this object file.
BTW I tried with +nosectionmerge and I get the same message( nm: cannot build list of section names ) when I do nm.
Can anyone let me know why I get these messages and how to avoid it.
Thanks,
Lara
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2003 09:22 PM
тАО09-29-2003 09:22 PM
Re: problesm with building object file
also please check that all the object files are good with "odump -verifyall".
--
ranga
[i work for hpe]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2003 10:54 PM
тАО09-29-2003 10:54 PM
Re: problesm with building object file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2003 01:53 AM
тАО09-30-2003 01:53 AM
Re: problesm with building object file
software_spec NetWorker,l=/,r=6.0.2.Build.251,a=HP-UX_11.XX_7XX/8XX
revision 6.0.2.Build.251
title ld(1) and linker tools cumulative patch
description "Patch PHSS_26262: ld(1) and linker tools cumulative patch"
and aCC version is
aCC: HP ANSI C++ B3910B A.03.37
I compile all the object files with +Z option and for the linker I just use -r option.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2003 01:20 PM
тАО09-30-2003 01:20 PM
Re: problesm with building object file
I did a few more experiment today.
1. The warning messages seems to be due to aCC automatically including the system libraries in the link line when the ld is invoked through aCC( Even though the ld option is to build a object file ).
So to avoid it, I called ld directly and created the object file. However, I still got the same message when I tried to do a nm on the object file created.( nm: cannot build list of section names )
However, If I limit the number of object files included in the ld -r link line, then Iam able to get object files on which Iam able to do nm. However, I this method I endup creating multiple .o file instead of a single .o file.
Does anyone know if there is a limitation to how big the object file can be or is there an option I need to specify while generating large object file( the file size is around 300MB). Iam able to do this without any problem on solaris and linux platforms.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2003 10:24 PM
тАО09-30-2003 10:24 PM
Re: problesm with building object file
--
ranga
[i work for hpe]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2003 02:52 PM
тАО10-02-2003 02:52 PM
Re: problesm with building object file
I found that nm seems to have a problem with the large files. If I build a release version( with no debug information ), then nm is able to display the symbols.