This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: how to compile with shared object in arm-elf-gcc
- To: Piteir <piter197 at yahoo dot com>
- Subject: Re: [ECOS] how to compile with shared object in arm-elf-gcc
- From: Jesper Skov <jskov at cambridge dot redhat dot com>
- Date: 30 May 2001 08:55:58 +0200
- Cc: ECOS <ecos-discuss at sourceware dot cygnus dot com>
- References: <20010530062930.71889.qmail@web12302.mail.yahoo.com>
>>>>> "Piteir" == Piteir <piter197@yahoo.com> writes:
Piteir> Hi, I ever compiled an application using arm-linux-gcc with
Piteir> shared object *.so and now I want to compile the same
Piteir> application with arm-elf-gcc, because it seems that
Piteir> arm-elf-gcc using independent library.
Piteir> -Can any one tell/give me some examples, how to compile in
Piteir> arm-elf-gcc (the setting, etc)?
You can't - the final link must produce a static executable since eCos
does not support dynamic linking.
I suspect you can probably use your existing build rules, but for eCos
builds specify -static when linking the final executable.
However, that may well bloat the executable more than using archives
and linker garbage collection as described in the eCos mauals.
Jesper