All pastes #398183 Raw Edit

Something

public text v1 · immutable
·published 2007-03-17 00:49 UTC
rendered paste body
	.file	"signal-4.c"
gcc2_compiled.:
.section	".text"
	.align 4
	.global segment_fault_handler
	.type	 segment_fault_handler,#function
	.proc	020
segment_fault_handler:
	!#PROLOGUE# 0
	THE STUFF THAT I ENTER IN C CODE SHOULD END UP HERE
	!#PROLOGUE# 1
	st	%i0, [%fp+68]
.LL2:
	ret
	restore
.LLfe1:
	.size	 segment_fault_handler,.LLfe1-segment_fault_handler
.section	".rodata"
	.align 8
.LLC0:
	.asciz	"Ran instruction\n"
.section	".text"
	.align 4
	.global main
	.type	 main,#function
	.proc	04
main:
	!#PROLOGUE# 0
	save	%sp, -120, %sp
	!#PROLOGUE# 1
	st	%g0, [%fp-20]
	mov	11, %o0
	sethi	%hi(segment_fault_handler), %o2
	or	%o2, %lo(segment_fault_handler), %o1
	call	signal, 0
	 nop
	ld	[%g0+0], %o0
	st	%o0, [%fp-20]
	sethi	%hi(.LLC0), %o1
	or	%o1, %lo(.LLC0), %o0
	call	printf, 0
	 nop
	mov	0, %i0
	b	.LL3
	 nop
.LL3:
	ret
	restore
.LLfe2:
	.size	 main,.LLfe2-main
	.ident	"GCC: (GNU) 2.95.3 20010315 (release)"