Re: dynamic loading in 4.11
On 2/12/11 11:11 PM, Oleg Moroz wrote:
> init.c.4.o:(.data+0x30): undefined reference to `Init'
>
> How can i fix this?
>
This is fixed on head. The bsp shared code has a weak Init and if built
provides Init and main becomes the entry point. The erc32 BSP does not
have this. I attach the patch I use on 4.10. I have resisted committing
it to the 4.10 branch because it is a functional change.
> P.S. When i'm building rtl-host i have some errors about missing
> "native-elf-format.h" (i've copied it to build-linux2 directory, and it
> fixed the problem)
Thanks. I will take a look.
Chris
Index: c/src/lib/libbsp/sparc/erc32/Makefile.am
===================================================================
RCS file: /usr1/CVS/rtems/c/src/lib/libbsp/sparc/erc32/Makefile.am,v
retrieving revision 1.51
diff -p -u -u -r1.51 Makefile.am
--- c/src/lib/libbsp/sparc/erc32/Makefile.am 11 May 2010 07:40:39 -0000 1.51
+++ c/src/lib/libbsp/sparc/erc32/Makefile.am 2 Dec 2011 21:56:18 -0000
<at> <at> -37,7 +37,7 <at> <at> libbsp_a_SOURCES =
libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
../../shared/bsppredriverhook.c ../../sparc/shared/bspgetworkarea.c \
(Continue reading)