• Russ Cox's avatar
    6g: simplify trampoline by postponing load. · 5a67ea38
    Russ Cox authored
    	TEXT tramp
    		MOVQ 8(SP), AX
    		ADDQ $40, AX
    		MOVQ AX, 8(SP)
    		JMP oldfunc
    
    	is now
    
    	TEXT tramp
    		ADDQ $40, 8(SP)
    		JMP oldfunc
    
    	and if s/40/0/, then it simplifies to
    
    	TEXT tramp
    		JMP oldfunc
    
    	(the tramp is still needed to satisfy
    	symbol references from other object files)
    
    R=ken
    OCL=28377
    CL=28381
    5a67ea38
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
pkg Loading commit data...
src Loading commit data...
test Loading commit data...
usr Loading commit data...