<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Help with HP assembly in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-hp-assembly/m-p/3333373#M737460</link>
    <description>I'm not sure about your foreign devil as(1) but HP's as(1) requires you to make these changes:&lt;BR /&gt;1) The target of a bl that does a call must be %r2.  Calls to millicode must be %r31.&lt;BR /&gt;&lt;BR /&gt;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.</description>
    <pubDate>Mon, 27 Aug 2007 21:13:32 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2007-08-27T21:13:32Z</dc:date>
    <item>
      <title>Help with HP assembly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-hp-assembly/m-p/3333372#M737459</link>
      <description>Hi All,&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Below  is the code&lt;BR /&gt;------------------&lt;BR /&gt;.SPACE  $TEXT$&lt;BR /&gt;.SUBSPA $CODE$&lt;BR /&gt;.align 4&lt;BR /&gt;.EXPORT main,ENTRY&lt;BR /&gt;&lt;BR /&gt;        main&lt;BR /&gt;        bl      samplecode, %r1&lt;BR /&gt;        nop&lt;BR /&gt;&lt;BR /&gt;        .SUBSPA $DATA$&lt;BR /&gt;        .EXPORT samplecode&lt;BR /&gt;&lt;BR /&gt;                samplecode&lt;BR /&gt;                xor     %r26, %r26, %r26&lt;BR /&gt;                copy    %r26, %r25&lt;BR /&gt;                copy    %r26, %r24&lt;BR /&gt;                ldil    L'0xC0000000, 1&lt;BR /&gt;                ble     4(%sr7,%r1)&lt;BR /&gt;                addi,&amp;gt;  0x7e, %r0, %r22&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It just execute setresuid(0,0,0).&lt;BR /&gt;What is worng ? Anyone have a clue ???</description>
      <pubDate>Fri, 16 Jul 2004 04:51:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-hp-assembly/m-p/3333372#M737459</guid>
      <dc:creator>RATEFIARIVONY</dc:creator>
      <dc:date>2004-07-16T04:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with HP assembly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-hp-assembly/m-p/3333373#M737460</link>
      <description>I'm not sure about your foreign devil as(1) but HP's as(1) requires you to make these changes:&lt;BR /&gt;1) The target of a bl that does a call must be %r2.  Calls to millicode must be %r31.&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Mon, 27 Aug 2007 21:13:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-hp-assembly/m-p/3333373#M737460</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-27T21:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with HP assembly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-hp-assembly/m-p/3333374#M737461</link>
      <description>The longer version of what Dennis said is in chapter 3 (page 47) of the PA-RISC Assembler manual:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/92432-90012/92432-90012.pdf" target="_blank"&gt;http://docs.hp.com/en/92432-90012/92432-90012.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I assume you already have that to have gotten that far, but wanted to make sure you weren't just having fun with disassemblers.</description>
      <pubDate>Wed, 29 Aug 2007 12:44:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-hp-assembly/m-p/3333374#M737461</guid>
      <dc:creator>Bob E Campbell</dc:creator>
      <dc:date>2007-08-29T12:44:10Z</dc:date>
    </item>
  </channel>
</rss>

