summaryrefslogtreecommitdiff
path: root/config
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* elfutils.spec.in (devel): Include known-dwarf.h and version.h.elfutils-0.162Mark Wielaard2015-06-112-0/+7
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Prepare 0.162 release.Mark Wielaard2015-06-102-0/+18
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* configure: Add check for gcc -Wstack-usage.Mark Wielaard2015-06-102-1/+12
| | | | | | | 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>
* config: Add -Wstack-usage=262144 (256K) warning check.Mark Wielaard2015-05-272-0/+7
| | | | | | | | All library code now builds with this warning and -Werror enabled. Add exceptions for most of the src tools (ldgeneric, readelf, nm, size, strip, elflint, findtextrel, elfcmp objdump, ranlib, ar and unstrip). Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Allow disabling symbol versioning at configure timeMax Filippov2015-04-232-2/+12
| | | | | | | | | | | | | 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>
* Publish known-dwarf.hPetr Machata2015-03-312-11/+9
| | | | | | | | | | | | | - Make the macro names properly scoped (DWARF_ALL_KNOWN_* and DWARF_ONE_KNOWN_*). - Simplify the calling convention: don't keep track of the comment associated with the enumerator, always use the non-_DESC DWARF_ONE_KNOWN_* callback. - Install known-dwarf.h alongside libdw.h and others. Signed-off-by: Petr Machata <pmachata@redhat.com>
* Drop two useless variables from known-dwarf.awkPetr Machata2015-02-242-9/+7
| | | | Signed-off-by: Petr Machata <pmachata@redhat.com>
* Prepare 0.161 release.Mark Wielaard2014-12-182-0/+15
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Add configure --disable-textrelcheck option to enable CC=afl-fuzz on 32bit.Mark Wielaard2014-12-042-1/+12
| | | | | | | | | | | | | | | 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>
* Prepare 0.160 release.Mark Wielaard2014-08-252-0/+12
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Prepare 0.159 release.Mark Wielaard2014-05-182-0/+30
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Remove mudflap build option.Mark Wielaard2014-04-182-9/+6
| | | | | | | | | 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>
* Use -Wformat=2 by default for all files.Mark Wielaard2014-01-302-3/+6
| | | | | | | | This just makes sure that all format strings are given as literals to printf like functions so the compiler can see and check them. Remove all no_Wformat, add -Wformat=2 unconditionally to AM_CFLAGS. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Prepare 0.158 release.Mark Wielaard2014-01-032-0/+19
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Check for prefixed ar, readelf, and nmMichael Forney2013-11-052-1/+5
| | | | | | | | Sometimes with cross-compile toolchains, the tools are prefixed with the target arch. Using AC_CHECK_TOOL looks for tools named like this. Signed-off-by: Michael Forney <mforney@mforney.org> Signed-off-by: Mark Wielaard <mjw@redhat.com>
* 0.157 release updates for NEWS, elfutils.spec.in and .po files.elfutils-0.157Mark Wielaard2013-09-302-1/+7
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Prepare 0.157 release.Mark Wielaard2013-09-272-0/+10
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Prepare 0.156 release.elfutils-0.156Jan Kratochvil2013-07-252-0/+26
| | | | Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
* Updates for Automake 1.13.Mark Wielaard2013-04-262-1/+5
| | | | | | | autoreconf will install config/test-driver, ignore it. Update gettext m4 and po files to version 0.18.2. Use AM_CPPFLAGS instead of INCLUDES. All changes are backward compatible with Automake 1.11.
* Prepare 0.155 release.elfutils-0.155Mark Wielaard2012-08-272-0/+21
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* config: known-dwarf.awk Fix "Generated by" header.Mark Wielaard2012-07-262-1/+6
| | | | | | | Generated header had wrong file names for config/known-dwarf.awk and libdw/dwarf.h contents. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Prepare 0.153 release.Mark Wielaard2012-06-222-0/+15
| | | | Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Update name, license and contributor policy.Mark Wielaard2012-06-055-74/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Change name from "Red Hat elfutils" to "elfutils". * Update license of standalone tools and test from GPLv2 to GPLv3+. * Change license of libraries from GPLv2+exception to GPLv2/LGPLv3+. * Add Developer Certificate of Origin based contributor policy. top-level: - COPYING: Upgraded from GPLv2 to GPLv3. - CONTRIBUTING, COPYING-GPLv2, COPYING-LGPLv3: New files. - NEWS: Added note about new contribution and license policy. - Makefile.am: Updated to GPLv3, added new files to EXTRA_DIST. - configure.ac: Update to GPLv3, changed AC_INIT name to 'elfutils'. backends, lib, libasm, libcpu, libdw, libdwfl, libebl, libelf: - All files updated to GPLv2/LGPLv3+. Except some very small files (<5 lines) which didn't have any headers at all before, the linker .maps files and the libcpu/defs files which only contain data and libelf/elf.h which comes from glibc and is under LGPLv2+. config: - elfutils.spec.in: Add new License: headers and new %doc files. - Update all license headers to GPLv2/LGPLv3+ for files used by libs. src, tests: - All files updated to GPLv3+. Except for the test bz2 data files, the linker maps and script files and some very small files (<5 lines) that don't have any headers. Signed-off-by: Richard Fontana <rfontana@redhat.com> Signed-off-by: Mark Wielaard <mjw@redhat.com>
* Remove .mtn-ignore and .cvsignore files.Mark Wielaard2012-06-051-1/+0
| | | | We use .gitignore these days.
* Prepare 0.153 release.elfutils-0.153Mark Wielaard2012-02-232-0/+19
|
* Run gawk on config/known-dwarf.awk.Mark Wielaard2011-10-312-1/+5
|
* Update spec file for dependency on C++ libraryUlrich Drepper2011-10-021-26/+28
|
* Prepare 0.152 release.elfutils-0.152Ulrich Drepper2011-02-151-0/+8
|
* Prepare 0.151 release.elfutils-0.151Ulrich Drepper2011-01-122-3/+7
|