RE: [uClinux-dev] .fini section and elf2flt.ld

From: darmasakti@netscape.net
Date: Mon Dec 10 2001 - 10:39:13 EST


.init from crt1.o
.fini from crti.o
.jcr  from crtn.o

If you will not use them add "-nostartfiles" on your flags, then use crt0.o as startup file.

"I.S.Kuten" <vanokuten@hitron.co.kr> wrote:

>
>I have some questions, when compiling simple helloworld.c ( not C++)
>
>1st way I use is ok :
>
>arm-elf-gcc -c my.c
>arm-elf-ld -v /home/ARM7TDMI/TOOLCHAIN1/arm-elf/lib/crt0.o my.o 
>-L/home/ARM7TDMI/TOOLCHAIN1/lib/gcc-lib/arm-elf/3.1 -lc -lgcc  -o my.elf
>elf2flt -o my.flat my.elf
>
>2nd way :
>
>arm-elf-gcc -v -mcpu=arm7tdmi -Wl,-elf2flt -o my my.c > log 2>&1
>
>(see attachment)
>
>As I understood , linker takes crtbegin.o & stuff ( where .fini and .jcr 
>sections are defined) and elf2flt.ld doesn't define them .
>
>It seems I have to modify elf2flt.ld
>
>Or maybe newer elf2flt version ?
>
>--------------------
>I use
>arm-elf cvs gcc-3.1
>cvs binutils
>uclibc
>arm-elf-elf2flt-20011114
>---------------------------
>
-- 




__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:20:35 EDT