4 changed files with 4 additions and 90 deletions
@ -1,42 +1 @@ |
|||
/* Copyright (C) 2001, 2002 Free Software Foundation, Inc. |
|||
|
|||
This file is part of GCC. |
|||
|
|||
GCC is free software; you can redistribute it and/or modify it under |
|||
the terms of the GNU General Public License as published by the Free |
|||
Software Foundation; either version 3, or (at your option) any later |
|||
version. |
|||
|
|||
GCC is distributed in the hope that it will be useful, but WITHOUT ANY |
|||
WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|||
for more details. |
|||
|
|||
Under Section 7 of GPL version 3, you are granted additional |
|||
permissions described in the GCC Runtime Library Exception, version |
|||
3.1, as published by the Free Software Foundation. |
|||
|
|||
You should have received a copy of the GNU General Public License and |
|||
a copy of the GCC Runtime Library Exception along with this program; |
|||
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
|||
<http://www.gnu.org/licenses/>. */ |
|||
|
|||
#ifdef __riscv64 |
|||
# define SR sd |
|||
#else |
|||
# define SR sw |
|||
#endif |
|||
|
|||
.section .init,"ax",@progbits |
|||
.globl _init |
|||
.type _init,@function |
|||
_init: |
|||
add sp, sp, -8 |
|||
SR ra, 0(sp) |
|||
|
|||
.section .fini,"ax",@progbits |
|||
.globl _fini |
|||
.type _fini,@function |
|||
_fini: |
|||
add sp, sp, -8 |
|||
SR ra, 0(sp) |
|||
/* crti.S is empty because .init_array/.fini_array are used exclusively. */ |
|||
|
|||
@ -1,38 +1 @@ |
|||
/* Copyright (C) 2001, 2002 Free Software Foundation, Inc. |
|||
|
|||
This file is part of GCC. |
|||
|
|||
GCC is free software; you can redistribute it and/or modify it under |
|||
the terms of the GNU General Public License as published by the Free |
|||
Software Foundation; either version 3, or (at your option) any later |
|||
version. |
|||
|
|||
GCC is distributed in the hope that it will be useful, but WITHOUT ANY |
|||
WARraNTY; without even the implied warranty of MERCHANTABILITY or |
|||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|||
for more details. |
|||
|
|||
Under Section 7 of GPL version 3, you are granted additional |
|||
permissions described in the GCC Runtime Library Exception, version |
|||
3.1, as published by the Free Software Foundation. |
|||
|
|||
You should have received a copy of the GNU General Public License and |
|||
a copy of the GCC Runtime Library Exception along with this program; |
|||
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
|||
<http://www.gnu.org/licenses/>. */ |
|||
|
|||
#ifdef __riscv64 |
|||
# define LR ld |
|||
#else |
|||
# define LR lw |
|||
#endif |
|||
|
|||
.section .init,"ax",@progbits |
|||
LR ra, 0(sp) |
|||
addi sp, sp, 8 |
|||
ret |
|||
|
|||
.section .fini,"ax",@progbits |
|||
LR ra, 0(sp) |
|||
addi sp, sp, 8 |
|||
ret |
|||
/* crtn.S is empty because .init_array/.fini_array are used exclusively. */ |
|||
|
|||
@ -1,10 +1,2 @@ |
|||
# Assemble startup files. |
|||
$(T)crti.o: $(srcdir)/config/riscv/crti.asm $(GCC_PASSES) |
|||
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \ |
|||
-c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/riscv/crti.asm |
|||
|
|||
$(T)crtn.o: $(srcdir)/config/riscv/crtn.asm $(GCC_PASSES) |
|||
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \ |
|||
-c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/riscv/crtn.asm |
|||
|
|||
LIB2ADD += $(srcdir)/config/riscv/riscv-fp.c |
|||
|
|||
Loading…
Reference in new issue