freebsd-ports/editors/emacs23/files/patch-src:m:ia64.h
Marcel Moolenaar 83fbdb3d28 Fix runtime breakage on ia64, which was introduced with binutils 2.15.
Note that emacs is run as part of the build, so it shows as a build
failure...

To explain (for maintainer's benefit):

Previously the linker would put the text segment in region 2 and the
data segment in region 3. This was changed for FreeBSD (due to me
sending a patch :-) to load the text segment in region 1 with the data
segment immediately following the text segment in the same region (or
subsequent regions of the text segment is larger than 2^61 bytes in
size -- fat chance :-)

So, the previous value of DATA_SEG_BITS (=0x6000000000000000, the
region base of the data segment prior to the binutils 2.15 import),
needed to be changed to match the current layout (=0x2000000000000000,
the region 1 base address).

Approved by: portmgr (krion -- thank!)
2004-09-05 21:38:16 +00:00

19 lines
552 B
C

--- src/m/ia64.h.orig Fri Sep 29 06:00:37 2000
+++ src/m/ia64.h Sun Sep 5 11:57:57 2004
@@ -147,7 +147,7 @@
#ifndef NOT_C_CODE
/* We need these because pointers are larger than the default ints. */
-# if !defined(__NetBSD__) && !defined(__OpenBSD__)
+# if !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__FreeBSD__)
# include <alloca.h>
# else
# include <stdlib.h>
@@ -178,6 +178,6 @@
#endif /* not NOT_C_CODE */
-#define DATA_SEG_BITS 0x6000000000000000
+#define DATA_SEG_BITS 0x2000000000000000
#define HAVE_TEXT_START