comparison src/m/amdx86-64.h @ 96985:e58e8418725b

* m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs. * m/alpha.h (TEXT_END): * m/ibmrs6000.h (TEXT_END): * m/macppc.h (TEXT_END): * s/darwin.h (TEXT_END): * s/msdos.h (TEXT_END): Remove, unused. * s/gnu-linux.h (BSD_PGRPS): Add a comment. * s/cygwin.h: Remove comment.
author Dan Nicolaescu <dann@ics.uci.edu>
date Thu, 24 Jul 2008 18:45:45 +0000
parents 2262534e4e66
children e038c1a8307c
comparison
equal deleted inserted replaced
96984:ea3fb04613c1 96985:e58e8418725b
105 105
106 #undef START_FILES 106 #undef START_FILES
107 #undef LIB_STANDARD 107 #undef LIB_STANDARD
108 108
109 #else /* !__OpenBSD__ && !__FreeBSD__ && !__NetBSD__ && !SOLARIS2 */ 109 #else /* !__OpenBSD__ && !__FreeBSD__ && !__NetBSD__ && !SOLARIS2 */
110
111 #undef START_FILES
112 #ifdef HAVE_LIB64_DIR
113 #define START_FILES pre-crt0.o /usr/lib64/crt1.o /usr/lib64/crti.o
114 #else
115 #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o
116 #endif
117
118 /* The duplicate -lgcc is intentional in the definition of LIB_STANDARD. 110 /* The duplicate -lgcc is intentional in the definition of LIB_STANDARD.
119 The reason is that some functions in libgcc.a call functions from libc.a, 111 The reason is that some functions in libgcc.a call functions from libc.a,
120 and some libc.a functions need functions from libgcc.a. Since most 112 and some libc.a functions need functions from libgcc.a. Since most
121 versions of ld are one-pass linkers, we need to mention -lgcc twice, 113 versions of ld are one-pass linkers, we need to mention -lgcc twice,
122 or else we risk getting unresolved externals. */ 114 or else we risk getting unresolved externals. */
115 #undef START_FILES
123 #undef LIB_STANDARD 116 #undef LIB_STANDARD
124 #ifdef HAVE_LIB64_DIR 117 #ifdef HAVE_LIB64_DIR
118 #define START_FILES pre-crt0.o /usr/lib64/crt1.o /usr/lib64/crti.o
125 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib64/crtn.o 119 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib64/crtn.o
126 #else 120 #else
121 #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o
127 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o 122 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o
128 #endif 123 #endif
129 124
130 #endif /* __FreeBSD__ */ 125 #endif /* __FreeBSD__ */
131 #endif /* !i386 */ 126 #endif /* !i386 */