Fix read-only eh_frame test
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2013-01-08 Anthony Green <green@moxielogic.com>
|
||||||
|
|
||||||
|
* configure.ac: Fix test for read-only eh_frame.
|
||||||
|
* configure: Rebuilt.
|
||||||
|
|
||||||
2013-01-08 Anthony Green <green@moxielogic.com>
|
2013-01-08 Anthony Green <green@moxielogic.com>
|
||||||
|
|
||||||
* src/x86/sysv.S, src/x86/unix64.S: Only emit DWARF unwind info
|
* src/x86/sysv.S, src/x86/unix64.S: Only emit DWARF unwind info
|
||||||
|
|||||||
11
configure
vendored
11
configure
vendored
@@ -14635,11 +14635,12 @@ else
|
|||||||
|
|
||||||
libffi_cv_ro_eh_frame=no
|
libffi_cv_ro_eh_frame=no
|
||||||
echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
|
echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
|
||||||
if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
|
if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
|
||||||
if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
|
objdump -h conftest.o > conftest.dump 2>&1
|
||||||
libffi_cv_ro_eh_frame=yes
|
libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
|
||||||
elif grep '.section.*eh_frame.*#alloc' conftest.c \
|
libffi_test_line=`expr $libffi_eh_frame_line + 1`p
|
||||||
| grep -v '#write' > /dev/null; then
|
sed -n $libffi_test_line conftest.dump > conftest.line
|
||||||
|
if grep READONLY conftest.line > /dev/null; then
|
||||||
libffi_cv_ro_eh_frame=yes
|
libffi_cv_ro_eh_frame=yes
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
11
configure.ac
11
configure.ac
@@ -402,11 +402,12 @@ if test "x$GCC" = "xyes"; then
|
|||||||
libffi_cv_ro_eh_frame, [
|
libffi_cv_ro_eh_frame, [
|
||||||
libffi_cv_ro_eh_frame=no
|
libffi_cv_ro_eh_frame=no
|
||||||
echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
|
echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
|
||||||
if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
|
if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
|
||||||
if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
|
objdump -h conftest.o > conftest.dump 2>&1
|
||||||
libffi_cv_ro_eh_frame=yes
|
libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
|
||||||
elif grep '.section.*eh_frame.*#alloc' conftest.c \
|
libffi_test_line=`expr $libffi_eh_frame_line + 1`p
|
||||||
| grep -v '#write' > /dev/null; then
|
sed -n $libffi_test_line conftest.dump > conftest.line
|
||||||
|
if grep READONLY conftest.line > /dev/null; then
|
||||||
libffi_cv_ro_eh_frame=yes
|
libffi_cv_ro_eh_frame=yes
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user