Changeset 5b3cf09 in rtems


Ignore:
Timestamp:
Mar 21, 1998, 3:25:47 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
04c99873
Parents:
771dac2
Message:

Added enough symbols to the conftest.c program to make sure it would
successfully link on both the powerpc and hppa1.1.

Location:
aclocal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • aclocal/prog-cc.m4

    r771dac2 r5b3cf09  
    6464AC_LANG_C
    6565AC_TRY_COMPILER(
    66 [void *malloc() { return 0; }
     66[
     67#if defined(__PPC__)
     68  int __SDATA_START__;  int __SDATA2_START__;
     69  int __GOT_START__;    int __GOT_END__;
     70  int __GOT2_START__;   int __GOT2_END__;
     71  int __SBSS_END__;     int __SBSS2_END__;
     72  int __FIXUP_START__;  int __FIXUP_END__;
     73  int __EXCEPT_START__; int __EXCEPT_END__;
     74  int __init;           int __fini;
     75#endif
     76#if defined(__hppa__)
     77  asm ( ".subspa \$GLOBAL\$,QUAD=1,ALIGN=8,ACCESS=0x1f,SORT=40");
     78  asm ( ".export \$global\$" );
     79  asm ( "\$global\$:");
     80#endif
     81 int atexit() { return 0; }
     82 void *malloc() { return 0; }
    6783 main(){return(0);}],
    6884rtems_cv_prog_cc_works, rtems_cv_prog_cc_cross)
  • aclocal/prog-cxx.m4

    r771dac2 r5b3cf09  
    6262  dnl now retry with our own version of malloc
    6363  AC_TRY_COMPILER(
    64     [extern "C" void *malloc();
    65      void *malloc() { return (0); }
     64    [extern "C" void *malloc(); void *malloc() { return (0); }
     65     extern "C" int atexit();   int atexit() { return 0; }
     66#if defined(__PPC__)
     67  int __SDATA_START__;  int __SDATA2_START__;
     68  int __GOT_START__;    int __GOT_END__;
     69  int __GOT2_START__;   int __GOT2_END__;
     70  int __SBSS_END__;     int __SBSS2_END__;
     71  int __FIXUP_START__;  int __FIXUP_END__;
     72  int __EXCEPT_START__; int __EXCEPT_END__;
     73  int __init;           int __fini;
     74#endif
     75#if defined(__hppa__)
     76  asm ( ".subspa \$GLOBAL\$,QUAD=1,ALIGN=8,ACCESS=0x1f,SORT=40");
     77  asm ( ".export \$global\$" );
     78  asm ( "\$global\$:");
     79#endif
     80
    6681     main(){return(0);}],
    6782    rtems_cv_prog_cxx_works, rtems_cv_prog_cxx_cross)
Note: See TracChangeset for help on using the changeset viewer.