Skip to contentSkip to conversation

crti.S Nested procedures error

parisc-linux Cary Coutant 1 participant 1 message May 11, 2000

lore
Share & tools
lore
#0 lore raw

Have you tried this:

Quoted 8 lines
   .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

Quoted 6 lines
	    /***** 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