mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:12:43 +00:00 
			
		
		
		
	 a88f7c99fe
			
		
	
	
		a88f7c99fe
		
	
	
	
	
		
			
			We have had these for quite a while, but we didn't compile them, and used GCC's version instead. Clang does not come with these, so we have to provide our own implementation. Our implementation follows what `musl` and `FreeBSD` do, so this should work fine, even if documentation can hardly be found for them.
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			398 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			398 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Daniel Bertalan <dani@danielbertalan.dev>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| .section .init, "ax", @progbits
 | |
| .align 4
 | |
| .global _init
 | |
| .type _init, @function
 | |
| _init:
 | |
|     pushq %rbp
 | |
|     movq %rsp, %rbp
 | |
|     andq $-16, %rsp
 | |
| 
 | |
| .section .fini, "ax", @progbits
 | |
| .align 4
 | |
| .global _fini
 | |
| .type _fini, @function
 | |
| _fini:
 | |
|     pushq %rbp
 | |
|     movq %rsp, %rbp
 | |
|     andq $-16, %rsp
 |