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 : [email protected] PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG. _______________________________________________ users mailing list [email protected] http://lists.rtems.org/mailman/listinfo/users
