mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
Let all .c and .S files under lib/csu consistently use the __FBSDID()
macro for identification, instead of several different hand-rolled variants (plain .ident, .ascii, etc).
This commit is contained in:
parent
cc0eda4efd
commit
cbbcfbf8b7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216338
@ -24,6 +24,9 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#ifndef lint
|
||||
#ifndef __GNUC__
|
||||
#error "GCC is needed to compile this file"
|
||||
@ -92,5 +95,3 @@ __asm__("eprol:");
|
||||
_init();
|
||||
exit( main(argc, argv, env) );
|
||||
}
|
||||
|
||||
__asm__(".ident\t\"$FreeBSD$\"");
|
||||
|
@ -23,6 +23,9 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <machine/asm.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
.section .init,"ax",@progbits
|
||||
.align 4
|
||||
.globl _init
|
||||
@ -36,6 +39,3 @@ _init:
|
||||
.type _fini,@function
|
||||
_fini:
|
||||
subq $8,%rsp
|
||||
|
||||
.section .rodata
|
||||
.ascii "$FreeBSD$\0"
|
||||
|
@ -23,6 +23,9 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <machine/asm.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
.section .init,"ax",@progbits
|
||||
addq $8,%rsp
|
||||
ret
|
||||
@ -30,6 +33,3 @@
|
||||
.section .fini,"ax",@progbits
|
||||
addq $8,%rsp
|
||||
ret
|
||||
|
||||
.section .rodata
|
||||
.ascii "$FreeBSD$\0"
|
||||
|
@ -39,6 +39,9 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#ifndef lint
|
||||
#ifndef __GNUC__
|
||||
#error "GCC is needed to compile this file"
|
||||
@ -49,7 +52,6 @@
|
||||
|
||||
#include "libc_private.h"
|
||||
#include "crtbrand.c"
|
||||
#include <machine/asm.h>
|
||||
|
||||
struct Struct_Obj_Entry;
|
||||
struct ps_strings;
|
||||
@ -136,5 +138,3 @@ __asm__(".text");
|
||||
__asm__("eprol:");
|
||||
__asm__(".previous");
|
||||
#endif
|
||||
|
||||
__asm__(".ident\t\"$FreeBSD$\"");
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include <machine/asm.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
.section .init,"ax",%progbits
|
||||
ldmea fp, {fp, sp, pc}
|
||||
mov pc, lr
|
||||
|
@ -26,6 +26,9 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#ifndef lint
|
||||
#ifndef __GNUC__
|
||||
#error "GCC is needed to compile this file"
|
||||
|
@ -25,6 +25,8 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#include <machine/asm.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
.text
|
||||
.align 4
|
||||
@ -47,5 +49,3 @@ _start:
|
||||
int3
|
||||
.cfi_endproc
|
||||
.size _start, . - _start
|
||||
|
||||
.ident "$FreeBSD$"
|
||||
|
@ -23,6 +23,9 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <machine/asm.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
.section .init,"ax",@progbits
|
||||
.align 4
|
||||
.globl _init
|
||||
@ -36,6 +39,3 @@ _init:
|
||||
.type _fini,@function
|
||||
_fini:
|
||||
sub $12,%esp /* re-align stack pointer */
|
||||
|
||||
.section .rodata
|
||||
.ascii "$FreeBSD$\0"
|
||||
|
@ -23,6 +23,9 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <machine/asm.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
.section .init,"ax",@progbits
|
||||
add $12,%esp
|
||||
ret
|
||||
@ -30,6 +33,3 @@
|
||||
.section .fini,"ax",@progbits
|
||||
add $12,%esp
|
||||
ret
|
||||
|
||||
.section .rodata
|
||||
.ascii "$FreeBSD$\0"
|
||||
|
@ -24,7 +24,8 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
.ident "$FreeBSD$"
|
||||
#include <machine/asm.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
.text
|
||||
|
||||
|
@ -26,6 +26,9 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#include <machine/asm.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
/*
|
||||
* This file (and its companion crtn.S) form the terminators of the
|
||||
* .init and .fini sections.
|
||||
|
@ -26,6 +26,9 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#include <machine/asm.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
.file "crtn.S"
|
||||
|
||||
.section .init,"ax",@progbits
|
||||
|
@ -39,6 +39,9 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#ifndef lint
|
||||
#ifndef __GNUC__
|
||||
#error "GCC is needed to compile this file"
|
||||
@ -120,5 +123,3 @@ __asm__(".text");
|
||||
__asm__("eprol:");
|
||||
__asm__(".previous");
|
||||
#endif
|
||||
|
||||
__asm__(".ident\t\"$FreeBSD$\"");
|
||||
|
@ -22,7 +22,10 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
|
||||
#include <machine/asm.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
.section .init,"ax",@progbits
|
||||
.align 2
|
||||
.globl _init
|
||||
@ -44,7 +47,3 @@ _fini:
|
||||
stw 31,12(1)
|
||||
stw 0,20(1)
|
||||
mr 31,1
|
||||
|
||||
|
||||
.section .rodata
|
||||
.ascii "$FreeBSD$\0"
|
||||
|
@ -23,6 +23,9 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <machine/asm.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
.section .init,"ax",@progbits
|
||||
lwz 11,0(1)
|
||||
lwz 0,4(11)
|
||||
@ -39,7 +42,3 @@
|
||||
lwz 31,-4(11)
|
||||
mr 1,11
|
||||
blr
|
||||
|
||||
|
||||
.section .rodata
|
||||
.ascii "$FreeBSD$\0"
|
||||
|
@ -39,6 +39,9 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#ifndef lint
|
||||
#ifndef __GNUC__
|
||||
#error "GCC is needed to compile this file"
|
||||
@ -119,5 +122,3 @@ __asm__(".text");
|
||||
__asm__("eprol:");
|
||||
__asm__(".previous");
|
||||
#endif
|
||||
|
||||
__asm__(".ident\t\"$FreeBSD$\"");
|
||||
|
@ -22,7 +22,10 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
|
||||
#include <machine/asm.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
.section .init,"ax",@progbits
|
||||
.align 2
|
||||
.globl _init
|
||||
@ -56,6 +59,3 @@ _fini:
|
||||
stdu 1,-48(1)
|
||||
mflr 0
|
||||
std 0,64(1)
|
||||
|
||||
.section .rodata
|
||||
.ascii "$FreeBSD$\0"
|
||||
|
@ -23,6 +23,9 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <machine/asm.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
.section .init,"ax",@progbits
|
||||
ld %r1,0(%r1)
|
||||
ld 0,16(%r1)
|
||||
@ -35,7 +38,3 @@
|
||||
ld 0,16(%r1)
|
||||
mtlr 0
|
||||
blr
|
||||
|
||||
|
||||
.section .rodata
|
||||
.ascii "$FreeBSD$\0"
|
||||
|
@ -30,6 +30,9 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#ifndef lint
|
||||
#ifndef __GNUC__
|
||||
#error "GCC is needed to compile this file"
|
||||
@ -121,5 +124,3 @@ __asm__(".text");
|
||||
__asm__("eprol:");
|
||||
__asm__(".previous");
|
||||
#endif
|
||||
|
||||
__asm__(".ident\t\"$FreeBSD$\"");
|
||||
|
@ -26,6 +26,9 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <machine/asm.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
.file "crti.S"
|
||||
|
||||
/* The minimum stack frame size (bytes) is:
|
||||
@ -52,7 +55,3 @@ _init:
|
||||
.align 4
|
||||
_fini:
|
||||
save %sp,-192,%sp
|
||||
|
||||
|
||||
.section .rodata
|
||||
.ascii "$FreeBSD$\0"
|
||||
|
@ -26,6 +26,9 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <machine/asm.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
.file "crtn.S"
|
||||
|
||||
.section .init,"ax",@progbits
|
||||
@ -37,6 +40,3 @@
|
||||
.align 4
|
||||
ret
|
||||
restore
|
||||
|
||||
.section .rodata
|
||||
.ascii "$FreeBSD$\0"
|
||||
|
Loading…
Reference in New Issue
Block a user