summaryrefslogtreecommitdiff
path: root/config
Commit message (Collapse)AuthorAgeFilesLines
...
* debuginfod: extracted-from-archive file cacheFrank Ch. Eigler2020-01-112-0/+5
| | | | | | | | | | | Add a facility to service webapi and dwz/altdebug requests that resolve to archives via a $TMPDIR file cache. This permits instantaneous dwz resolution during -debuginfo rpm scanning, and also instantanous duplicate webapi requests. The cache is limited both in number of entries and in storage space. Heuristics provide serviceable defaults. Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
* Do not install libdebuginfod.pc unless debuginfod is enabledDmitry V. Levin2020-01-082-1/+9
| | | | | Fixes: 288f6b199 ("debuginfod 1/2: client side") Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
* debuginfod server: support .deb/.ddeb archivesFrank Ch. Eigler2019-12-222-0/+8
| | | | | | | | | Add support for scanning .deb / .ddeb files, enabled with a new command line option "-U". Using a synthetic .deb/.ddeb from a Ubuntu 18 machine, extend the debuginfod testsuite with some .deb processing, if the dpkg-deb binary is installed. Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
* config: Update elfutils.spec with explicit sub-package requires.Mark Wielaard2019-12-112-9/+15
| | | | | | | | | | | | Consistently require version-release subpackages so that everything is updated together. Technically this isn't always required (it is for elfutils-libelf and elfutils-libs). But this makes things more consistent and prevents multilib version mismatches. Also update a Summary and description to match the current Fedora text. Signed-off-by: Mark Wielaard <mark@klomp.org>
* config: Add an explicit Requires elfutils-debuginfod-client for debuginfod.Mark Wielaard2019-11-282-0/+6
| | | | | | | | elfutils-debuginfod depends indirectly already on the client library. Make that explicit so they are always updated in sync. Which isn't technically required, but makes things clearer and simpler on updates. Signed-off-by: Mark Wielaard <mark@klomp.org>
* config: versioned libdebuginfod libraries should not be in -devel package.Mark Wielaard2019-11-272-1/+7
| | | | | | | | | The versioned library (links) should be in the runtime package. The debuginfod-client-devel package should just contain the .so (symlink). This isn't fatal, just sloppy. ldconfig will correct the missing symlinks when it was missing. Signed-off-by: Mark Wielaard <mark@klomp.org>
* elfutils.spec.in: Sync with fedora spec, remove rhel/fedora specifics.elfutils-0.178Mark Wielaard2019-11-262-70/+84
| | | | | | | | | | | | | | This makes the sample elfutils.spec file more like the fedora elfutils.spec but with all fedora and rhel specifics removed. In particular it introduces a new elfutils-libs subpackage and updates the requires accordingly. Other cleanups are removal of Group tags, remove dot at end of Summary tags, add post/postun ldconfig for elfutils-libs and elfutils debuginfod-client subpackages, remove default defattr(-,root,root) for file lists and order binaries by name. Signed-off-by: Mark Wielaard <mark@klomp.org>
* Prepare for 0.178Mark Wielaard2019-11-261-0/+15
| | | | | | | | Set version to 0.178. Update NEWS and elfutils.spec.in. Regenerate po/*.po files. Signed-off-by: Mark Wielaard <mark@klomp.org>
* elfutils.spec: Add BuildRequires: curlMark Wielaard2019-11-252-0/+5
| | | | | | The run-debuginfod-find.sh now relies on curl to fetch the metrics. Signed-off-by: Mark Wielaard <mark@klomp.org>
* debuginfod 2/2: server sideFrank Ch. Eigler2019-11-226-6/+145
| | | | | | | | | | Add the server to the debuginfod/ subdirectory. This is a highly multithreaded c++11 program (still buildable on rhel7's gcc 4.8, which is only partly c++11 compliant). Includes an initial suite of tests, man pages, and a sample systemd service. Signed-off-by: Frank Ch. Eigler <fche@redhat.com> Signed-off-by: Aaron Merey <amerey@redhat.com>
* debuginfod 1/2: client sideAaron Merey2019-11-222-2/+14
| | | | | | | | | | | | Introduce the debuginfod/ subdirectory, containing the client for a new debuginfo-over-http service, in shared-library and command-line forms. Two functions in libdwfl make calls into the client library to fetch elf/dwarf files by buildid, as a fallback. Instead of normal dynamic linking (thus pulling in a variety of curl dependencies), the libdwfl hooks use dlopen/dlsym. Server & tests coming in patch 2. Signed-off-by: Aaron Merey <amerey@redhat.com> Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
* libebl: Don't install libebl.a, libebl.h and remove backends from spec.Mark Wielaard2019-09-102-8/+9
| | | | | | | | All archive members from libebl.a are now in libdw.a. We don't generate separate backend shared libraries anymore. So remove them from the elfutils.spec file. Signed-off-by: Mark Wielaard <mark@klomp.org>
* config: Fix spec file, add manpages and new GFDL license.Mark Wielaard2019-08-292-5/+17
| | | | | | | | | Now that we have manpages lets also package them. Rename COPYING to COPYING-GFDL to make it not clash with the top-level COPYING file. Also fix up the spec file so it can be used to create a srpm again. Add eu-stack to the file list. Signed-off-by: Mark Wielaard <mark@klomp.org>
* config/elfutils.spec.in: package eu-elfclassifyDmitry V. Levin2019-08-152-0/+5
| | | | | | Package the new tool introduced by commit elfutils-0.177~1. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
* Prepare for 0.177elfutils-0.177Mark Wielaard2019-08-133-3/+19
| | | | | | | | | Set version to 0.177. Update NEWS and elfutils.spec.in. Use git --get user.name and user.email for spec changelog. Regenerate po/*.po files. Signed-off-by: Mark Wielaard <mark@klomp.org>
* config: Add git tag --verify to upload-release.sh.Mark Wielaard2019-04-152-0/+5
| | | | | | Add a check to make sure we have to correct (signed) tag. Signed-off-by: Mark Wielaard <mark@klomp.org>
* Prepare for 0.176Mark Wielaard2019-02-142-0/+11
| | | | | | | | | Set version to 0.176. Update NEWS and elfutils.spec.in. Update GPG-KEY. Regenerate po/*.po files. Signed-off-by: Mark Wielaard <mark@klomp.org>
* Add -Wtrampolines to CFLAGS.Mark Wielaard2018-11-212-1/+5
| | | | | | | | | | elfutils uses nested functions a lot. This is fine unless one takes the address of such a nested function. When taking the address of a nested function a trampoline is generated that on some systems require the stack to be executable. That is bad. We never want to generate such trampolines. Add -Wtrampolines to CLAGS to make sure we don't. Signed-off-by: Mark Wielaard <mark@klomp.org>
* config/upload-release.sh: Need to make before make dist.Mark Wielaard2018-11-161-1/+1
| | | | Signed-off-by: Mark Wielaard <mark@klomp.org>
* Update upload-release.sh script and po files.elfutils-0.175Mark Wielaard2018-11-161-5/+33
| | | | Signed-off-by: Mark Wielaard <mark@klomp.org>
* Prepare for 0.175Mark Wielaard2018-11-141-0/+14
| | | | | | | | Set version to 0.175 Update NEWS and elfutils.spec.in. Regenerate po/*.po files. Signed-off-by: Mark Wielaard <mark@klomp.org>
* Prepare for 0.174elfutils-0.174Mark Wielaard2018-09-141-0/+11
| | | | | | | | Set version to 0.174. Mention new functionality in NEWS. Update po/*.po files. Signed-off-by: Mark Wielaard <mark@klomp.org>
* config: Add upload-release.sh script.Mark Wielaard2018-07-042-0/+35
| | | | | | | | Should be run after making a release to upload the new tar.bz2, signature file and update the latest symlinks. Make sure to run make distcheck first. Requires a shell account on sourceware. Signed-off-by: Mark Wielaard <mark@klomp.org>
* Prepare for 0.173elfutils-0.173Mark Wielaard2018-06-291-0/+15
| | | | | | | | Set version to 0.173. Mention new functionality in NEWS. Update po/*.po files. Signed-off-by: Mark Wielaard <mark@klomp.org>
* Prepare for 0.172.elfutils-0.172Mark Wielaard2018-06-112-0/+11
| | | | | | | | | | It has been only 10 days since the previous release and there are no functional changes compared to 0.171. The speedup of eu-readelf -N is pretty nice. And ~25 patches fix various bugs (hangs and crashes) in dealing with bad DWARF5 data. Most have been found by running the afl fuzzer on eu-readelf and various testcases. Signed-off-by: Mark Wielaard <mark@klomp.org>
* Prepare for 0.171.elfutils-0.171Mark Wielaard2018-06-012-0/+18
| | | | | | | Set version to 0.171. Update po/*.po files. Mention DWARF5, split dwarf and GNU DebugFission support in NEWS. Signed-off-by: Mark Wielaard <mark@klomp.org>
* Use fallthrough attribute.Joshua Watt2018-02-102-1/+7
| | | | | | | | | | | | | | | Use __attribute__ ((fallthrough)) to indicate switch case fall through instead of a comment. This ensures that the fallthrough warning is not triggered even if the file is pre-processed (hence stripping the comments) before it is compiled. The actual fallback implementation is hidden behind a FALLBACK macro in case the compiler doesn't support it. Finally, the -Wimplict-fallthrough warning was upgraded to only allow the attribute to satisfy it; a comment alone is no longer sufficient. Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
* config: files under /usr/lib/sysctl.d (_sysctldir) aren't %config.Mark Wielaard2017-11-102-2/+7
| | | | | | | Admin can place the real config file under /etc/sysctl.d as override. https://bugzilla.redhat.com/show_bug.cgi?id=1506660 Signed-off-by: Mark Wielaard <mark@klomp.org>
* backends: Ignore GCC8 -Wpacked-not-aligned for m68k_corenote.c.Mark Wielaard2017-10-262-0/+5
| | | | | | | | | The GCC8 -Wpacked-not-aligned warns if a structure field with explicit padding in a packed structure will be misaligned. m68k prstatus core notes are described by a packed structure which has such aligned structure fields. Signed-off-by: Mark Wielaard <mark@klomp.org>
* Check for -z,defs, -z,relro, -fPIC, -fPIE before using themUlf Hermann2017-08-182-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | Those flags are not available on all platforms, and omitting them when not available will not cause any harm. In particular: -z,defs disallows undefined symbols in object files. This option is unsupported if the target binary format enforces the same condition already. Furthermore it is only a compile time sanity check. When it is omitted, the same binary is produced. -z,relro instructs the loader to mark sections read-only after loading the library, where possible. This is a hardening mechanism. If it is unavailable, the functionality of the code is not affected in any way. -fPIC instructs the compiler to produce position independent code. While this is preferable to relocatable code, relocatable code also works and may even be faster. Relocatable code might just be loaded into memory multiple times for different processes. -fPIE is the same thing as -fPIC for executables rather than shared libraries. Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
* Prepare for 0.170.elfutils-0.170Mark Wielaard2017-08-022-1/+15
| | | | | | | Set version to 0.170. Update po/*.po files. Add some more user visible changes to NEWS. Signed-off-by: Mark Wielaard <mark@klomp.org>
* Prepare for 0.169.elfutils-0.169Mark Wielaard2017-05-052-0/+9
| | | | | | | Set version to 0.169. Update copyright year. Update po/*.po files. And add user visible changes to new 0.169 NEWS section. Signed-off-by: Mark Wielaard <mark@klomp.org>
* Prepare for elfutils 0.168 release.elfutils-0.168Mark Wielaard2016-12-272-2/+13
| | | | Signed-off-by: Mark Wielaard <mark@klomp.org>
* http://elfutils.org/ is now hosted at http://sourceware.org/elfutils/Mark Wielaard2016-12-243-2/+7
| | | | | | | | | | | | | | | | | fedorahosted used to be our home, but we are now hosted at sourceware. Change the elfutils project home to http://elfutils.org/ Point hosted services (email, release, git, bug tracker and web pages) to https://sourceware.org/elfutils/ Move design notes from README to NOTES. Add URLs for home, releases, bugs, git and mailinglist to README. Make the --version output of all tools the same by using a common print_version function and update the publicly shown copyright holder to the elfutils developers. Signed-off-by: Mark Wielaard <mark@klomp.org>
* Add GCC7 -Wimplicit-fallthrough support/fixes.Mark Wielaard2016-11-102-1/+12
| | | | | | | | | | | GCC7 will have a new -Wimplicit-fallthrough warning. It did catch one small buglet in elflint option procession. So it seems useful to enable to make sure all swatch case fallthroughs are deliberate. Add configure check to detect whether gcc support -Wimplicit-fallthrough and enable it. Add fixes and explicit fallthrough comments where necessary. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Prepare 0.167 release.Mark Wielaard2016-08-042-1/+14
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Remove eu-ld and unused code.Mark Wielaard2016-08-032-2/+4
| | | | | | | | 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>
* Prepare 0.166 release.elfutils-0.166Mark Wielaard2016-03-312-0/+8
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* config: Check for and use gcc -Wnull-dereference.Mark Wielaard2016-02-222-0/+12
| | | | | | -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-152-1/+21
| | | | | | | | | 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-082-7/+24
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* config: Add libelf and libdw pkg-config files.Mark Wielaard2016-01-055-1/+53
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Prepare 0.164 release.Mark Wielaard2015-10-152-0/+18
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* config: Use ARFLAGS 'cr'.Mark Wielaard2015-10-122-0/+8
| | | | | | | | | | | | | | | By default automake uses ARFLAGS cru. 'u' is an optimization that makes sure files are only added to the archive when they are newer than the version already in the .a file. This optimization doesn't work when ar is deterministic by default because then it doesn't record timestamps in the archive. Deterministic ar is the default now on various distributions causing multiple warnings like: ar: `u' modifier ignored since `D' is the default (see `U') To suppress these warnings drop the 'u' flag. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Trust AC_SYS_LARGEFILE to provide large file supportJosh Stone2015-10-092-0/+7
| | | | | | | | | | | | | | | AC_SYS_LARGEFILE defines _FILE_OFFSET_BITS in config.h if needed for LFS, and this automatically maps things like open to open64. But quite a few places used explicit 64-bit names, which won't work on platforms like FreeBSD where off_t is always 64-bit and there are no foo64 names. It's better to just trust that AC_SYS_LARGEFILE is doing it correctly. But we can verify this too, as some file could easily forget to include config.h. The new tests/run-lfs-symbols.sh checks all build targets against lfs-symbols (taken from lintian) to make sure everything was implicitly mapped to 64-bit variants when _FILE_OFFSET_BITS is set. Signed-off-by: Josh Stone <jistone@redhat.com>
* Improve AM_SILENT_RULES coverageJosh Stone2015-10-062-2/+6
| | | | | | | | | | | Note, elfutils does not explicitly enable AM_SILENT_RULES. It's only available starting from automake 1.11, but starting from automake 1.13 silent rules are always generated, defaulting to verbose. $(AM_V_foo) additions should be no-ops on systems that don't support silent rules. To be silent, use "./configure --enable-silent-rules" or "make V=0". Signed-off-by: Josh Stone <jistone@redhat.com>
* Use -fPIC instead of -fpic when generating PIC code.Jose E. Marchesi2015-10-062-2/+7
| | | | | | | 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>
* Remove old-style function definitions.Mark Wielaard2015-09-232-0/+5
| | | | | | | We already require -std=gnu99 and old-style function definitions might hide some compiler warnings. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* spec: Provide default-yama-scope.Mark Wielaard2015-08-044-2/+69
| | | | | | | | | | | | | | | | | | | | When yama is enabled in the kernel it might be used to filter any user space access which requires PTRACE_MODE_ATTACH like ptrace attach, access to /proc/PID/{mem,personality,stack,syscall}, and the syscalls process_vm_readv and process_vm_writev which are used for interprocess services, communication and introspection (like synchronisation, signaling, debugging, tracing and profiling) of processes. These are precisely the things that libdw dwfl and ebl backends rely on. So make sure they don't mysteriously fail in such cases by providing the default yama scope sysctl value. This is implemented as a separate subpackage that just provides this functionality so other packages that don't directly rely on elfutils-libs can also just Requires: default-yama-scope to function properly. https://bugzilla.redhat.com/show_bug.cgi?id=1209492#c69 Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Prepare 0.163 release.elfutils-0.163Mark Wielaard2015-06-192-0/+7
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>