⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crt0.s

📁 它通过提供glibc兼容使得应用程序移植到较小的c 库时相当得容易. 它能够应用到带虚拟存储的Linux和uClinux上.在大多数带MMU部件的平台上为使它更加紧凑,它也能够编译成共享库.uClib
💻 S
字号:
/* Copyright (C) 1991, 1992 Free Software Foundation, Inc.This file is part of the GNU C Library.The GNU C Library is free software; you can redistribute it and/ormodify it under the terms of the GNU Library General Public License aspublished by the Free Software Foundation; either version 2 of theLicense, or (at your option) any later version.The GNU C Library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNULibrary General Public License for more details.You should have received a copy of the GNU Library General PublicLicense along with the GNU C Library; see the file COPYING.LIB.  Ifnot, write to the Free Software Foundation, Inc., 675 Mass Ave,Cambridge, MA 02139, USA.  *//* *	NOTE: this file works for PIC and non-PIC code.  Be very careful how *	you modify it ! */#include <features.h>	.global	_start	.global __exit	.global atexit	.global main	.text	nop	nop_start: /* put here so that references to _start work with elf-PIC */	movea.l %d5, %a5	/* uClinux passes in data segment here *//* *	argc, argv and envp are on the stack,  just call to main */	lea __uClibc_main-.-8, %a0	/* call uClibc main */	jsr %pc@(%a0)	/* If that didn't kill us, ... */__exit:	move.l %sp@+,%d1	moveq #1,%d0 /* __NR_exit */	trap #0/* *	this was needed for gcc/g++-builds,  atexit was not getting included *	for some stupid reason,  this gets us a compiler */empty_func:	rts#if defined(__HAVE_ELF__)	.weak atexit	atexit = empty_func#else	.set atexit,empty_func#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -