- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Help with HP assembly
Operating System - HP-UX
1752796
Members
6368
Online
108789
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
Forums
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
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-15-2004 09:51 PM
тАО07-15-2004 09:51 PM
Help with HP assembly
Hi All,
I try to compile an hp assembly code with gcc3.2 on HP-UX 11.00 64-bit but I keep on receiving this: sh.s:1: Fatal error: Not in a space.
Below is the code
------------------
.SPACE $TEXT$
.SUBSPA $CODE$
.align 4
.EXPORT main,ENTRY
main
bl samplecode, %r1
nop
.SUBSPA $DATA$
.EXPORT samplecode
samplecode
xor %r26, %r26, %r26
copy %r26, %r25
copy %r26, %r24
ldil L'0xC0000000, 1
ble 4(%sr7,%r1)
addi,> 0x7e, %r0, %r22
It just execute setresuid(0,0,0).
What is worng ? Anyone have a clue ???
I try to compile an hp assembly code with gcc3.2 on HP-UX 11.00 64-bit but I keep on receiving this: sh.s:1: Fatal error: Not in a space.
Below is the code
------------------
.SPACE $TEXT$
.SUBSPA $CODE$
.align 4
.EXPORT main,ENTRY
main
bl samplecode, %r1
nop
.SUBSPA $DATA$
.EXPORT samplecode
samplecode
xor %r26, %r26, %r26
copy %r26, %r25
copy %r26, %r24
ldil L'0xC0000000, 1
ble 4(%sr7,%r1)
addi,> 0x7e, %r0, %r22
It just execute setresuid(0,0,0).
What is worng ? Anyone have a clue ???
- Tags:
- gcc
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2007 02:13 PM
тАО08-27-2007 02:13 PM
Re: Help with HP assembly
I'm not sure about your foreign devil as(1) but HP's as(1) requires you to make these changes:
1) The target of a bl that does a call must be %r2. Calls to millicode must be %r31.
2) Your $DATA$ subspace must be in the $PRIVATE$ space. And code should NOT be in $DATA$. This maybe the cause of your error. You can use .text or .data pseudo-ops to get this right.
1) The target of a bl that does a call must be %r2. Calls to millicode must be %r31.
2) Your $DATA$ subspace must be in the $PRIVATE$ space. And code should NOT be in $DATA$. This maybe the cause of your error. You can use .text or .data pseudo-ops to get this right.
- Tags:
- foreign devil tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2007 05:44 AM
тАО08-29-2007 05:44 AM
Re: Help with HP assembly
The longer version of what Dennis said is in chapter 3 (page 47) of the PA-RISC Assembler manual:
http://docs.hp.com/en/92432-90012/92432-90012.pdf
I assume you already have that to have gotten that far, but wanted to make sure you weren't just having fun with disassemblers.
http://docs.hp.com/en/92432-90012/92432-90012.pdf
I assume you already have that to have gotten that far, but wanted to make sure you weren't just having fun with disassemblers.
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP