[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Build shared library (.so) for Mini-OS


  • To: <xen-devel@xxxxxxxxxxxxx>
  • From: "Yiming Zhang" <sdiris@xxxxxxxxx>
  • Date: Mon, 8 Apr 2013 09:54:13 +0100
  • Delivery-date: Mon, 08 Apr 2013 08:54:44 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Thread-index: Ac40NWNQr7CqCCxIRK67xFOrzfl2lw==

Dear all,

I want to realize dynamic library linking/loading for Mini-OS. The first
step is to build a shared libc library (.so) from newlib-1.16.0. To achieve
this, I modified the stubdom/Makefile to:

(i) build all obj files (libc_objs = *.o) with -fPIC option, and 
(ii) tried to do "gcc -shared -o libc.so $(libc_objs)"

However, the 2nd step cannot work because "string/memcpy.o" and
"machine/x86_64/memcpy.o" both have a memcpy() function. Is there any way to
build a shared libc library (.so) from newlib? (and how this problem is
addressed for standard glibc?) Thank you!

Cheers,
Yiming



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.