Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4cbbf6b7
Commit
4cbbf6b7
authored
Oct 06, 2004
by
Jan Djärv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* configure.in (HAVE_RANDOM_HEAPSTART): Change AC_MSG_ERROR to
AC_MSG_WARN.
parent
3ef82334
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
24 deletions
+49
-24
ChangeLog
ChangeLog
+6
-1
configure
configure
+27
-14
configure.in
configure.in
+15
-8
src/ChangeLog
src/ChangeLog
+1
-1
No files found.
ChangeLog
View file @
4cbbf6b7
2004-10-05 Jan D. <jhd@ostrich.localdomain>
2004-10-06 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* configure.in (HAVE_RANDOM_HEAPSTART): Change AC_MSG_ERROR to
AC_MSG_WARN.
2004-10-05 Jan Dj,Ad(Brv. <jan.h.d@swipnet.se>
* configure.in (HAVE_RANDOM_HEAPSTART): Renamed HAVE_EXECSHIELD.
Run test to see if heap start address is random.
...
...
configure
View file @
4cbbf6b7
...
...
@@ -7746,7 +7746,7 @@ echo $ECHO_N "checking whether heap start address is randomized... $ECHO_C" >&6
if test x"$ac_cv_header_unistd_h" != x && test x"$ac_cv_header_stdlib_h" != x
then
if test "$cross_compiling" = yes; then
emacs_cv_
execshield
='assuming no'
emacs_cv_
randomheap
='assuming no'
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
...
...
@@ -7788,24 +7788,24 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
emacs_cv_
execshield
=yes
emacs_cv_
randomheap
=yes
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
emacs_cv_
execshield
=no
emacs_cv_
randomheap
=no
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
else
emacs_cv_
execshield
='assuming no'
emacs_cv_
randomheap
='assuming no'
fi
echo "$as_me:$LINENO: result: $emacs_cv_
execshield
" >&5
echo "${ECHO_T}$emacs_cv_
execshield
" >&6
echo "$as_me:$LINENO: result: $emacs_cv_
randomheap
" >&5
echo "${ECHO_T}$emacs_cv_
randomheap
" >&6
if test "$emacs_cv_
execshield
" = yes; then
if test "$emacs_cv_
randomheap
" = yes; then
# Extract the first word of "setarch", so it can be a program name with args.
set dummy setarch; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
...
...
@@ -7854,13 +7854,26 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
else
{ { echo "$as_me:$LINENO: error: Heap start address is randomized and no workaround is known.
Probably exec-shield is turned on. Emacs can not dump itself if this is the
case. Read about exec-shield in \`etc/PROBLEMS' for further information." >&5
echo "$as_me: error: Heap start address is randomized and no workaround is known.
Probably exec-shield is turned on. Emacs can not dump itself if this is the
case. Read about exec-shield in \`etc/PROBLEMS' for further information." >&2;}
{ (exit 1); exit 1; }; }
{ echo "$as_me:$LINENO: WARNING:
**********************************************************************
Heap start address is randomized and no workaround is known.
Emacs will probably dump core when temacs is run in the build phase.
Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS'
for further information.
**********************************************************************
" >&5
echo "$as_me: WARNING:
**********************************************************************
Heap start address is randomized and no workaround is known.
Emacs will probably dump core when temacs is run in the build phase.
Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS'
for further information.
**********************************************************************
" >&2;}
fi
fi
...
...
configure.in
View file @
4cbbf6b7
...
...
@@ -1599,23 +1599,30 @@ int main (int argc, char *argv[])
exit (-1);
}
exit (this_sbrk == old_sbrk);
}], emacs_cv_
execshield
=yes, emacs_cv_
execshield
=no,
emacs_cv_
execshield
='assuming no')
}], emacs_cv_
randomheap
=yes, emacs_cv_
randomheap
=no,
emacs_cv_
randomheap
='assuming no')
else
emacs_cv_
execshield
='assuming no'
emacs_cv_
randomheap
='assuming no'
fi
AC_MSG_RESULT($emacs_cv_
execshield
)
AC_MSG_RESULT($emacs_cv_
randomheap
)
if test "$emacs_cv_
execshield
" = yes; then
if test "$emacs_cv_
randomheap
" = yes; then
AC_PATH_PROG(SETARCH, setarch, no)
AC_SUBST(SETARCH)
if test "$SETARCH" != no && test "$machine" = "intel386"; then
AC_DEFINE(HAVE_RANDOM_HEAPSTART, 1,
[Define to 1 if this OS randomizes the start address of the heap.])
else
AC_MSG_ERROR([Heap start address is randomized and no workaround is known.
Probably exec-shield is turned on. Emacs can not dump itself if this is the
case. Read about exec-shield in `etc/PROBLEMS' for further information.])
AC_MSG_WARN([
**********************************************************************
Heap start address is randomized and no workaround is known.
Emacs will probably dump core when temacs is run in the build phase.
Maybe exec-shield is turned on. Read about exec-shield in `etc/PROBLEMS'
for further information.
**********************************************************************
])
fi
fi
...
...
src/ChangeLog
View file @
4cbbf6b7
2004-10-05 Jan D
. <jhd@ostrich.localdomain
>
2004-10-05 Jan D
j,Ad(Brv. <jan.h.d@swipnet.se
>
* config.in: Regenerate.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment