- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How do you generate ELF object file output using g...
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
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
тАО01-10-2006 02:10 AM - last edited on тАО01-30-2012 01:20 AM by Ajay-Kumar
тАО01-10-2006 02:10 AM - last edited on тАО01-30-2012 01:20 AM by Ajay-Kumar
I am trying to compile a C++ program using g++. I need the object files to be "ELF-64 relocatable object file - PA-RISC 2.0 (LP64)" files. When I use g++ to compile, I end up with "PA-RISC1.1 relocatable object" object files. How can I tell the g++ compiler to change the object file format? I don't have HP's c++ compiler, so I'm stuck with g++. Thanks.
-------------------------------
P.S. This Thread has been moved from HP-UX --> Netwrking to HP-UX --> Languages & Scripting - Forum Moderator
Solved! Go to Solution.
- Tags:
- g++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2006 03:02 AM
тАО01-10-2006 03:02 AM
Re: How do you generate ELF object file output using g++ compiler?
i don't use g++, but in order to obtain ELF objects in HP's c++ compiler
"+DAportable" option in used.
Maybe something similar in g++?
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2006 03:07 AM
тАО01-10-2006 03:07 AM
Re: How do you generate ELF object file output using g++ compiler?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2006 03:14 AM
тАО01-10-2006 03:14 AM
Re: How do you generate ELF object file output using g++ compiler?
So, try to "googleize" or try this
http://lists.gnu.org/archive/html/
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2006 03:15 AM
тАО01-10-2006 03:15 AM
Re: How do you generate ELF object file output using g++ compiler?
-melf according to doc:
"Generate an executable in the ELF format, rather than the default'mmo' format used by the mmix simulalator"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2006 03:22 AM
тАО01-10-2006 03:22 AM
Re: How do you generate ELF object file output using g++ compiler?
If you type "gcc -melf my.c" on the command line, you will get "invalid options 'elf'"
This doesn't seem like an unreasonable thing to do, does it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2006 03:48 PM
тАО01-10-2006 03:48 PM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2006 03:52 PM
тАО01-10-2006 03:52 PM
Re: How do you generate ELF object file output using g++ compiler?
You need to download 64 bit GCC for generating 64 bit objects. Default GCC what you download is capable of generating 32 bit objects. You can download from,
http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,7663,00.html
Remember to download 64 bit version. It is HP Supported GCC.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2006 03:59 PM
тАО01-10-2006 03:59 PM
Re: How do you generate ELF object file output using g++ compiler?
http://groups.google.com/group/comp.soft-sys.ace/browse_thread/thread/74e72c0f9078d9b9/ba55ca761d7c8fa0%23ba55ca761d7c8fa0?sa=X&oi=groupsr&start=0&num=3
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2006 12:43 AM
тАО01-11-2006 12:43 AM