From 5b3cf092022d2f4f888cb689dd447154d42c897b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sat, 21 Mar 1998 15:25:47 +0000 Subject: Added enough symbols to the conftest.c program to make sure it would successfully link on both the powerpc and hppa1.1. --- aclocal/prog-cxx.m4 | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'aclocal/prog-cxx.m4') diff --git a/aclocal/prog-cxx.m4 b/aclocal/prog-cxx.m4 index 47a61ba57e..a9648ab86a 100644 --- a/aclocal/prog-cxx.m4 +++ b/aclocal/prog-cxx.m4 @@ -61,8 +61,23 @@ AC_TRY_COMPILER( if test "$rtems_cv_prog_cxx_works" = "no"; then dnl now retry with our own version of malloc AC_TRY_COMPILER( - [extern "C" void *malloc(); - void *malloc() { return (0); } + [extern "C" void *malloc(); void *malloc() { return (0); } + extern "C" int atexit(); int atexit() { return 0; } +#if defined(__PPC__) + int __SDATA_START__; int __SDATA2_START__; + int __GOT_START__; int __GOT_END__; + int __GOT2_START__; int __GOT2_END__; + int __SBSS_END__; int __SBSS2_END__; + int __FIXUP_START__; int __FIXUP_END__; + int __EXCEPT_START__; int __EXCEPT_END__; + int __init; int __fini; +#endif +#if defined(__hppa__) + asm ( ".subspa \$GLOBAL\$,QUAD=1,ALIGN=8,ACCESS=0x1f,SORT=40"); + asm ( ".export \$global\$" ); + asm ( "\$global\$:"); +#endif + main(){return(0);}], rtems_cv_prog_cxx_works, rtems_cv_prog_cxx_cross) fi -- cgit v1.2.3