On Wed, 2008-10-22 at 22:35 +0200, Daniel Gollub wrote:
> 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 <[EMAIL PROTECTED]>
> Signed-off-by: Daniel Gollub <[EMAIL PROTECTED]>
>
Thanks.
Regards--
Subrata
> ---
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list