undefined reference to `rtems_jffs2_initialize'

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Sep 3 09:11:35 UTC 2019


On 03/09/2019 11:06, Ярослав Лещинский wrote:
> -Wl,--gc-sections -ljffs2 -lz   -mthumb -mcpu=cortex-m4 
> -mfpu=fpv4-sp-d16 -mfloat-abi=hard  o-optimize/main.o
> /home/midnight/rtems/toolchain/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: 
> o-optimize/main.o:(.rodata.rtems_filesystem_table+0xc): undefined 
> reference to `rtems_jffs2_initialize'

The linker searches in the files from left to right on the command line. 
In this case main.o is the right most file, so it will not look at your 
-ljffs2 to the left.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


More information about the users mailing list