HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Linker/Loader finding unresolved procedures
Operating System - HP-UX
1834431
Members
2136
Online
110067
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
07-11-2003 08:33 AM
07-11-2003 08:33 AM
Linker/Loader finding unresolved procedures
On MPE (HP3000), I have program (A) that runs
with runtime library XL.group.act (B),
XL.PUB.act (C).
(A) contains a procedure Z.
(B) has a reference to procedure Z.
(C) contains a procedure Z, similar parameters but different code than that in (A).
On MPE, all (A) references to Z are resolved within itself.
All other references to Z from (B) or (C) are resolved in (C).
However on HPUX, all my references to Z are being resolved from (A).
Such that (B) calls Z from program (A), instead of linking forward to (C).
Anyone aware of this, and ideas of options to get MPE style of linking?
(Besides changing procedure names and all that code editing)
Keven
with runtime library XL.group.act (B),
XL.PUB.act (C).
(A) contains a procedure Z.
(B) has a reference to procedure Z.
(C) contains a procedure Z, similar parameters but different code than that in (A).
On MPE, all (A) references to Z are resolved within itself.
All other references to Z from (B) or (C) are resolved in (C).
However on HPUX, all my references to Z are being resolved from (A).
Such that (B) calls Z from program (A), instead of linking forward to (C).
Anyone aware of this, and ideas of options to get MPE style of linking?
(Besides changing procedure names and all that code editing)
Keven
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2003 02:13 PM
07-11-2003 02:13 PM
Re: Linker/Loader finding unresolved procedures
You can change the symbol selection for shared libraries in many ways.
You can hide symbols when linking the main program. The ld -h option says to hide a particular symbol from other shared libraries, (and can hide shared library symbols from the a.out.) You can also use the ld -c option to tell the linker to look in a file for a series of options. That can be helpful if you are hiding a long list of symbols.
The attached example uses -h to hide the a.out's version of "func".
You can also hide functions by changing their declaration to be "static". That requires that those functions are only called from the same source file that they were defined in.
You can also change shared libraries to look first within their own symbols before looking in other shared libraries and the a.out. You can learn more about that looking at the "-B" option in "man ld". There are more binding options in more recent releases than older releases.
You can hide symbols when linking the main program. The ld -h option says to hide a particular symbol from other shared libraries, (and can hide shared library symbols from the a.out.) You can also use the ld -c option to tell the linker to look in a file for a series of options. That can be helpful if you are hiding a long list of symbols.
The attached example uses -h to hide the a.out's version of "func".
You can also hide functions by changing their declaration to be "static". That requires that those functions are only called from the same source file that they were defined in.
You can also change shared libraries to look first within their own symbols before looking in other shared libraries and the a.out. You can learn more about that looking at the "-B" option in "man ld". There are more binding options in more recent releases than older releases.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2003 02:15 PM
07-11-2003 02:15 PM
Re: Linker/Loader finding unresolved procedures
Oh, yeah. Here is the promised attachment.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP