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 /libsframe/configure.ac | |
parent | dc56ee029e7e02666b81101e169333f7edfa76f9 (diff) | |
download | gdb-19e559f1c91bfaedbd2f91d85ee161f3f03fda3c.zip gdb-19e559f1c91bfaedbd2f91d85ee161f3f03fda3c.tar.gz 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 'libsframe/configure.ac')
-rw-r--r-- | libsframe/configure.ac | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/libsframe/configure.ac b/libsframe/configure.ac new file mode 100644 index 0000000..a6c1d26 --- /dev/null +++ b/libsframe/configure.ac @@ -0,0 +1,75 @@ +dnl -*- Autoconf -*- +dnl Process this file with autoconf to produce a configure script. +dnl +dnl Copyright (C) 2022 Free Software Foundation, Inc. +dnl +dnl This file is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program; see the file COPYING. If not see +dnl <http://www.gnu.org/licenses/>. +dnl + +AC_INIT([libsframe], BFD_VERSION) +AC_CONFIG_SRCDIR(sframe.c) +AC_USE_SYSTEM_EXTENSIONS +AM_INIT_AUTOMAKE + +# Checks for programs. +AC_PROG_MAKE_SET +AC_PROG_CC +AC_PROG_RANLIB +AM_PROG_AR + +dnl Default to a non shared library. This may be overridden by the +dnl configure option --enable-shared. +AC_DISABLE_SHARED + +LT_INIT +AC_SYS_LARGEFILE + +MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing +AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal]) +AC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf]) +AC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader]) + +dnl Figure out what compiler warnings we can enable. +dnl See config/warnings.m4 for details. + +ACX_PROG_CC_WARNING_OPTS([-Wall -Wextra -Wwrite-strings \ + -Wmissing-format-attribute \ + -Wstrict-prototypes -Wmissing-prototypes], + [ac_libsframe_warn_cflags]) + +dnl The libsframe testsuite uses dejagnu.h. +dnl If the version of dejagnu and gcc are incompatible then the libsframe +dnl testsuite is not built. + +DEJAGNU_CHECK_VERSION +AM_CONDITIONAL([HAVE_COMPAT_DEJAGNU], [test "x$ac_cv_dejagnu_compat" = "xyes"]) + +COMPAT_DEJAGNU=$ac_cv_dejagnu_compat +AC_SUBST(COMPAT_DEJAGNU) + +AM_MAINTAINER_MODE +AM_INSTALL_LIBBFD + +AC_FUNC_MMAP +AC_CHECK_HEADERS(byteswap.h endian.h) + +dnl Check for bswap_{16,32,64} +AC_CHECK_DECLS([bswap_16, bswap_32, bswap_64], [], [], [[#include <byteswap.h>]]) + +AC_CONFIG_FILES(Makefile) +AC_CONFIG_HEADERS(config.h) +AC_OUTPUT + +GNU_MAKE_JOBSERVER |