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/Makefile.am | |
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/Makefile.am')
-rw-r--r-- | libsframe/Makefile.am | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/libsframe/Makefile.am b/libsframe/Makefile.am new file mode 100644 index 0000000..940494d --- /dev/null +++ b/libsframe/Makefile.am @@ -0,0 +1,39 @@ +## Process this file with automake to produce Makefile.in. +# +# Copyright (C) 2022 Free Software Foundation, Inc. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; see the file COPYING. If not see +# <http://www.gnu.org/licenses/>. +# +ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd + +AUTOMAKE_OPTIONS = dejagnu foreign no-texinfo.tex subdir-objects + +INCDIR = $(srcdir)/../include +# include libctf for swap.h +AM_CPPFLAGS = -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../libctf +AM_CFLAGS = @ac_libsframe_warn_cflags@ + +if INSTALL_LIBBFD +lib_LTLIBRARIES = libsframe.la +include_HEADERS = $(INCDIR)/sframe.h $(INCDIR)/sframe-api.h +else +include_HEADERS = +noinst_LTLIBRARIES = libsframe.la +endif + +libsframe_la_SOURCES = sframe.c sframe-error.c +libsframe_la_CPPFLAGS = $(AM_CPPFLAGS) + +include testsuite/local.mk |