summaryrefslogtreecommitdiffstats
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
...
* Do not depend on some non-POSIX features.Akihiko Odaki2016-10-131-0/+4
| | | | | | | | Define/open code memrchr, rawmemchr, powerof2 and TEMP_FAILURE_RETRY if not available through system headers. Signed-off-by: Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp> Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Prepare 0.167 release.Mark Wielaard2016-08-041-0/+5
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Remove eu-ld and unused code.Mark Wielaard2016-08-031-0/+5
| | | | | | | | Nobody has hacked on eu-ld in a very long time. It didn't really work. And we didn't install it by default in the spec file. Remove sources, the build rules and any (now) unused code. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Add support for BPFRichard Henderson2016-06-281-0/+4
| | | | Signed-off-by: Richard Henderson <rth@redhat.com>
* CONTRIBUTING: Extend patch, committer and maintainer guidelines.Mark Wielaard2016-06-211-0/+4
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* config: Pass the compiler -Werror during warning detectionFilipe Brandenburger2016-05-031-0/+3
| | | | | | | | | | | | | | Otherwise the compilation prints a warning but exits with 0 return code. However, later during the compilation, when -Werror is enforced to about every file, the unsupported options start breaking the builds. Tested: Ran configure with clang-3.5 and built libelf/ tree with it. $ autoreconf -i $ ./configure CC=clang-3.5 ... $ make -C libelf Signed-off-by: Filipe Brandenburger <filbranden@google.com>
* config: Fix check for argp_parse to pass &argvFilipe Brandenburger2016-05-021-0/+4
| | | | | | | | | | | | | | | | | | | Right now it's passing a char* when it expects a char** instead. This usually produces a warning that may go unnoticed, but if CFLAGS contains -Werror, that breaks the ./configure run with the following error: $ ./configure CFLAGS=-Werror ... configure: WARNING: "libc does not have argp" checking for argp_parse in -largp... no configure: error: "no libargp found" Tested: Checked that after this fix, running ./configure CFLAGS=-Werror works as expected and argp_parse is correctly detected. Signed-off-by: Filipe Brandenburger <filbranden@google.com>
* Prepare 0.166 release.elfutils-0.166Mark Wielaard2016-03-311-0/+4
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* config: Use --program-prefix=eu- by default.Mark Wielaard2016-03-021-0/+5
| | | | | | | | | | | | We want eu- as default program prefix if none was given by the user. But if the user explicitly provided --program-prefix="" then pretend it wasn't set at all (NONE). This makes sure all tools will be installed as eu-<program>. We want this default since most tools would normally conflict with the GNU binutils variants that have similar names. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* config: Check for and use gcc -Wnull-dereference.Mark Wielaard2016-02-221-0/+4
| | | | | | -Wnull-dereference is new in GCC6 Signed-off-by: Mark Wielaard <mjw@redhat.com>
* config: Check for and use gcc -Wlogical-op and -Wduplicated-cond.Mark Wielaard2016-02-151-0/+5
| | | | | | | | | Both -Wlogical-op and -Wduplicated-cond may produce useful warnings. But we have to check them first. Older versions of gcc had a -Wlogical-op that warned on some constructs using macros that are not erronious. Only GCC6 has -Wduplicated-cond. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Prepare 0.165 release.Mark Wielaard2016-01-081-0/+5
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* config: Add libelf and libdw pkg-config files.Mark Wielaard2016-01-051-0/+5
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Make make more silent.Mark Wielaard2016-01-051-0/+4
| | | | | | | Silent rules already are the default, but automake and make both still tell which directory is being entered/build. Disable printing from make. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Make zlib mandatory.Mark Wielaard2015-10-261-0/+4
| | | | | | Explicitly link libelf and libdw with -lz. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Prepare 0.164 release.Mark Wielaard2015-10-151-0/+5
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* configure.ac: Add AM_SILENT_RULES([yes])Mark Wielaard2015-10-121-0/+4
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Use -fPIC instead of -fpic when generating PIC code.Jose E. Marchesi2015-10-061-0/+5
| | | | | | | This avoids relocation overflows in sparc/sparc64 targets while linking, where the reachable data using -fpic is only 4kb. Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com>
* Fix/improve .gitignorePino Toscano2015-07-111-0/+5
| | | | | | | | | | | | | | | Fill the .gitignore with more generated files, such as: - test executables - results of the automake testing framework (*.log and *.trs) - sources generated by flex and bison - generated *.mnemonics files in libcpu - the helper libcpu/i386_gendis tool - *.so.1 symlinks Also, anchor existing filenames to their location when builddir==srcdir. Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
* Prepare 0.163 release.elfutils-0.163Mark Wielaard2015-06-191-0/+5
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Prepare 0.162 release.Mark Wielaard2015-06-101-0/+5
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* configure: Add check for gcc -Wstack-usage.Mark Wielaard2015-06-101-0/+5
| | | | | | | Some older gcc versions don't support -Wstack-usage. Only use it when accepted by the compiler. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Define MODVERSION in a more reproducable way.Mark Wielaard2015-06-051-0/+5
| | | | | | | | | We define MODVERSION to make sure the libebl backend modules match the elfutils build when we dlopen them. Using hostname and date makes it very hard to create reproducable builds. Define them a little more reproducable using LIBEBL_SUBDIR, eu_version and ac_cv_build. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Fix sanitize-undefined config check. Don't ALLOW_UNALIGNED when checking.Mark Wielaard2015-06-051-0/+5
| | | | | | | | | The -fsanitize=undefined check need to use AC_LINK_IFELSE to make sure libubsan is installed. When doing undefined checking we should disable ALLOW_UNALIGNED memory accesses to catch issues where we do unaligned accesses by accident. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* configure: Add check for bunzip2 and maintainer-mode tools.Mark Wielaard2015-06-051-0/+6
| | | | | | | | Without bunzip2 make check cannot be run. To generate all files in maintainer-mode flex and bison are needed. Otherwise check that libdw/known-dwarf.h is already generated. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* configure: Add --enable-sanitize-undefined.Mark Wielaard2015-05-271-0/+6
| | | | | | | | | | | | Now that we are -fsanitize=undefined clean make sure we keep it that way. We do have to disable alignment checking. Because we might explicitly use unaligned accesses (see ALLOW_UNALIGNED). Rename DISTCHECK_CONFIGURE_FLAGS to AM_DISTCHECK_CONFIGURE_FLAGS, so the user can override. And add --enable-sanitize-undefined. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Link against standalone argp libraryAnthony G. Basile2015-05-041-0/+5
| | | | | | | | | | | | | | argp is not part of POSIX standards and not provided by uClibc or some other standard C libraries. However, it is possible to link against a breakout argp library. One is provided at http://www.lysator.liu.se/~nisse/misc/ This patch tests if libc provides argp otherwise it adds the linker flag -largp where needed in the build system. Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* configure: fix enable_demangler settingMax Filippov2015-05-031-0/+4
| | | | | | | Add missing comma to AS_IF, otherwise enable_demangler is always set to 'no'. Canonicalize tests. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* tests: Split run-stack tests to support missing demangler.Mark Wielaard2015-05-011-0/+4
| | | | | | SKIP tests that need a demangler if it is not there. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* configure: print feature settings overviewMark Wielaard2015-05-011-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | elfutils can be configured in various ways. But we expect certain settings for the features that we explicitly support. Print an overview of all settings, plus their recommended setting, at the end of the configure run. ===================================================================== elfutils: 0.161 (eu_version: 161) ===================================================================== Prefix : /opt/local/install/elfutils Program prefix ("eu-" recommended) : eu- Source code location : /home/mark/src/elfutils Maintainer mode : yes libebl modules subdirectory : elfutils build arch : x86_64-unknown-linux-gnu RECOMMENDED FEATURES (should all be yes) gzip support : yes bzip2 support : yes lzma/xz support : yes libstdc++ demangle support : yes File textrel check : yes Symbol versioning : yes NOT RECOMMENDED FEATURES (should all be no) Experimental thread safety : no OTHER FEATURES Deterministic archives by default : false Native language support : yes EXTRA TEST FEATURES (used with make check) debug branch prediction : no gprof support : no gcov support : no run all tests under valgrind : no use rpath in tests : no test biarch : yes Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Allow disabling symbol versioning at configure timeMax Filippov2015-04-231-0/+4
| | | | | | | | | | | | | Due to missing symbol versioning support in uClibc calls to versioned functions that internally call different version of themselves results in infinite recursion. Introduce macro SYMBOL_VERSIONING and use it instead of plain SHARED to decide whether symbol versioning is needed. Control this macro definition with new configure option --disable-symbol-versioning. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Mark Wielaard <mjw@redhat.com>
* configure: Add explicit checks for all GNU99 extensions used.Mark Wielaard2015-04-141-0/+5
| | | | | | | | | | | | Some compilers (clang) claim to support -std=gnu99 but don't actually implement all extensions we use in the code. Producing really hard to parse errors. Add explicit checks for some of the other language extensions we use, Nested Functions and Arrays of Variable Length, to the configure check to catch such issues early. https://bugzilla.redhat.com/show_bug.cgi?id=1211357 Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Fix -Wimplicit warnings.Mark Wielaard2015-03-131-0/+5
|
* Prepare 0.161 release.Mark Wielaard2014-12-181-0/+5
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Add config/compile as installed by automake 1.14Josh Stone2014-12-151-0/+4
| | | | Signed-off-by: Josh Stone <jistone@redhat.com>
* Add configure --disable-textrelcheck option to enable CC=afl-fuzz on 32bit.Mark Wielaard2014-12-041-0/+4
| | | | | | | | | | | | | | | Using american fuzzy lop has found a lot of issues. It would be nice to make using it a bit easier. Our build files make sure that no shared library uses text relocations, but afl-gcc will insert some on i686. http://www.akkadia.org/drepper/textrelocs.html Now CC=afl-gcc ./configure --disable-textrelcheck will allow them so that afl can instrument the libraries. Don't try to use or install them except with afl-fuzz. When selinux is enabled it might prevent loading the libraries with DT_TEXTREL set. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* libdw: Add dwarf_peel_type. Use it in dwarf_aggregate_size.Mark Wielaard2014-11-051-0/+4
| | | | | | | | | | | | | | | Add new function dwarf_peel_type. Some type annotations in DWARF are specified by modifier tag type wrappers instead of attributes. For type aliases (typedef) and qualifiers (const, volatile, restrict) tags dwarf_peel_type follows the DW_AT_type attributes till it finds a base, user-defined, reference or pointer type DIE. Use this new function in the backends for return type DIEs (replacing the existing dwarf_peel_type there) and in dwarf_aggregate_size so it can provide the sizes for qualified types too. Add a new version and testcase for the new dwarf_aggregate_size functionality. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Prepare 0.160 release.Mark Wielaard2014-08-251-0/+6
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* libdw: Add new function dwarf_cu_die.Mark Wielaard2014-08-151-0/+4
| | | | | | | | | | Given a Dwarf_Die or Dwarf_Attribute it is often convenient to get at the CU DIE and the CU header information. There is dwarf_diecu but that doesn't provide all information from the header and it doesn't work for attributes. Add a new dwarf_cu_die function that provides all information given a Dwarf_CU, which both Dwarf_Die and Dwarf_Attribute reference. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* libdw: Add new function dwarf_cu_getdwarf.Mark Wielaard2014-08-151-0/+4
| | | | | | | | | | | In both systemtap and libabigail there is a need to get the actual Dwarf underlying an Dwarf_Die or Dwarf_Attribute. Following a DIE reference might end up in an alternate Dwarf since the addition of DWZ multifile forms. Both Dwarf_Die and Dwarf_Attribute already contain a Dwarf_CU handle. Add a function dwarf_cu_getdwarf to retrieve the underlying Dwarf using the Dwarf_CU. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* aarch64: use <sys/user.h> defined register structuresKyle McMartin2014-08-011-0/+4
| | | | | | | | | | | glibc now supplies these (compatible) structs instead of including the kernel's <asm/ptrace.h> header, so let's use them. Annoyingly this will cause new elfutils to FTBFS on old glibc, and vice versa. So include a new configure check for the new struct names and use the old ones if they are not avilable. Signed-off-by: Kyle McMartin <kyle@redhat.com> Signed-off-by: Mark Wielaard <mjw@redhat.com>
* unstrip: Add --force to force combining files when ELF headers don't match.Mark Wielaard2014-05-271-0/+4
| | | | | | | | | | | | | | Older versions of GNU binutils strip would drop some ELF header flags. Causing the main ELF file and the separate .debug file to have mismatched ELF header fields. Unfortunately some distros are still shipping such files. eu-unstrip doesn't want to recombine such files. Add a more explicit explanation which fields don't match and provide a --force, -F flag to force combining such files anyway (producing a warning). https://bugzilla.redhat.com/show_bug.cgi?id=698005 https://bugzilla.redhat.com/show_bug.cgi?id=806474 Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Prepare 0.159 release.Mark Wielaard2014-05-181-0/+5
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Remove --enable-dwz. dwz alt debug is no longer experimental.Mark Wielaard2014-05-031-0/+7
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* libdwelf: New DWARF ELF Low-level Functions. Add dwelf_elf_gnu_debuglink.Mark Wielaard2014-04-241-0/+6
| | | | | | | | New public header elfutils/libdwelf.h for low-level DWARF/ELF helper functions. The new function dwelf_elf_gnu_debuglink returns the name and crc as found in the .gnu_debuglink section of an ELF file. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Remove mudflap build option.Mark Wielaard2014-04-181-0/+4
| | | | | | | | | The --enable-mudflap configure build has been broken for 2 years without anybody apparently noticing. GCC 4.9 removed mudflap support. Before release we now run make distcheck with valgrind support. Removal of the mudflap configure option simplifies the build a little. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* stack: Add -i, --inlines. Show inlined call frames using DWARF debuginfo.Mark Wielaard2014-01-271-0/+4
| | | | | | | | | | Using dwarf_getscopes_die we can get all scopes that make up the current subprogram representing an address. Using the call_file/line/column attributes we can also show the source locations of these "inlined" calls. Includes a test that shows that when DWARF debuginfo is available all inlined function call frames and their source location can be shown. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* stack: Add -d, --debugname. Lookup DWARF debuginfo name for frame address.Mark Wielaard2014-01-271-0/+4
| | | | | | | Includes test that shows -d matches the function name that corresponds to the actual source line we report with -s for a frame address. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Prepare 0.158 release.Mark Wielaard2014-01-031-0/+5
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* libdwfl: Add dwfl_getthread_frames.Mark Wielaard2013-12-231-0/+5
| | | | | | | | | | | | | | | | dwfl_getthread_frames is a convenience function for when the user is only interested in one specific thread id of a process. It can be implemented by a simple wrapper function that removes an extra callback layer just to filter on thread id. But it also provides an optimized path to getting access to just one particular Dwfl_Thread of the Dwfl process by providing and (optional) new callback for the state provider. The pid_thread_callbacks now provide an (optional) pid_getthread that doesn't need to travers all threads anymore. Which is implemented for the linux-pid-attach provider. stack now uses this to implement a new '-1' option that shows just one specific thread of a process. Signed-off-by: Mark Wielaard <mjw@redhat.com>