Thanks Marcelo Arroyo
This commit is contained in:
parent
969f03dd8e
commit
271427920b
3 changed files with 2 additions and 4 deletions
2
Makefile
2
Makefile
|
@ -60,7 +60,7 @@ CFLAGS = -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2
|
||||||
CFLAGS += -MD
|
CFLAGS += -MD
|
||||||
CFLAGS += -mcmodel=medany
|
CFLAGS += -mcmodel=medany
|
||||||
# CFLAGS += -ffreestanding -fno-common -nostdlib -mno-relax
|
# CFLAGS += -ffreestanding -fno-common -nostdlib -mno-relax
|
||||||
CFLAGS += -fno-common -nostdlib -mno-relax
|
CFLAGS += -fno-common -nostdlib
|
||||||
CFLAGS += -fno-builtin-strncpy -fno-builtin-strncmp -fno-builtin-strlen -fno-builtin-memset
|
CFLAGS += -fno-builtin-strncpy -fno-builtin-strncmp -fno-builtin-strlen -fno-builtin-memset
|
||||||
CFLAGS += -fno-builtin-memmove -fno-builtin-memcmp -fno-builtin-log -fno-builtin-bzero
|
CFLAGS += -fno-builtin-memmove -fno-builtin-memcmp -fno-builtin-log -fno-builtin-bzero
|
||||||
CFLAGS += -fno-builtin-strchr -fno-builtin-exit -fno-builtin-malloc -fno-builtin-putc
|
CFLAGS += -fno-builtin-strchr -fno-builtin-exit -fno-builtin-malloc -fno-builtin-putc
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
// wrapper so that it's OK if main() does not call exit().
|
// wrapper so that it's OK if main() does not call exit().
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
_main()
|
start()
|
||||||
{
|
{
|
||||||
extern int main();
|
extern int main();
|
||||||
main();
|
main();
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
OUTPUT_ARCH( "riscv" )
|
OUTPUT_ARCH( "riscv" )
|
||||||
ENTRY( _main )
|
|
||||||
|
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue