crt0 and linker script on GCC

281 views
Skip to first unread message

ali khan

unread,
Dec 10, 2020, 5:44:42 AM12/10/20
to RISC-V SW Dev

Hi, all i know the two files which is associated with our C code are crt0.s and the linker script (one is for setting up the target processor environment and other descried the memory layout correct me if I'm wrong) what i does i wrote my own linker script and crt0.s file but I'm unable to locate the directory where i can place my linker script
it would be a great help if you guys can tell me the path on which i can place my own linker script and crt0.s file
Best,
Nikal

Tommy Murphy

unread,
Dec 10, 2020, 5:55:39 AM12/10/20
to RISC-V SW Dev, ali khan
You can put it wherever you want and use the gcc -T command line option to reference it.


From: ali khan <nikal...@gmail.com>
Sent: Thursday, December 10, 2020 10:44:42 AM
To: RISC-V SW Dev <sw-...@groups.riscv.org>
Subject: [sw-dev] crt0 and linker script on GCC
 
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/9f0e3d99-5092-4a29-a75f-736c91c3417cn%40groups.riscv.org.
Reply all
Reply to author
Forward
0 new messages