mirror of
				https://github.com/netwide-assembler/nasm.git
				synced 2025-10-10 00:25:06 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			368 B
		
	
	
	
		
			NASM
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			368 B
		
	
	
	
		
			NASM
		
	
	
	
	
	
	bits 64
 | 
						|
	default rel
 | 
						|
 | 
						|
	extern foo
 | 
						|
 | 
						|
	mov r15,[foo wrt ..got]
 | 
						|
	lea r12,[foo wrt ..got]
 | 
						|
%ifdef ERROR
 | 
						|
	lea rax,[foo wrt ..gotoff]
 | 
						|
	mov rax,[foo wrt ..gotoff]
 | 
						|
%endif
 | 
						|
 | 
						|
	default abs
 | 
						|
 | 
						|
	mov r15,[foo wrt ..got]
 | 
						|
	lea r12,[foo wrt ..got]
 | 
						|
	mov rax,[qword foo wrt ..got]
 | 
						|
%ifdef ERROR
 | 
						|
	lea rax,[foo wrt ..gotoff]
 | 
						|
	mov rax,[foo wrt ..gotoff]
 | 
						|
%endif
 | 
						|
	mov rax,[qword foo wrt ..gotoff]
 |