How can I remove file system
Joel Sherrill
joel.sherrill at oarcorp.com
Tue Jun 12 13:30:01 UTC 2007
yanmiaobest wrote:
> Hi Joel
>
> I followed your advice, but I got a problem.
> This is my stub function:
> void rtems_filesystem_initialize( void )
> {
> }
> and I put this file into /c/src/optman/rtems, after recomplie the OS, I
> get the no-fs.rel, and I add a manager named fs to the manager list. But
> when make applications, I got a link error:
> [root at localhost core_obj]# make
> sparc-rtems-gcc --pipe -B/opt/rtems/sparc-rtems/leon3/lib/ -specs
> bsp_specs -qrtems -g -Wall -O2 -g -mcpu=cypress -msoft-float -o
> o-optimize/hello.exe o-optimize/test.o
> /opt/rtems/sparc-rtems/leon3/lib/no-dpmem.rel
> /opt/rtems/sparc-rtems/leon3/lib/no-event.rel
> /opt/rtems/sparc-rtems/leon3/lib/no-io.rel
> /opt/rtems/sparc-rtems/leon3/lib/no-msg.rel
> /opt/rtems/sparc-rtems/leon3/lib/no-mp.rel
> /opt/rtems/sparc-rtems/leon3/lib/no-part.rel
> /opt/rtems/sparc-rtems/leon3/lib/no-signal.rel
> /opt/rtems/sparc-rtems/leon3/lib/no-timer.rel
> /opt/rtems/sparc-rtems/leon3/lib/no-rtmon.rel
> /opt/rtems/sparc-rtems/leon3/lib/no-fs.rel
> /opt/rtems/sparc-rtems/leon3/lib/librtemscpu.a(base_fso): In function
> `rtems_filesystem_initialize':
> /home/rtems/rtemsbuild/sparc-rtems/c/leon3/exec/libcsupport/../../../../../../rtems-
> 4.6.5/cpukit/libcsupport/src/base_fs.c:44: multiple definition of
> `rtems_filesystem_initialize'
>
> /opt/rtems/sparc-rtems/leon3/lib/no-fs.rel:/home/rtems/rtemsbuild/sparc-rtems/c/leon3/optman/../../../../../rtems-4.6.5/c/src/optman/rtems/no-fs.c:55:
> first defined here
> /opt/rtems/lib/gcc-lib/sparc-rtems/3.2.3/./../../../sparc-rtems/bin/ld:
> Warning: size of symbol `rtems_filesystem_initialize' changed from 12
> to 348
> in /opt/rtems/sparc-rtems/leon3/lib/librtemscpu.a(base_fs.o)
>
> collect2: ld returned 1 exit status
> make: *** [o-optimize/helloexe] Error 1
> the .rel should prevent linking to the .o , right ?
>
None of the size reduction work is present in 4.6. Some is present
on the 4.7 branch. All is on the CVS head.
If this really is of concern to you, you need to be using the CVS head.
Also the BSP's Makefile.am and ".rel" structure have a LARGE impact
on what gets pulled in. The erc32 is a pretty good BSP for avoiding
this but I don't think the leon3 has been looked at yet.
--joel
>
>
>
> ------------------------------------------------------------------------
> 150 Íò ÈË Í¬ ʱ ÔÚ Íæ µÄ Íø ÓΣ¬Äã ²» ÊÔ ÊÔ Â𠣿
> <http://event.mail.163.com/chanel/xyq.htm?from=163_NO1>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>
More information about the users
mailing list