[parisc-linux] crti.S Nested procedures error

Cary Coutant cary@cup.hp.com
Wed, 10 May 2000 14:48:39 -0700


Have you tried this:

>    .globl _init
>	    .EXPORT _init,ENTRY
>	    .type    _init,@function
>    _init:
>	    .PROC
>	    .CALLINFO FRAME=64,CALLS,SAVE_RP,ENTRY_GR=3
>	    .ENTRY
>	    a few assembly statements

      .PROCEND

      .PROC
 	    .CALLINFO FRAME=64,CALLS,SAVE_RP,ENTRY_GR=3
      
>
>	    /***** pre-main() code to be inserted here *******/
>
>	    a few more assembly statements
>	    .EXIT
>	    .PROCEND

While you need to use .proc and .procend in pairs, that's not the case 
with .entry and .exit. If the assembler won't take this code, it should. 
Besides being useful for this case, it's also necessary to generate code 
like this for out-of-line pieces of procedures.

-cary