]> git.eshelyaron.com Git - emacs.git/commitdiff
* s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
authorDan Nicolaescu <dann@ics.uci.edu>
Wed, 23 Jul 2008 06:39:16 +0000 (06:39 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Wed, 23 Jul 2008 06:39:16 +0000 (06:39 +0000)
* s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
(LD_SWITCH_SYSTEM_1): Remove, update users.

src/ChangeLog
src/s/freebsd.h
src/s/netbsd.h

index ea6ce58ec94430e1e17eaea64320a34cc59725b2..0d4027d881ae1efb846dda31f848f22e4f3f989e 100644 (file)
@@ -1,5 +1,9 @@
 2008-07-23  Dan Nicolaescu  <dann@ics.uci.edu>
 
+       * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
+       * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
+       (LD_SWITCH_SYSTEM_1): Remove, update users.
+
        * s/darwin.h (DATA_END):
        * m/intel386.h (DATA_END):
        * m/ibmrs6000.h (DATA_END):
index ca183b57ff117758b4811c427ea19963a711a7b5..acb9ec95db25a4dc4451017097615b44e1e2f418 100644 (file)
@@ -68,7 +68,11 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #ifdef __ELF__
 
-#define LD_SWITCH_SYSTEM_1
+/* Let `ld' find image libs and similar things in /usr/local/lib.  The
+   system compiler, GCC, has apparently been modified to not look
+   there, contrary to what a stock GCC would do.  */
+
+#define LD_SWITCH_SYSTEM  -L/usr/local/lib
 #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o
 #define UNEXEC unexelf.o
 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
@@ -78,7 +82,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #else /* not __ELF__ */
 
 #ifndef NO_SHARED_LIBS
-#define LD_SWITCH_SYSTEM_1 -e start -dc -L/usr/local/lib
+#define LD_SWITCH_SYSTEM -e start -dc -L/usr/local/lib
 #define HAVE_TEXT_START                /* No need to define `start_of_text'. */
 #if __FreeBSD_version >= 300002
 #define START_FILES pre-crt0.o /usr/lib/aout/crt0.o
@@ -92,20 +96,12 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #else /* NO_SHARED_LIBS */
 #ifdef __FreeBSD__  /* shared libs are available, but the user prefers
                      not to use them.  */
-#define LD_SWITCH_SYSTEM_1 -Bstatic -L/usr/local/lib
-#define A_TEXT_OFFSET(x) (sizeof (struct exec))
-#define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
+#define LD_SWITCH_SYSTEM -Bstatic -L/usr/local/lib
 #endif /* __FreeBSD__ */
 #endif /* NO_SHARED_LIBS */
 
 #endif /* not __ELF__ */
 
-/* Let `ld' find image libs and similar things in /usr/local/lib.  The
-   system compiler, GCC, has apparently been modified to not look
-   there, contrary to what a stock GCC would do.  */
-
-#define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_1 -L/usr/local/lib
-
 #define HAVE_GETLOADAVG 1
 #define HAVE_TERMIOS
 #define NO_TERMIO
index 2e0af41a2f6fac5785c36c8ab16b487cb2b389a2..fdd41d3b829ec6e31a06fec714ebf41e712d3bab 100644 (file)
@@ -41,9 +41,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #define TABDLY OXTABS
 #define TAB3 OXTABS
 
-#define A_TEXT_OFFSET(x) (sizeof (struct exec))
-#define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
-
 #define HAVE_TERMIOS
 #define NO_TERMIO