]> bbs.cooldavid.org Git - net-next-2.6.git/commit
uml: fix string exporting on UML/i386
authorJeff Dike <jdike@addtoit.com>
Tue, 24 Jul 2007 01:43:46 +0000 (18:43 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 24 Jul 2007 19:24:58 +0000 (12:24 -0700)
commit1a65f493c335abc3822291b52f3565776ce39a1b
tree63c2d36c9a779e45232c07dbbf55ca20c27d6618
parent0d786d4a2773f06a791e8c3730d049077fb81df6
uml: fix string exporting on UML/i386

In 2.6.23-rc1, i386 fiddled its string support such that UML started getting
undefined references from modules.  The UML asm/string.h was including the
i386 string.h, which defined __HAVE_ARCH_STR*, but the corresponding
implementations weren't being pulled in.

This is fixed by adding arch/i386/lib/string.h to the list of host
architecture files to be pulled in to UML.

A complication is that the libc exports file assumed that the generic strlen
and strstr weren't in use (i.e.  __HAVE_ARCH_STR is defined), then they aren't
exported.  This is untrue for strlen, which is exported in either case, so
this logic is not needed.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/os-Linux/user_syms.c
arch/um/sys-i386/Makefile