diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-03-21 15:25:47 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-03-21 15:25:47 +0000 |
commit | 5b3cf092022d2f4f888cb689dd447154d42c897b (patch) | |
tree | 1645e5e9092d484302c48968369507d3ad79ce73 /aclocal/prog-cc.m4 | |
parent | POSIX not properly conditionalized (diff) | |
download | rtems-5b3cf092022d2f4f888cb689dd447154d42c897b.tar.bz2 |
Added enough symbols to the conftest.c program to make sure it would
successfully link on both the powerpc and hppa1.1.
Diffstat (limited to 'aclocal/prog-cc.m4')
-rw-r--r-- | aclocal/prog-cc.m4 | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/aclocal/prog-cc.m4 b/aclocal/prog-cc.m4 index 755cecfe35..76d27a0539 100644 --- a/aclocal/prog-cc.m4 +++ b/aclocal/prog-cc.m4 @@ -63,7 +63,23 @@ AC_DEFUN(RTEMS_PROG_CC_WORKS, AC_LANG_SAVE AC_LANG_C AC_TRY_COMPILER( -[void *malloc() { 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 + int atexit() { return 0; } + void *malloc() { return 0; } main(){return(0);}], rtems_cv_prog_cc_works, rtems_cv_prog_cc_cross) AC_LANG_RESTORE |