diff options
author | Weimin Pan <weimin.pan@oracle.com> | 2022-11-15 15:06:59 -0800 |
---|---|---|
committer | Indu Bhagat <indu.bhagat@oracle.com> | 2022-11-15 15:24:29 -0800 |
commit | 19e559f1c91bfaedbd2f91d85ee161f3f03fda3c (patch) | |
tree | 527ffba7056f53a26aa5114336ab0a218d868232 /config | |
parent | dc56ee029e7e02666b81101e169333f7edfa76f9 (diff) | |
download | fsf-binutils-gdb-19e559f1c91bfaedbd2f91d85ee161f3f03fda3c.zip fsf-binutils-gdb-19e559f1c91bfaedbd2f91d85ee161f3f03fda3c.tar.gz fsf-binutils-gdb-19e559f1c91bfaedbd2f91d85ee161f3f03fda3c.tar.bz2 |
libsframe: add the SFrame library
libsframe is a library that allows you to:
- decode a .sframe section
- probe and inspect a .sframe section
- encode (and eventually write) a .sframe section.
This library is currently being used by the linker, readelf, objdump.
This library will also be used by the SFrame unwinder which is still
to be upstream'd.
The file include/sframe-api.h defines the user-facing APIs for decoding,
encoding and probing .sframe sections. A set of error codes together
with their error message strings are also defined.
Endian flipping is performed automatically at read and write time, if
cross-endianness is detected.
ChangeLog:
* Makefile.def: Add libsframe as new module with its
dependencies.
* Makefile.in: Regenerated.
* binutils/Makefile.am: Add libsframe.
* binutils/Makefile.in: Regenerated.
* configure: Regenerated
* configure.ac: Add libsframe to host_libs.
* libsframe/Makefile.am: New file.
* libsframe/Makefile.in: New file.
* libsframe/aclocal.m4: New file.
* libsframe/config.h.in: New file.
* libsframe/configure: New file.
* libsframe/configure.ac: New file.
* libsframe/sframe-error.c: New file.
* libsframe/sframe-impl.h: New file.
* libsframe/sframe.c: New file.
include/ChangeLog:
* sframe-api.h: New file.
testsuite/ChangeLog:
* libsframe/testsuite/Makefile.am: New file.
* libsframe/testsuite/Makefile.in: Regenerated.
* libsframe/testsuite/libsframe.decode/Makefile.am: New
file.
* libsframe/testsuite/libsframe.decode/Makefile.in:
Regenerated.
* libsframe/testsuite/libsframe.decode/decode.exp: New file.
* libsframe/testsuite/libsframe.encode/Makefile.am:
Likewise.
* libsframe/testsuite/libsframe.encode/Makefile.in:
Regenerated.
* libsframe/testsuite/libsframe.encode/encode.exp: New file.
* libsframe/testsuite/libsframe.encode/encode-1.c: Likewise.
* libsframe/testsuite/libsframe.decode/be-flipping.c: Likewise.
* libsframe/testsuite/libsframe.decode/frecnt-1.c: Likewise.
* libsframe/testsuite/libsframe.decode/frecnt-2.c: Likewise.
* libsframe/testsuite/libsframe.decode/DATA-BE: New file.
* libsframe/testsuite/libsframe.decode/DATA1: Likewise.
* libsframe/testsuite/libsframe.decode/DATA2: Likewise.
Diffstat (limited to 'config')
-rw-r--r-- | config/dejagnu.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/config/dejagnu.m4 b/config/dejagnu.m4 new file mode 100644 index 0000000..0606e42 --- /dev/null +++ b/config/dejagnu.m4 @@ -0,0 +1,22 @@ +# DEJAGNU_CHECK_VERSION DEJAGNU_CHECK_VERSION +# -------------------------------------------------------------- +# Test whether there is an incompatibility between DejaGnu and GCC versions. +# Older versions ( <= 1.5.1 ) of dejagnu.h use GNU inline semantics improperly. +# The issue presents itself as link-time errors complaining about undefined +# references to 'pass' and 'fail'. +AC_DEFUN([DEJAGNU_CHECK_VERSION], +[ + AC_MSG_CHECKING([for incompatibility between DejaGnu and GCC]) + AC_MSG_RESULT([$ac_cv_dejagnu_compat]) + + AC_TRY_LINK([#include <dejagnu.h>], + [pass ("test foo"); + return 0;], + [ac_cv_dejagnu_compat=yes], + [ac_cv_dejagnu_compat=no]) + AC_MSG_RESULT([$ac_cv_dejagnu_compat]) + + if test "$ac_cv_dejagnu_compat}" = no ; then + AC_MSG_RESULT([detected incompatibility between dejagnu version and gcc]) + fi +]) |