- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Missing -Z option in HP LINUX GCC LD
Operating System - Linux
1821638
Members
3244
Online
109633
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
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
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
08-04-2009 01:36 AM
08-04-2009 01:36 AM
Missing -Z option in HP LINUX GCC LD
Hi
i cannot able to find out -Z option in the ld in my HP linux box. The system configuration i am using is as follows,
Linux 2.6.9-55.0.2.ELsmp #1 SMP Tue x86_64 x86_64 x86_64 GNU/Linux
and
GNU ld version 2.15.92.0.2 20040927
and
gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-8)
can any one advice an alternate option for -Z in HP linux systems? i need this option for dereferencing NULL pointers while creating shared libraries and executables.
Thanks.
i cannot able to find out -Z option in the ld in my HP linux box. The system configuration i am using is as follows,
Linux 2.6.9-55.0.2.ELsmp #1 SMP Tue x86_64 x86_64 x86_64 GNU/Linux
and
GNU ld version 2.15.92.0.2 20040927
and
gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-8)
can any one advice an alternate option for -Z in HP linux systems? i need this option for dereferencing NULL pointers while creating shared libraries and executables.
Thanks.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2009 12:06 AM
08-05-2009 12:06 AM
Re: Missing -Z option in HP LINUX GCC LD
In Linux on x86_64 architecture, dereferencing a NULL pointer is always an illegal operation and is treated as a fatal error by the operating system.
Relying on being able to dereference NULL pointers is a bad programming practice. It is not guaranteed to be portable. In HP-UX platform, you can get away with it; but on Linux, you cannot.
If you're porting HP-UX software to Linux and find that a function in the software relies on dereferencing NULL pointers to work, you must fix (or redesign and re-implement) that function as part of the porting effort.
MK
Relying on being able to dereference NULL pointers is a bad programming practice. It is not guaranteed to be portable. In HP-UX platform, you can get away with it; but on Linux, you cannot.
If you're porting HP-UX software to Linux and find that a function in the software relies on dereferencing NULL pointers to work, you must fix (or redesign and re-implement) that function as part of the porting effort.
MK
MK
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP