[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ltp-list
Subject:    [LTP] [PATCH] build environment fix for openposix testuite on PPC64
From:       Daniel Gollub <dgollub () suse ! de>
Date:       2008-10-22 20:35:59
Message-ID: 200810222235.59354.dgollub () suse ! de
[Download RAW message or body]

Hi,

openposix testsuite is skipping PPC64 builds due to different location of the
"main" function symbol on PPC64.

ppc64:~ # uname -a
Linux cherry 2.6.25.5-1.1-ppc64 #1 SMP 2008-06-07 01:55:22 +0200 ppc64 ppc64 ppc64 GNU/Linux

ppc64:~ # gcc -m32 -o mallocstress32 mallocstress.c -lpthread
ppc64:~ # nm -g mallocstress32 | grep main
         U __libc_start_main@@GLIBC_2.0
10000ec0 T main

ppc64:~ # gcc -m64 -o mallocstress64 mallocstress.c -lpthread
pcc64:~ # nm -g mallocstress64 | grep main
                 U __libc_start_main@@GLIBC_2.3
00000000100120e8 D main


See nm(1):
[...]
"D"
"d" The symbol is in the initialized data section.
[...]
"T"
"t" The symbol is in the text (code) section.


Author: Erik Hamera <ehamera@suse.cz>
Signed-off-by: Daniel Gollub <dgollub@suse.de>

---
 testcases/open_posix_testsuite/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: testcases/open_posix_testsuite/Makefile
===================================================================
--- testcases/open_posix_testsuite/Makefile.orig
+++ testcases/open_posix_testsuite/Makefile
@@ -81,7 +81,7 @@ clean:
 	LFLFILE=`dirname $<`/LDFLAGS; \
 	[ -e $$LFLFILE ] && LFL=`cat $$LFLFILE`; \
 	[ -f $< ] || exit 0; \
-	{ nm -g $< | grep -q " T main"; } || \
+	{ nm -g $< | grep -q ' T main\| D main'; } || \
 	{ echo "$(@:.test=): link: SKIP" | tee -a $(LOGFILE) && exit 0; }; \
 	if $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) $$LFL > $$COMPLOG 2>&1; \
 	then \

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic