• Home
  • History
  • Annotate
  • only in /external/elfutils/tests/
History log of /external/elfutils/tests/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0cd02dcafcfdaff56f483f41c0ec45de756c7083 13-Jan-2016 Mark Wielaard <mjw@redhat.com> tests: Skip dwfl-bug-fd-leak test if dwfl_linux_proc_report is unsupported.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
wfl-bug-fd-leak.c
d460773dd4fdeb98d9271f741e0a54f05ced876d 13-Jan-2016 Mark Wielaard <mjw@redhat.com> tests: Guard linux specific header includes with ifdef __linux__.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
wfl-proc-attach.c
344ca0775da729e1bfdd61bb88ba4c64befece07 13-Jan-2016 Mark Wielaard <mjw@redhat.com> libelf: Add ELF compression types and defines to libelf.h for older glibc.

Older glibc elf.h might not define the new ELF compression defines and
types. If not just define them in libelf.h directly to make the libelf
headers work on older glibc systems.

Also include a testcase to check the libelf headers build against the
system elf.h.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=810885

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
ystem-elf-libelf-test.c
53e447113b60b56fb88109884749133d1b2e0d75 08-Jan-2016 Mark Wielaard <mjw@redhat.com> tests: Fix parentheses in elfputzdata strncmp test.

We were checking strlen () == 0 instead of strncmp () == 0. Oops.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
lfputzdata.c
3a5fc51573ae88a06d2050ef8425336e23013852 08-Jan-2016 Mark Wielaard <mjw@redhat.com> Fix build on 32bit systems.

size_t has a different size on 32 and 64 bit systems.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
lfputzdata.c
dd131168e2abf2f0fc872829e1101366395cc390 08-Jan-2016 Mark Wielaard <mjw@redhat.com> Simplify code and build now that zlib support is no longer optional.

Now that we always require zlib support we don't need to conditionally
build or compile code that depends on it.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
92acb57eb0468de93c4976eb1de6bf08ede9abd0 01-Dec-2015 Mark Wielaard <mjw@redhat.com> elfcompress: New utility.

Usage: elfcompress [OPTION...] FILE...
Compress or decompress sections in an ELF file.

-f, --force Force compression of section even if it would
become larger
-n, --name=SECTION SECTION name to (de)compress, SECTION is an
extended wildcard pattern (defaults to
'.?(z)debug*')
-o, --output=FILE Place (de)compressed output into FILE
-p, --permissive Relax a few rules to handle slightly broken ELF
files
-q, --quiet Be silent when a section cannot be compressed
-t, --type=TYPE What type of compression to apply. TYPE can be
'none' (decompress), 'zlib' (ELF ZLIB compression,
the default, 'zlib-gabi' is an alias) or
'zlib-gnu' (.zdebug GNU style compression, 'gnu'
is an alias)
-v, --verbose Print a message for each section being
(de)compressed
-?, --help Give this help list
--usage Give a short usage message
-V, --version Print program version

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-compress-test.sh
519c13c9c7fc591609eed405a3e952707c60ec7e 30-Dec-2015 Mark Wielaard <mjw@redhat.com> libelf: Make elf_strptr index correctly into compressed section data.

elf_strptr indexes into the section data. This is defined as index into
the uncompressed data of the section. If the section is compressed make
sure the uncompressed data is available, but don't really decompress the
section header (elf_getdata will still return compressed data).

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
lfputzdata.c
un-elfputzdata.sh
un-zstrptr.sh
strptr.c
f5013e83d5c8fcd9309c8976c3f1167d28cd07aa 21-Oct-2015 Mark Wielaard <mjw@redhat.com> readelf: Handle compressed sections and extend -z to cover -x and -p.

When printing a (non-string, non-data) section use uncompressed data when
possible. For dumping hex and string sections (-x and -p) -z will dump the
uncompressed data (otherwise the compressed data is dumped).

-z, --decompress Show compression information for compressed
sections (when used with -S); decompress section
before dumping data (when used with -p or -x)

Includes test cases for ET_REL files using compressed relocation (target)
debug sections to test libdwfl transparent uncompression of sections.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-readelf-zdebug-rel.sh
un-readelf-zp.sh
un-readelf-zx.sh
estfile-debug-rel-g.o.bz2
estfile-debug-rel-z.o.bz2
estfile-debug-rel.o.bz2
272018bba1f253bae00b5ba280ad0e0f18c04006 19-Dec-2015 Mark Wielaard <mjw@redhat.com> libelf: Add elf_compress and elf_compress_gnu.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
lfgetzdata.c
lfputzdata.c
sg_tst.c
un-elfgetzdata.sh
un-elfputzdata.sh
b7105b40ccd73a8e6b7fce6c11d2088eb1298b33 16-Oct-2015 Mark Wielaard <mjw@redhat.com> readelf: Add -z,--decompress option.

-z, --decompress Show compression information for compressed
sections (when used with -S).

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-readelf-z.sh
5ddb50af4a488fdec358570502cbe058acb8ae93 20-Nov-2015 Mark Wielaard <mjw@redhat.com> libelf: Add elf32_getchdr, elf64_getchdr and gelf_getchdr.

Elf_Data of a compressed section has type ELF_T_CHDR. This type can be
xlated to the file or memory representation. This will make sure the Chdr
is in the correct endianess. The compressed data following the Chdr isn't
translated.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
lfgetchdr.c
sg_tst.c
un-elfgetchdr.sh
estfile-zgabi32.bz2
estfile-zgabi32be.bz2
estfile-zgabi64.bz2
estfile-zgabi64be.bz2
0c32b6f086b9838fe4b7d93575068554d0c420f7 17-Nov-2015 Mark Wielaard <mjw@redhat.com> libdwelf: Add dwelf_scn_gnu_compressed_size.

Helper function to get the size of a GNU compressed zdebug section.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
welfgnucompressed.c
un-dwelfgnucompressed.sh
estfile-zgnu32.bz2
estfile-zgnu32be.bz2
estfile-zgnu64.bz2
estfile-zgnu64be.bz2
29ee512fb8a71b0d22065c369a2117ff758bdf5e 31-Dec-2015 Mark Wielaard <mjw@redhat.com> tests: elfstrmerge warn about STT_SECTION symbol for shstrhndx.

Old linkers might have created an STT_SECTION symbol for the section
header string table section, which isn't actually used. For now just
warn about such symbols. If such a symbol would actually really be used
(but why?) then we would have to handle it by removing it and rewriting
the symbol table.

This is a testsuite only change, but includes an extra test with files
that have such STT_SECTION symbols to make sure it will be handled in
case we "upgrade" the elfstrmerge test to a real utility.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
lfstrmerge.c
un-elfstrmerge-test.sh
a8a22a33a8c5886d6818bd8377f11dd8f38fdc2b 08-Dec-2015 Jose E. Marchesi <jose.marchesi@oracle.com> backends: sparc: support for core backtraces

This patch adds sparc support to the unwinder, providing a default CFI
program that works in both sparcv9-*-* and sparc64-*-* targets.

Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
acktrace.sparc.core.bz2
acktrace.sparc.exec.bz2
un-backtrace-core-sparc.sh
a5a354b9d7d4ca8c912945dd708ab465aec67c7f 02-Dec-2015 Mark Wielaard <mjw@redhat.com> tests: Use valgrind --leak-check=full.

When --enable-valgrind is given run the testsuite with --leak-check=full
treating any memory leak as a failure. Also disable valgrind for those
tests that trigger a valgrind bug.
https://bugs.kde.org/show_bug.cgi?id=327427

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-backtrace-demangle.sh
un-stack-d-test.sh
un-stack-demangled-test.sh
un-stack-i-test.sh
a1372e06a04bad29e8c3c79d95497a8e381f823f 01-Dec-2015 Mark Wielaard <mjw@redhat.com> tests: Fix some memory leaks in testcases.

Make sure all structures allocated in the testcases are disposed so
running them under valgrind will show no memory leaks.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
ddrcfi.c
ddrscopes.c
lldts.c
llregs.c
warf-getstring.c
uncscopes.c
erequest_tag.c
est-flag-nobits.c
528cb45fc99a1f402ac153891ac7c007921699ef 16-Oct-2015 Mark Wielaard <mjw@redhat.com> Make zlib mandatory.

Explicitly link libelf and libdw with -lz.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
9bcd3cbdbc66d94d2c0f53f100ecca3f0cf1df33 16-Oct-2015 Mark Wielaard <mjw@redhat.com> tests: Add AM_LDFLAGS to dwfl_proc_attach_LDFLAGS.

We want to be sure the libelf.so under test is picked up.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
3425454a10d307fae891fb667cf7969e945cde79 09-Oct-2015 Josh Stone <jistone@redhat.com> Trust AC_SYS_LARGEFILE to provide large file support

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>
hangeLog
akefile.am
lldts.c
rls.c
warf-getstring.c
cp.c
fs-symbols
dwrmmap.c
un-lfs-symbols.sh
est-elf_cntl_gelf_getshdr.c
est-flag-nobits.c
estfile-nolfs.bz2
c53857b6a8b074c724999009b8d70b6b6e0c0f15 09-Oct-2015 Mark Wielaard <mjw@redhat.com> tests: Rename argument from check to statement in elfshphehdr.c.

Some older compilers warn about a function and argument name being equal.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
lfshphehdr.c
3a45dbbe7e1862e72bc886fa7f12a5c5c09311e0 04-Oct-2015 Mark Wielaard <mjw@redhat.com> strip: Only sanity check symbols to not discarded sections for debug file.

We can only sanity check the symbols to discarded sections when creating a
debug file. Otherwise we won't keep track of debug_data. This can trigger
erroneously when there are relocation symbols in the symtab for a .debug
section but we are not putting those symbols in a separate .debug file.

Adjust run-strip-test.sh to always run in-place strip size check even
for ET_REL files. Before this fix the sanity check would trigger for
some ET_REL files because they contained such relocation symbols to
.debug sections (but debug_data would be NULL because -f wasn't used).

Signed-off-by: Mark Wielaard <mjw@redhat.com>
un-strip-test.sh
daee4714ee3761e2d92f764a724e83875a79a3f0 05-Oct-2015 Josh Stone <jistone@redhat.com> Improve AM_SILENT_RULES coverage

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>
hangeLog
akefile.am
df7dfab451246e8b088040e052ca01f9d6aba774 11-Aug-2015 Mark Wielaard <mjw@redhat.com> Handle merged strtab/shstrtab string tables in strip and unstrip.

ELF files can share the section header string table (e_shstrndx) with
the symtab .strtab section. That might in some cases save a bit of space
since symbols and sections might share some (sub)strings. To handle that
eu-strip just needs to not unconditionally remove the .shstrtab section
(it will be properly marked as used/unused as needed). eu-unstrip needs
to make sure the section names are added to the strtab if it decides to
rewrite that section. Also makes sure that eu-strip won't move around
a SHT_NOBITS section that has SHF_ALLOC set. Although it is allowed to
move such sections around, there is no benefit. And some tools might
expect no allocated section to move around, not even a nobits section.
It also makes it harder to do "roundtripping" sanity checks that make
sure splitting a file with eu-strip and then reconstructed with eu-unstrip
produce the same ELF file (as is done in the new run-strip-strmerge.sh).

Introduces a somewhat large test generator elfstrmerge.c that will
hopefully turn into a more generic string table merger program.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
lfstrmerge.c
un-strip-strmerge.sh
3adda3ce2a83e2733aa0c84da9bb7949413d02fd 29-Sep-2015 Mark Wielaard <mjw@redhat.com> libelf: Always update e_version and e_shentsize in elf_update.

When e_version is EV_NONE we should set it to EV_CURRENT like we do for
the EI_VERSION and like we set EI_DATA to the correct byte order when set
to ELFDATANONE. Likewise we should always set e_shentsize like we do for
e_phentsize, not just when ELF_F_LAYOUT isn't set.

Add a new elfshphehdr testcase to check the above.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
lfshphehdr.c
879850950bd56255cb5796c86b62bf3bdedd4fb9 07-Sep-2015 Mark Wielaard <mjw@redhat.com> libdwfl: Make dwfl_linux_proc_attach work even without any Dwfl_Modules.

dwfl_linux_proc_attach depended on a Dwfl_Module with the correct
ELF header already being available. That isn't really necessary since
when we attach we have the main exe ELF file available. Just use that
to make dwfl_linux_proc_attach always work.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
wfl-proc-attach.c
b85f80ab687044ece15d51de8a5e7f63bc1d3fa9 04-Sep-2015 Chih-Hung Hsieh <chh@google.com> tests: Init local variable enctype before use in print_base_type varlocs.c.

clang compiler static analysis failed.

Signed-off-by: Chih-Hung Hsieh <chh@google.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
arlocs.c
4cb8f6196201a88d20f4a47fafaf0ae4e3cfa7a0 04-Sep-2015 Chih-Hung Hsieh <chh@google.com> tests: Remove unused static const variables in md5-sha1-test.c.

Signed-off-by: Chih-Hung Hsieh <chh@google.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
d5-sha1-test.c
2ec957327cdfae6cee592a52958a9c937ea4b13c 04-Sep-2015 Chih-Hung Hsieh <chh@google.com> Replace printf %Z length modifier with %z.

%Z is a GNU extension predating the ISO C99 %z modifier supported by
libc5 and no longer recommended.

Signed-off-by: Chih-Hung Hsieh <chh@google.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
sm-tst1.c
sm-tst2.c
sm-tst3.c
sm-tst4.c
sm-tst5.c
sm-tst6.c
sm-tst7.c
sm-tst8.c
sm-tst9.c
ectiondump.c
c689d90c6eff870c85d381faed933a550a58dc0a 14-Aug-2015 Mark Wielaard <mjw@redhat.com> tests: Add a testcase for dwfl debuginfo-path with separate bin/debug dirs.

Reuse the run-addr2line-i-test.sh testfile-inlines testfile, but
first strip the debuginfo and put the binary and separate debuginfo
file in different roots. Check that --debuginfo-path still finds
the debug file.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-addr2line-alt-debugpath.sh
f9fc50c3eced243c0648fb0fbfe2c9877c25e1e4 29-Jul-2015 Mark Wielaard <mjw@redhat.com> unstrip: Handle debuginfo files with missing SHF_INFO_LINK section flags.

With GCC 5 there might be a .rela.plt section with SHF_INFO_LINK set.
Buggy binutils objdump might strip it from the section in the debug file.
Ignore such differences for relocation sections and put the flag back
if necessary.

Also improve the error message a little by only discarding the already
matched sections if there is an prelink undo section. Otherwise we will
report all sections as not matching if the file wasn't prelinked instead
of just the non-matching sections.

New testfiles generated by gcc5 and binutils objdump added.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-unstrip-test3.sh
estfile-info-link.bz2
estfile-info-link.debuginfo.bz2
estfile-info-link.stripped.bz2
26d5a631209a82efe1d55dd44a9c65dc481138cb 27-Jun-2015 Pino Toscano <toscano.pino@tiscali.it> tests: skip run-deleted.sh when dwfl_linux_proc_attach is not implemented

If the current OS does not implement dwfl_linux_proc_attach (which
currently only Linux does) then skip this test, as "stack" uses that
API for attaching to a running process.

Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
hangeLog
un-deleted.sh
349d1cd1a34a7f9ee6a93aa6cf839ce0c8ceea28 27-Jun-2015 Pino Toscano <toscano.pino@tiscali.it> tests: dwfl-bug-fd-leak: Guard against null module addresses

Do not crash if there is no module for the given address.

Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
hangeLog
wfl-bug-fd-leak.c
204e36ea815440ec17bf388e8f267f0b40c2fb37 26-Jun-2015 Pino Toscano <toscano.pino@tiscali.it> tests: Mark an unused argument as such

Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
hangeLog
dsosyms.c
65251494ae6eae66bfdf9134189fd11b1ee8e9b5 26-Jun-2015 Pino Toscano <toscano.pino@tiscali.it> Reduce scope of some includes

Use some includes only according to the #ifdef block of the respective
code, or matching the fact they are Linux-only. This way, includes
potentially unportable are not unconditionally used.

Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
hangeLog
acktrace-data.c
acktrace.c
eleted.c
0d01165e665fd51da69de1aebed64fdb5b5f04e1 16-Jun-2015 Mark Wielaard <mjw@redhat.com> libelf: Always call ftruncate before posix_fallocate to set the right size.

When elf_update.c (write_file) doesn't know the current maximum file length
it might have to reduce the file size. posix_fallocate can only extend the
file. So always call ftruncate before that to set the file size and making
sure the backing store is fully there. Add test cases for checking strip
in place (eu-strip without -o) actually reduces the file size. But only
for non-ET_REL files. We might not be able to strip ET_REL files (except
when they are kernel modules) because they might contain "dangling" symbol
table entries.

https://bugzilla.redhat.com/show_bug.cgi?id=1232206

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-strip-test.sh
7ec8d27033bea05ce1be4601e6784134c4a66c9f 30-May-2015 Mark Wielaard <mjw@redhat.com> tests: Always print reason when skipping test.

Make sure the reason a test is SKIPPED is added to the test-suite.log.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
acktrace-subr.sh
un-addr2line-i-demangle-test.sh
un-backtrace-demangle.sh
un-backtrace-native-biarch.sh
un-backtrace-native-core-biarch.sh
un-stack-demangled-test.sh
est-subr.sh
b23a5b2dda2a0beaaa12c8174808b5d0bd5996ea 20-May-2015 Mark Wielaard <mjw@redhat.com> addr2line: Add --pretty-print option to show all information on one line.

This adds an option --pretty-print to eu-addr2line to show all information
on one line and all inlines on a line of their own. This mimics the same
option from binutils addr2line, but without the short option variant -p.
Since we already use -p to select the process.

Example output:

eu-addr2line --pretty-print -s -i -f -C -p$(pidof firefox) 0x00007f368c6f8915
mozilla::ReentrantMonitor::Wait(unsigned int) at ReentrantMonitor.h:92
(inlined by) mozilla::ReentrantMonitorAutoEnter::Wait(unsigned int) at ReentrantMonitor.h:190

A couple of tests were added to check the output matches that of
binutils addr2line.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-addr2line-i-test.sh
un-addr2line-test.sh
cd2da6c37b468c7ac66d2edcd83f8bcbaeb793ec 20-May-2015 Mark Wielaard <mjw@redhat.com> addr2line: Add demangler support.

Makes the -C, --demangle option visible and implements it (ignoring the
demangle style argument). Adds a new test with sample output.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-addr2line-i-demangle-test.sh
70a504d1e19fe14cf34ab3e7a0179aa421f548e0 19-May-2015 Mark Wielaard <mjw@redhat.com> addr2line: Add -a, --address. Print address before for each entry.

Adds test cases with sample output.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-addr2line-i-test.sh
un-addr2line-test.sh
d76d73f490b1e097e650bb77277ae9ed1efd5b1a 19-May-2015 Mark Wielaard <mjw@redhat.com> addr2line: Always parse addresses as hex numbers.

We would sometimes interpret input addresses as decimal or octal.
That could be confusing and isn't what binutils addr2line does.
Be consistent and always treat input addresses as hex.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-addrname-test.sh
c801acf1cb6ee95044d11ad8ed8ebf879db0444c 04-May-2015 Max Filippov <jcmvbkbc@gmail.com> Replace assert_perror with assert

assert_perror is a GNU extension, it's not provided by uClibc and it's
only used in tests. Replace it with assert.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
hangeLog
acktrace-child.c
acktrace-data.c
acktrace-dwarf.c
acktrace.c
1ab3c2befeedf5bd891cfbe17cfef79c06e5079a 04-May-2015 Anthony G. Basile <blueness@gentoo.org> Link against standalone argp library

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>
hangeLog
akefile.am
e6e80dae42a030f56b6aa0a92514130e78f43d72 01-May-2015 Mark Wielaard <mjw@redhat.com> tests: Split run-stack tests to support missing demangler.

SKIP tests that need a demangler if it is not there.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-stack-d-test.sh
un-stack-demangled-test.sh
un-stack-i-test.sh
224e2e61b25eed8d320a286bbbd12f9ea4a7799e 25-Mar-2015 H.J. Lu <hjl.tools@gmail.com> tests: Add run-strip-test10.sh

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
hangeLog
akefile.am
un-strip-test10.sh
estfile-x32-d.bz2
estfile-x32-debug.bz2
f1bde8d6251082c38b510123eb4137a602ace3da 25-Mar-2015 H.J. Lu <hjl.tools@gmail.com> tests: Add run-strip-test9.sh

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
hangeLog
akefile.am
un-strip-test9.sh
estfile-x32-s.bz2
6de72761723d624bcd148facc811bc774a265f0c 25-Mar-2015 H.J. Lu <hjl.tools@gmail.com> tests: Add run-backtrace-core-x32.sh

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
hangeLog
akefile.am
acktrace.x32.core.bz2
acktrace.x32.exec.bz2
un-backtrace-core-x32.sh
aa19e593d3a5ba53571064ca133597ca9f14f840 25-Mar-2015 H.J. Lu <hjl.tools@gmail.com> tests: Add testfile-x32 to run-addrcfi.sh

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
hangeLog
akefile.am
un-addrcfi.sh
estfile-x32.bz2
8c78ff0d1f6ce1135d60d7224f26be92aedc2306 25-Mar-2015 H.J. Lu <hjl.tools@gmail.com> tests: Add testfile-x32-core to run-allregs.sh

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
hangeLog
un-allregs.sh
5bbf039bb8d3583f83e585b805627e676b2e4e03 25-Mar-2015 H.J. Lu <hjl.tools@gmail.com> tests: Add testfile-x32-core.bz2 to run-readelf-mixed-corenote.sh

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
hangeLog
akefile.am
un-readelf-mixed-corenote.sh
estfile-x32-core.bz2
7f617347794f7d57f69d08f38c00f3f6ad221a56 18-Mar-2015 Petr Machata <pmachata@redhat.com> Publish known-dwarf.h

- 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>
hangeLog
ddrcfi.c
llregs.c
how-die-info.c
arlocs.c
06457daeff7972d08c6b296be92007f0eabb32e4 18-Mar-2015 Petr Machata <pmachata@redhat.com> Add forgotten files to EXTRA_DIST

Signed-off-by: Petr Machata <pmachata@redhat.com>
hangeLog
akefile.am
0a35e3ac65dfd2db4e0ae0f68fdb21493c5fbfa1 13-Mar-2015 Mark Wielaard <mjw@redhat.com> Fix -Wimplicit warnings.
hangeLog
acktrace-dwarf.c
be7ea70f3fc2be7a39dc210a70e92109b5d9ef5d 12-Mar-2015 H.J. Lu <hjl.tools@gmail.com> tests: Use PTRACE_GETREGS/PTRACE_SETREGS to update rip

Use PTRACE_POKEUSER to update rip is unsupported for x32. We should use
PTRACE_GETREGS/PTRACE_SETREGS to update rip.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
hangeLog
acktrace.c
2e09635f3e9245e4ea0a827dbe7e881c56328507 19-Feb-2015 Mark Wielaard <mjw@redhat.com> tests: Use PRId64 for printing loff_t.

loff_t is always 64bits.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
ewdata.c
3d11410c481ead29ac52974d05073057d5ca5264 11-Feb-2015 Josh Stone <jistone@redhat.com> tests: ensure backtrace.c exec_dump sets jmp

With CFLAGS='-Og -g', F21 gcc hits -Werror=maybe-uninitialized on jmp in
the call "prepare_thread (pid2, jmp)". It's fine with -O2/-O0.

The only way this could be unset is if the loop before ran to
completion, and there's already an assert against this case.

This patch initializes jmp anyway to convince gcc it's ok.

Signed-off-by: Josh Stone <jistone@redhat.com>
hangeLog
acktrace.c
b4da85ded5de790aa2cddd6d725970945c97df89 11-Feb-2015 Petr Machata <pmachata@redhat.com> dwarf_ranges: do not request base address attributes if not necessary

- Instead of bailing out at iteration start, we remember the
base-address-selecting attributes were not seen, and then bail out
later if no base address selection entry has been seen.

Signed-off-by: Petr Machata <pmachata@redhat.com>
hangeLog
akefile.am
ebug-ranges-no-lowpc.o.bz2
ebug-ranges-no-lowpc.s
warf-ranges.c
un-dwarf-ranges.sh
710ca87893bef2fa186265a8624a6402509ba1f3 21-Jan-2015 Mark Wielaard <mjw@redhat.com> libelf: elf_strptr should use datalist when data has been added to section.

elf_strptr always used the rawdata when available. But when data has been
added to the section it should find the correct buffer in the datalist.

Adds a large testcase that checks various ways of adding and extracting
strings from a section.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
lfstrtab.c
b543cdd95a0f9dfc33c862585f108a7a19728a10 20-Jan-2015 Mark Wielaard <mjw@redhat.com> libelf: Fix elf_newdata when raw ELF file/image data is available.

When ELF data for a section has been read by elf_rawdata, data_read
and rawdata_base are set, but data_list_rear will not be set until the
data will be converted (by elf_getdata). elf_newdata would overwrite
the existing data in that case. Both elf_getdata and elf_update rely
on the fact that when data_list_rear is set they don't have to look
at the raw data anymore. So make sure we update the data list properly
before adding any new data and raw data is available in elf_newdata.

Add newdata test that calls elf_newdata before and after elf_rawdata
and elf_getdata and checks the new size and contents of the section.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
ewdata.c
058ae7b4d5bdfa0f39312b056ee9cadc4c3ffeb9 20-Jan-2015 Mark Wielaard <mjw@redhat.com> libelf: elf_strptr should fetch the shdr for the section if not yet known.

elf_strptr might be called before the shdrs are read in. In that case it
needs to explicitly call __elf[32|64]_getshdr_rdlock to check the section
type and size. The new strptr testcase triggers this corner case and crashes
before the fix.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-strptr.sh
trptr.c
cc74c21c0de87cc3c7b293234808b3118c4d85db 15-Jan-2015 Mark Wielaard <mjw@redhat.com> tests: Make deleted and vdsosyms testcases work with "restricted ptrace".

Some systems might have "restricted ptrace" that doesn't allow process
inspection of arbitrary processes. Change the deleted testcase to
explicitly allow any other process to inspect it using the PR_SET_PTRACER
prctl set to PR_SET_PTRACER_ANY. Change the vdsosyms testcase to inspect
the process itself which should always be allowed.

Reported-by: Anatol Pomozov <anatol.pomozov@gmail.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
eleted.c
dsosyms.c
ddbf23a4594b5a6f1b387b15d42312a203075d80 24-Dec-2014 Mark Wielaard <mjw@redhat.com> libdw: Search for the last matching address with dwarf_getsrc_die.

In commit 7d9b5a dwfl_module_getsrc was changed so that it returns the last
line record <= addr, rather than returning immediately on a match. This
changes dwarf_getsrc_die to do the same. And it adds a new test that checks
this by comparing against the same results from eu-addr2line (which uses
dwfl_module_getsrc) using dwarf_addrdie and dwarf_getsrc_die instead.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
akefile.am
etsrc_die.c
un-getsrc-die.sh
f8198f2322b93dea4efbcf491b073a89e8aab1bf 27-Dec-2014 Mark Wielaard <mjw@redhat.com> libdwfl: dwfl_module_getsrc should never match end_sequence line.

The line with end_sequence set has an address outside the current line
sequence. An end_sequence line has no other useful information except
marking the address as out of range.

Two tests, addrscopes and funcscopes, depended on matching the end_sequence
line. But that was because they included the high_pc address in the scope.
However the high_pc attributes has as address the first location past the
range associated with a given DIE. Adjust the tests to use high_pc - 1 as
end of the scope.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
ddrscopes.c
uncscopes.c
un-addrscopes.sh
un-funcscopes.sh
b4b2de9f1f1fb694b77371a61f808a1641bbafea 07-Jan-2015 Mark Wielaard <mjw@redhat.com> libdw: Robustify eh_frame_hdr and encoded-values reading.

Sanity check and keep track of binary_search_table data buffer length.
Add bounds check to encoded value reading. Also fix a bug when reading
the eh_frame header data from an other endian ELF image. Add a testcase
that would fail the new sanity checks because of the endian bug.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-addrcfi.sh
47efc3bef9f39a0494f9957b2e5f7da33482865b 14-Jan-2015 Mark Wielaard <mjw@redhat.com> tests: Add testfile-debug-types test case.

Test for regression fixed in commit 7c713822:
"libdw: fix offset for sig8 lookup in dwarf_formref_die"

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-typeiter.sh
estfile-debug-types.bz2
ypeiter2.c
8fb260f7137a231caf250dbe4ba64fcebd33b68d 26-Dec-2014 Mark Wielaard <mjw@redhat.com> nm: Handle/Skip /SYM64/ index entries.

Add a testcase to show eu-nm now handles archives with 64-bit symbol table.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-test-archive64.sh
3943a3893619466d0927495485bca8a9b96a3dc9 19-Dec-2014 Mark Wielaard <mjw@redhat.com> tests: Don't match libfunc symbol on ppc64 in run-deleted.sh testcase.

For PPC64 we need access to the OPD table which we get through the shdrs
but for the deleted-lib we only have phdrs. So we don't have the name of
the function. But since we should find the EH_FRAME through phdrs just
fine, we can unwind into main. Skip the libfunc name check for now till
we find a nice way to enable the lookup without opd:
https://bugzilla.redhat.com/show_bug.cgi?id=1176238

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-deleted.sh
7152afac3aebfecce605c49777bc841e01513a6c 19-Dec-2014 Mark Wielaard <mjw@redhat.com> tests: vdsosyms should not fail for architectures that don't have a vdso.

Not finding a vdso is not fatal. But there should be no errors trying.
And if the vdso is found, then getting the symbol table shouldn't fail.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
dsosyms.c
cdfc853b401f2897d470638d32fcc51520c13733 19-Dec-2014 Mark Wielaard <mjw@redhat.com> tests: run-deleted.sh should SKIP if arch doesn't support unwinding.

Also relax the special ARM needs DWARF check a little to account for eu-stack
error output.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
acktrace-subr.sh
un-deleted.sh
e80d32481bac27766c00c27cc9f7628a56dc7be9 18-Dec-2014 Mark Wielaard <mjw@redhat.com> tests: Add testfile-macros-0xff.bz2 to EXTRA_DIST.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
f3111d50756f84e99fbdb6ddfa37d1cd7163fd10 12-Dec-2014 Mark Wielaard <mjw@redhat.com> tests: Add an explicit -fasynchronous-unwind-tables for deleted-lib.so.

Some systems don't add a PT_GNU_EH_FRAME segment by default, but the
deleted test depends on it so that it can get at the .eh_frame_hdr table
through the phdrs from the remote memory ELF image. Request one explicitly
with -fasynchronous-unwind-tables.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
080fa4e368cb8d0e7d06cf5c47ad4efe67e87684 12-Dec-2014 Josh Stone <jistone@redhat.com> tests: Test addr2line -i with lexical blocks present

This test is for the fix in commit aecdf2670c02, but it was hampered by
unlucky sorting of line records. With the new stable sort, the test now
gets the desired line numbers.

Signed-off-by: Josh Stone <jistone@redhat.com>
hangeLog
akefile.am
un-addr2line-i-lex-test.sh
estfile-lex-inlines.bz2
2098b3d315b612d12b1425639707552e06131cde 10-Dec-2014 Josh Stone <jistone@redhat.com> addr2line: Always prefer linkage_name over plain names

Signed-off-by: Josh Stone <jistone@redhat.com>
hangeLog
un-addr2line-i-test.sh
edb079a596b25379828836e501d003f20afdb879 02-Dec-2014 Petr Machata <pmachata@redhat.com> Change calling convention of dwarf_getmacros to allow opcode 0xff

We now require callers to pass DWARF_GETMACROS_START to start the
iteration. 0 is still accepted, but signals to libdw that the
iteration request comes from an old-style caller, and that opcode 0xff
should be rejected when iterating .debug_macro, to avoid confusion.

Signed-off-by: Petr Machata <pmachata@redhat.com>
hangeLog
warf-getmacros.c
un-dwarf-getmacros.sh
estfile-macros-0xff.bz2
estfile-macros-0xff.s
44662163432677ce2c6c1888ad42c72fb2ebdb63 27-Nov-2014 Mark Wielaard <mjw@redhat.com> tests: vdsosyms call dwfl_linux_proc_attach.

Older kernels won't let us get at the vdso otherwise.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
dsosyms.c
9644aaff5f2872061b1a09afac3f2d0d4ad9a1c2 21-Nov-2014 Mark Wielaard <mjw@redhat.com> readelf: print_attributes (-A) robustify and handle non-gnu attributes.

print_attributes wasn't robust against empty or broken attribute sections.
It also only handled GNU attributes. But the arm backend contains some
none-GNU attributes. The difference is in how to handle the tag arguments.

Adds a new test run-readelf-A.sh for both gnu (ppc32) and non-gnu (arm)
attributes.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-readelf-A.sh
estfileppc32attrs.o.bz2
5691f86722e9c24169622e64e8e8f5e6a24ad3b0 10-Nov-2014 Mark Wielaard <mjw@redhat.com> libdwfl: find_dynsym don't assume dynamic linker has adjusted DYNAMIC entries.

commit 037505 "Fix resolving ELF symbols for live PIDs with deleted files"
changed find_dynsym to assume the PT_DYNAMIC entries had been adjusted by
the dynamic linker. That is often a correct assumption when the ELF image
comes from remote memory. But we cannot rely on that. In the case of the
vdso image the DYNAMIC segment has not been adjusted for example.

There is no good way to determine whether the DYNAMIC segment has or
hasn't been adjusted already to the load address by the dynamic linker.
So we just try twice. Once without and if the fails again with assuming
adjustments being applied.

Includes a new vdsosyms testcase that fails on i686 before and succeeds
after the fix.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
dsosyms.c
0a1e81b321d45c5a6d49c5c69a48f9a2dfd9a551 17-Oct-2014 Petr Machata <pmachata@redhat.com> Test cases for .debug_macro support

Signed-off-by: Petr Machata <pmachata@redhat.com>
hangeLog
warf-getmacros.c
un-dwarf-getmacros.sh
3a36e8a26c32103ec2f8edda8bf212d6883970a2 06-Oct-2014 Mark Wielaard <mjw@redhat.com> libdw: Add dwarf_peel_type. Use it in dwarf_aggregate_size.

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>
hangeLog
akefile.am
un-aggregate-size.sh
estfile-sizes3.o.bz2
281ebd7d5ac10c094b73c6ab812414cd7b891e60 02-Oct-2014 Mark Wielaard <mjw@redhat.com> tests: run-deleted.sh unset VALGRIND_CMD before running deleted.

We don't want to run the deleted test process under valgrind then
eu-stack will see the valgrind process backtrace.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-deleted.sh
b50014f56418d9be8eb3d5a86c693a4fda83dc09 02-Oct-2014 Mark Wielaard <mjw@redhat.com> libdw: dwarf_aggregate_size return CU address_size for sizeless pointer/refs.

Tested-by: Conrad Meyer <cse.cem@gmail.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
ggregate_size.c
un-aggregate-size.sh
estfile-sizes1.o.bz2
estfile-sizes2.o.bz2
6d48bbf406851b56920582b8ce29db13ad4f4e2e 26-Sep-2014 Jan Kratochvil <jan.kratochvil@redhat.com> Support note NT_FILE for locating files.

Martin Milata:
------------------------------------------------------------------------------
RFE: dwfl_core_file_report: use NT_FILE core note if the link_map chain is broken
https://bugzilla.redhat.com/show_bug.cgi?id=1129777

The dwfl_core_file_report function follows dynamic linker's link_map chain in
order to determine the shared libraries used by the executable. As this data
structure is located in writable memory it can be overwritten by garbage, which
is sometimes the case.
https://github.com/abrt/satyr/issues/127#issuecomment-46957546

Since version 3.7 (commit 2aa362c49), Linux kernel adds NT_FILE note to core
files which contains the files mapped by the process, including shared
libraries.
------------------------------------------------------------------------------

dwfl_core_file_report now tries to fall back on NT_FILE if the link_map chain
is broken.

elfutils would already find the appropriate binary file from
/usr/lib/debug/.build-id/ symbolic links. But those symbolic links do not have
to be present on the system while NT_FILE still points to the correct binaries.

Filenames from the note NT_FILE are used only if link_map filenames failed to
locate matching binaries.

tests/test-core.core.bz2 had to have its NT_FILE disabled as run-unstrip-n.sh
otherwise FAILs:
FAIL: 0x7f67f2aaf000+0x202000 - . - /home/jkratoch/redhat/elfutils-libregr/test-core-lib.so
PASS: 0x7f67f2aaf000+0x202000 - . - test-core-lib.so
As test-core-lib.so is found in link_map but it is not present on the disk
elfutils now chooses the more reliable filename from NT_FILE (although that
filename is also not found on the disk). Updating the expected text would be
also sufficient.

libdwfl/
2014-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>

Support NT_FILE for locating files.
* core-file.c (dwfl_core_file_report): New variables note_file and
note_file_size, set them and pass them to dwfl_segment_report_module.
* dwfl_segment_report_module.c: Include common.h and fcntl.h.
(buf_has_data, buf_read_ulong, handle_file_note): New functions.
(invalid_elf): New function from code of dwfl_segment_report_module.
(dwfl_segment_report_module): Add parameters note_file and
note_file_size. New variables elf and fd, clean them up in finish.
Move some code to invalid_elf. Call handle_file_note, if it found
a name verify the file by invalid_elf. Protect elf and fd against
cleanup by finish if we found the file for new Dwfl_Module.
* libdwflP.h (dwfl_segment_report_module): Add parameters note_file and
note_file_size.

tests/
2014-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>

Support NT_FILE for locating files.
* Makefile.am (TESTS): Add run-linkmap-cut.sh.
(EXTRA_DIST): Add run-linkmap-cut.sh, linkmap-cut-lib.so.bz2,
linkmap-cut.bz2 and linkmap-cut.core.bz2 .
* linkmap-cut-lib.so.bz2: New file.
* linkmap-cut.bz2: New file.
* linkmap-cut.core.bz2: New file.
* run-linkmap-cut.sh: New file.
* run-unstrip-n.sh: Update its expected output.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
akefile.am
inkmap-cut-lib.so.bz2
inkmap-cut.bz2
inkmap-cut.core.bz2
un-linkmap-cut.sh
un-unstrip-n.sh
0375056af003d7676fb852e09782a985f3a52b1a 17-Aug-2014 Jan Kratochvil <jan.kratochvil@redhat.com> Fix resolving ELF symbols for live PIDs with deleted files

For deleted shared library files the offsets to the symbol table were
calculated wrongly from the phdrs because the main_bias wasn't taken into
account.

Formerly shared libraries did not get resolved properly:
#2 0x00007fc4d86c56d6
#3 0x0000000000400938 main

Fixed elfutils produce:
#2 0x00007f61094876d6 libfunc
#3 0x0000000000400938 main

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
akefile.am
eleted-lib.c
eleted.c
un-deleted.sh
41362da47b7c570738c3fba55dae6fb42dd63b85 15-Jun-2014 Mark Wielaard <mjw@redhat.com> tests/backtrace.c (frame_callback): Error on seeing more than 16 frames.

Don't fill up the test logs with obviously bogus frames.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
acktrace.c
1986c175c1b26f9e5e94e97d274095d45d7ab2ce 14-Jun-2014 Mark Wielaard <mjw@redhat.com> tests: backtrace.c accept __libc_do_syscall as first frame symname.

On some architectures (Debian armhl) system calls go through
__libc_do_syscall instead of __kernel_vsyscall. Accept either of
these symbol names for the first backtrace frame.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
acktrace.c
cb5ac6eed994720e76ec5d00c9c03425ec3afaf7 14-Jun-2014 Mark Wielaard <mjw@redhat.com> tests: backtrace-subr.sh add check_native_unsupported.

The special arm check in check_unsupported should only trigger for native
tests, otherwise on arm various backtrace tests would be skipped that
should work just fine.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
acktrace-subr.sh
un-backtrace-dwarf.sh
14beac3b6f22b8d7a054980f74c4f8d33b969fc4 11-Jun-2014 Mark Wielaard <mjw@redhat.com> libdwfl: Record dwfl_attach_state error and return it on failure.

When dwfl_attach_state fails functions that need the process state should
return the error that caused the attach to fail. Use this in the backtrace
test to signal any attach failure. This makes sure that architectures that
don't provide unwinder support get properly detected (and the tests SKIPs)
Also don't assert when trying to attach a non-core ELF file, but return an
error to indicate failure.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
acktrace.c
85482fc073442a056e0e3663eb454fa76d883271 18-May-2014 Mark Wielaard <mjw@redhat.com> tests: Don't use static functions in testfile-backtrace-demangle.

Compilers and demanglers might treat local/static functions different
between versions. In particular g++ 4.1.2 and libstdc++ mangle and
demangle the static void cxxfunc (int i) function as _Z7cxxfunci.
While g++ 4.8.2 and libstdc++ mangle and demangle it as _ZL7cxxfunci.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
estfile-backtrace-demangle.bz2
estfile-backtrace-demangle.cc
estfile-backtrace-demangle.core.bz2
bb096d0412f2cb71e7cac628fc7e251a47c1a56e 03-May-2014 Mark Wielaard <mjw@redhat.com> Remove --enable-dwz. dwz alt debug is no longer experimental.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
df85bf99021119fcbb2ced66dd69f1cceafb180c 01-May-2014 Mark Wielaard <mjw@redhat.com> libdwfl: Move dwz alt multi file searching to find_debuginfo callback.

Don't hard code the Dwarf dwz alt multi file search but allow the user
to override it through the standard Dwfl_Callbacks. Also move ownership
completely to the user of dwarf_setalt by removing free_alt from Dwarf
and adding alt, fd and elf fields to Dwfl_Module. Add a relative .dwz
file test case.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-readelf-dwz-multi.sh
d81d32d2a4f92355e4c677b578147dfe819251b9 30-Apr-2014 Mark Wielaard <mjw@redhat.com> libdwelf: Add dwelf_elf_gnu_build_id.

Move internal function __libdwfl_find_build_id to libdwelf and use it to
add a public dwelf_elf_gnu_build_id function to extract the NT_GNU_BUILD_ID
from an ELF file using either the shdrs or phdrs. Adjust internal callers
and add a testcase.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
uildid.c
un-buildid.sh
estfile42_noshdrs.bz2
2248165d1204035e67245a4bb8d21cf90f8c7d71 15-Apr-2014 Florian Weimer <fweimer@redhat.com> tests/allfcts.c: Install alternate debug information

This change also adds more error checking and reporting.

Signed-off-by: Florian Weimer <fweimer@redhat.com>
hangeLog
llfcts.c
4813dbbcb81a0f5ebbc9756fe6f4ed62d298b011 24-Apr-2014 Florian Weimer <fweimer@redhat.com> libdwelf: Add dwelf_dwarf_gnu_debugaltlink

Signed-off-by: Florian Weimer <fweimer@redhat.com>
hangeLog
akefile.am
ebugaltlink.c
un-debugaltlink.sh
9380297e130e6ccc829c8d56d701fb539b27bb0f 11-Apr-2014 Mark Wielaard <mjw@redhat.com> libdwelf: New DWARF ELF Low-level Functions. Add dwelf_elf_gnu_debuglink.

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>
hangeLog
akefile.am
ebuglink.c
un-debuglink.sh
fe4b5fd34e25117026f6f96e392009f6f42e3dcc 23-Apr-2014 Mark Wielaard <mjw@redhat.com> tests: run-nm-self.sh use test = not == for string comparisons.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-nm-self.sh
02cefdaa6429e620d6457fdb3ad9934f194c5a93 22-Apr-2014 Kurt Roeckx <kurt@roeckx.be> Unwinding is only supported on Linux

Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
hangeLog
acktrace-child.c
acktrace-data.c
acktrace-dwarf.c
acktrace-subr.sh
acktrace.c
3232479483cad695d1872b879128a23da3953a7d 13-Apr-2014 Mark Wielaard <mjw@redhat.com> Remove mudflap build option.

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>
hangeLog
akefile.am
onfigure.ac
f7cdc74ed34adc539186385342d99b357c3dbb6b 09-Apr-2014 Mark Wielaard <mjw@redhat.com> readelf: Read the decompressed data when processing .zdebug DWARF sections.

readelf uses libdw to open the Dwarf and read some of the DWARF data.
But it also uses its own parsers to display some of the low-level
unprocessed data. If the DWARF debug section was zlib compressed it
should actually use the decompressed section data from libdw instead
of the raw section data.

Includes a testcase for those sections that couldn't be properly
displayed when compressed before.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-readelf-zdebug.sh
estfile-debug.bz2
estfile-zdebug.bz2
110c273d35515ebcfba0c88ad70dbcd5548b0d3c 10-Apr-2014 Mark Wielaard <mjw@redhat.com> readelf: convert up to a target long in buf_read_ulong.

Add a i686 corefile test.

Reported-by: Markus Engel <m_engel@cs.uni-kl.de>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-readelf-mixed-corenote.sh
estfile_i686_core.bz2
66637fa21044ac0058b25522f473669e73de328b 09-Apr-2014 Mark Wielaard <mjw@redhat.com> backends: Add aarch64 native and core unwind support.

Add aarch64 backend functions frame_nregs and set_initial_registers_tid.
Mark pc_register in aarch64 prstatus_regs as pc_register.
Add backtrace-core-aarch64 testcase.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
acktrace.aarch64.core.bz2
acktrace.aarch64.exec.bz2
un-backtrace-core-aarch64.sh
51fff30ac9d9eb245e7df8eb5c07658d04d6ad45 12-Mar-2014 Josh Stone <jistone@redhat.com> libdwfl: test dwflsyms on ET_EXEC with minisymtab

This adds testfilebaxmin, an ET_EXEC binary with .gnu_debugdata that
doesn't match the load address of the main file. A previous bug made
this trigger a kernel heuristic that forces the module to act like
ET_DYN, which makes things like dwfl_module_relocate_address report
relative addresses rather than proper absolute addresses.

For example, before the fix dwflsyms would print:

deregister_tm_clones (0) 0x400430, rel: 0x430 (.text)

Now it properly prints:

deregister_tm_clones (0) 0x400430, rel: 0x400430 (.text)

These new test additions confirm that it's fixed.

Signed-off-by: Josh Stone <jistone@redhat.com>
hangeLog
akefile.am
un-dwflsyms.sh
un-readelf-s.sh
estfilebaxmin.bz2
225dddfda38c1cd90e2daa3e72da2a9d01013336 26-Jan-2014 Mark Wielaard <mjw@redhat.com> backends: Add arm frame_nregs and set_initial_registers_tid.

This allows CFI unwinding for ARM. It relies on having .debug_frame around
which is always the case in our testsuite. All native backtrace tests PASS
on arm if debuginfo (for glibc) is installed on the system. Otherwise the
tests SKIP.

For non-debug unwinding ARM uses EXIDX tables, not .eh_frames, which
would have to be translated to CFI to do unwinding without .debug_frame
available.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
acktrace-subr.sh
a02d90ae12c5386b85332536b516da435150dd88 25-Jan-2014 Mark Wielaard <mjw@redhat.com> backends: arm_cfi SP (r13) is restored from CFA by default.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-addrcfi.sh
f48eb6b15fee66e54b488d71738979fc608f25ee 23-Jan-2014 Mark Wielaard <mjw@redhat.com> Use -Wformat=2 by default for all files.

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>
hangeLog
akefile.am
13968d9aa9990d53999b14494ed55c2d68d4ead5 21-Jan-2014 Mark Wielaard <mjw@redhat.com> stack: Add -i, --inlines. Show inlined call frames using DWARF debuginfo.

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>
hangeLog
akefile.am
un-stack-i-test.sh
531a30acbe175da1f71768e2ffb585c4d45e640b 20-Jan-2014 Mark Wielaard <mjw@redhat.com> stack: Add -d, --debugname. Lookup DWARF debuginfo name for frame address.

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>
hangeLog
akefile.am
un-stack-d-test.sh
estfiledwarfinlines.bz2
estfiledwarfinlines.core.bz2
c80375d5d61f44795f9650bdde08dab4c064c2b5 16-Jan-2014 Mark Wielaard <mjw@redhat.com> tests: Reduce the total number of self-test files and add ET_REL files.

Some self tests would run for a really long time (especially under valgrind)
because we included all libebl backends in the list (there are 12 backends).
Now only test two explicitly. Also there were no ET_REL files in the
self test file list. So add two ET_REL files. The total number of self test
files is now 12.

run-nm-self.sh would run 4 * 3 * 3 * 22 = 792 tests (on all self test files).
Reduce the number of different files to test to 3 (one ET_EXEC, one ET_DYN
and one ET_REL file). Reducing the number of test runs to 99.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-nm-self.sh
est-subr.sh
d7cffa77ae9eb28a682e436251ab79e86b4e4f64 16-Jan-2014 Mark Wielaard <mjw@redhat.com> tests: run-backtrace-demangle.sh check exitcode and max number of frames.

There can be more than 3 frames, but depending on the system/installed
glibc we might not be able to unwind fully till the end.
cxxfunc -> f -> main
Expect to see the top two and a warning that there are more frames
(exit code 1)

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-backtrace-demangle.sh
435808a681cc375f0907f2066c4cc062173a6c7e 18-Jan-2014 Jan Kratochvil <jan.kratochvil@redhat.com> Fix false FAILs on testsuite with ulimit -c unlimited.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
acktrace-child.c
7c6e785e6eca774080a64801f950bd61785c469e 15-Jan-2014 Jan Kratochvil <jan.kratochvil@redhat.com> Fix corruption of non-C++ symbols by the demangler.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
akefile.am
un-backtrace-demangle.sh
estfile-backtrace-demangle.bz2
estfile-backtrace-demangle.cc
estfile-backtrace-demangle.core.bz2
e922ec4e3bcd7c164a9ce424accac4394e7d5afd 07-Jan-2014 Matthias Klose <doko@ubuntu.com> tests: backtrace-subr.sh (check_native_core) should check core file name.

Needed when /proc/sys/kernel/core_uses_pid is set to 0. Try to rename
the core file, and if it does still fail, skip the test.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
acktrace-subr.sh
70c3a53baa06b6cdee6e92bd673c1cf977066bc1 04-Jan-2014 Mark Wielaard <mjw@redhat.com> tests: Don't use ptrace detach stopped trick. Raise can return.

On older kernels the ptrace detach stop trick doesn't work reliably.
Just keep the child processes attached and stopped during the tests,
dwfl_linux_proc_attach will handle that fine now. Also on older kernels
raise would sometimes return anyway and cause a spurious assert. Just
ignore it.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
acktrace-data.c
acktrace-dwarf.c
acktrace.c
1051a0c8ad8b69725384de20647a982b283701f0 04-Jan-2014 Mark Wielaard <mjw@redhat.com> tests: backtrace-subr.sh skip check_native_core test if core ulimit fails.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
acktrace-subr.sh
4f1c96d8809a2ccbfd7d54bbca9a3a0c1e5f2796 04-Jan-2014 Mark Wielaard <mjw@redhat.com> tests: Simplify backtrace-dwarf (gcc cleanup-13.c) testcase.

The testcase originally came from GCC which was testing the runtime
unwinder using _Unwind_ForcedUnwind. Since we are using our own external
unwinder we can just abort at the right place and unwind from there.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
leanup-13.c
b92af19f2110999579a65a5dceab532c97979559 03-Jan-2014 Mark Wielaard <mjw@redhat.com> backends: Add aarch64 abi_cfi.

Setup initial CIE values for aarch64 for use with dwarf_frame functions.
Register info prefix should be the empty string (not NULL) when not used.
Add an EM_AARCH64 testcase to tests/run-addrcfi.sh to check both issues.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-addrcfi.sh
estfileaarch64.bz2
19108019192ab273c53ae324be448d29dac806ca 30-Dec-2013 Mark Wielaard <mjw@redhat.com> libdwfl: Add dwfl_core_file_attach and dwfl_linux_proc_attach.

Rewrite __libdwfl_attach_state_for_pid and __libdwfl_attach_state_for_core
as public functions and don't call them from dwfl_linux_proc_report and
dwfl_core_file_report anymore. This lets the user attach state explicitly
independ from how the dwfl modules have been reported. Since attaching
state is an explicit action now the error can be returned directly and we
don't need to keep track of process_attach_error. dwfl_linux_proc_attach
lets the user can tell libdwfl whether caller takes care of ptrace
attaching and stopping the threads under inspection, or whether the
callback needs to take care of that and detaching again.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
acktrace-dwarf.c
acktrace.c
e962ec3bcbe8eccdcded36aaafee7bec41fa1bc4 20-Dec-2013 Mark Wielaard <mjw@redhat.com> libdwfl: Add dwfl_getthread_frames.

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>
acktrace-data.c
b6ef1ce4695cea00d097c7fcac8d0014ff01a5bf 21-Dec-2013 Mark Wielaard <mjw@redhat.com> tests: backtrace.c only check we caught the last instruction on x86_64.

On some architectures gcc might introduce some "padding instructions"
at the end of the function (like on ppc64). So only assert we are at the
last instruction of backtracegen if on x86_64 native. In theory the assert
could even fail on that architectures, but in practice it doesn't and it
is a nice test to have.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
acktrace.c
159ac52b061c60947a943c102298cd692223274f 18-Dec-2013 Mark Wielaard <mjw@redhat.com> libdwfl: Introduce dwfl_module_getsym_info and dwfl_module_addrinfo.

Some arches like ppc64 use function descriptor values instead of function
addresses causing matching of names and addresses to fail when using
dwfl_module_getsym or dwfl_module_addrsym.

Add ebl hook to resolve any function descriptor values found in non-ET_REL
modules.

The new function dwfl_module_getsym_info doesn't adjust the symbol value
in any way, but returns the adjusted and/or resolved address associated
with the symbol separately. The new function dwfl_module_addrinfo resolves
against both the address associated with the symbol (which could be the
function entry address) value and the adjusted st_value. So that it is
easy to resolve and match either function descriptors and/or function
entry addresses.

Since these new functions also return more information they replace the
dwfl_module_getsym_elf and dwfl_module_addrsym_elf functions that never
made it into a released elfutils version.

addr2line and readelf now use the new functions when looking up functions
names. addr2line will now also display the section the address was found
in when given -x.

Extra testcases were added for both addr2line and the dwflsyms testscase.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
wflsyms.c
un-addrname-test.sh
un-dwflsyms.sh
estfile66.bz2
estfile66.core.bz2
estfilebazdbgppc64.bz2
estfilebazdbgppc64.debug.bz2
estfilebazdbgppc64_pl.bz2
estfilebazdbgppc64_plr.bz2
estfilebazdynppc64.bz2
estfilebazmdbppc64.bz2
estfilebazminppc64.bz2
estfilebazminppc64_pl.bz2
estfilebazminppc64_plr.bz2
estfilebaztabppc64.bz2
c6a41483f2986d5542c554981348f75b815ef9b1 17-Dec-2013 Jan Kratochvil <jan.kratochvil@redhat.com> unwinder: s390 and s390x

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
akefile.am
acktrace.s390.core.bz2
acktrace.s390.exec.bz2
acktrace.s390x.core.bz2
acktrace.s390x.exec.bz2
un-backtrace-core-s390.sh
un-backtrace-core-s390x.sh
b3c810fb04a63813e0d0af28fd45fbd22c05df2e 17-Dec-2013 Jan Kratochvil <jan.kratochvil@redhat.com> Remove tests/backtrace-dwarf.c unused code.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
acktrace-dwarf.c
5cbf42aaf47195e2c41171786371d55b253a7667 15-Dec-2013 Jan Kratochvil <jan.kratochvil@redhat.com> unwinder: ppc and ppc64

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
akefile.am
acktrace.ppc.core.bz2
acktrace.ppc.exec.bz2
un-backtrace-core-ppc.sh
63572f42b04e1c3b752b113810ec642121c8090e 13-Dec-2013 Mark Wielaard <mjw@redhat.com> tests: Add backtrace_child_biarch_SOURCES to make distcheck happy.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
7fc4929958ca78bd7b268014e9029d5ae1608822 13-Dec-2013 Mark Wielaard <mjw@redhat.com> tests: Disable valgrind for core dumping and for self-introspecting tests.

The only tests that fork and exec are those that will then try to ptrace
attach the child for unwind testing. That won't work when the child is
also running under valgrind. So remove --trace-children=yes. Also disable
valgrind while dumping a core or for tests that try to inspect their own
state. They will get confused otherwise finding pieces of valgrind in
their maps.

Note we still seem to hit the following valgrind bug because the way we
map and unmap some shared libraries gets valgrind confused:
https://bugs.kde.org/show_bug.cgi?id=327427

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
acktrace-subr.sh
un-backtrace-data.sh
un-backtrace-dwarf.sh
3951f2ec0aaca021c77a2c7a464dcf43433261c3 09-Dec-2013 Mark Wielaard <mjw@redhat.com> libdw: Handle empty location expression for (indirect) DIE locations.

When dwarf_getlocation_implicit_pointer and dwarf_getlocation_attr
refer to a DIE that doesn't contain a DW_AT_location then don't generate
an error, but return an empty location expression to signal the actual
value pointed to is not available. This isn't invalid DWARF. Also make
sure that __libdw_intern_expression handles empty location expressions.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
arlocs.c
f88863fbb3a7380ad8c7ebcdf6dceb023f3ccf75 05-Dec-2013 Jan Kratochvil <jan.kratochvil@redhat.com> Fix test FAIL with -O2

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
acktrace-child.c
813aae0e94c2e694e1cad25d4e268dfe60397196 05-Dec-2013 Mark Wielaard <mjw@redhat.com> tests: SKIP backtrace-data and backtrace-dwarf on unsupported arches.

run-backtrace-data.sh did check stderr whether the arch was unsupported
but the test didn't print that message yet. backtrace-dwarf did print
the message but was missing a check_unsupported test. Also add an explicit
check_main test for backtrace-dwarf.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
acktrace-data.c
un-backtrace-dwarf.sh
1bfab193f062df462b2dbc4bb56299a5194fae2d 04-Dec-2013 Mark Wielaard <mjw@redhat.com> tests: automake 1.13 compatibility fix.

tests/Makefile.am:65: warning: deprecated feature: target
'backtrace-child-biarch' overrides 'backtrace-child-biarch$(EXEEXT)'
tests/Makefile.am:65: change your target to read
'backtrace-child-biarch$(EXEEXT)'

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
8ae9bc9d315be6ecbb97dd9754b9d8424b5a70f0 02-Dec-2013 Jan Kratochvil <jan.kratochvil@redhat.com> Tests for unwinder of x86*.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
akefile.am
acktrace-child.c
acktrace-data.c
acktrace-dwarf.c
acktrace-subr.sh
acktrace.c
acktrace.i386.core.bz2
acktrace.i386.exec.bz2
acktrace.x86_64.core.bz2
acktrace.x86_64.exec.bz2
leanup-13.c
un-backtrace-core-i386.sh
un-backtrace-core-x86_64.sh
un-backtrace-data.sh
un-backtrace-dwarf.sh
un-backtrace-native-biarch.sh
un-backtrace-native-core-biarch.sh
un-backtrace-native-core.sh
un-backtrace-native.sh
819c349f6339512d6961a6172c539fdf2c2f1328 27-Nov-2013 Mark Wielaard <mjw@redhat.com> libdwfl: Add dwfl_module_addrsym_elf and dwfl_module_getsym_elf.

Introduce two new functions that also return the elf associated with a
symbol to make symbol section indexing work for non-special sections.
Simplify code by removing dwfl_file where appropriate and just track Elf
directly. Document limitations of shndx with existing dwfl_module_addrsym
and dwfl_module_getsym. Extend dwflsyms testcase to check some more symbol
and section (index) properties.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
wflsyms.c
un-dwflsyms.sh
0d5a867cccf7dad6d7947bead3f45417cc352103 26-Nov-2013 Mark Wielaard <mjw@redhat.com> tests: Makefile.am (EXTRA_DIST): Add run-funcretval.sh.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
98c8a7395b4e5e7bed233397148b15c1f8c66490 26-Nov-2013 Petr Machata <pmachata@redhat.com> Support AArch64 architecture

Signed-off-by: Petr Machata <pmachata@redhat.com>
hangeLog
akefile.am
uncretval_test.c
uncretval_test_aarch64.bz2
ello_aarch64.ko.bz2
un-allregs.sh
un-funcretval.sh
un-readelf-mixed-corenote.sh
un-strip-reloc.sh
estfile_aarch64_core.bz2
db35c87a85aa651b8ea3ed19689c53cefc28e313 18-Nov-2013 Josh Stone <jistone@redhat.com> libdwfl: Fix and test aux_sym address_sync with relocated ELF

The aux_sym address_sync already worked with a full prelink, which has
.gnu.prelink_undo, but it failed on plain relocations with prelink -r.

Now it uses the difference in ehdr.e_entry as a first offset guess, and
the tests confirm this seems to work fine.

Signed-off-by: Josh Stone <jistone@redhat.com>
hangeLog
akefile.am
un-dwflsyms.sh
estfilebazdbg_plr.bz2
estfilebazmin_plr.bz2
68ce4fc85bbf95441e96fedd76c8bd78f76d8da2 16-Nov-2013 Mark Wielaard <mjw@redhat.com> tests: Fix broken dwflsyms tests, extend test and add prelink tests.

The two test files that contains minisymtab tables and the expected test
output were wrongly generated. Also prelink tests were missing to check
that a prelinked main ELF file with separate debug or minisyms generated
correctly adjusted symbol values. The dwflsyms test was also extended to
check print and check the result of dwfl_module_relocate_address.

Reported-by: Josh Stone <jistone@redhat.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
wflsyms.c
un-dwflsyms.sh
un-readelf-s.sh
estfilebazdbg_pl.bz2
estfilebazmdb.bz2
estfilebazmin.bz2
estfilebazmin_pl.bz2
a45c8043358151085633b15ea615f31f3bd680f7 01-Nov-2013 Michael Forney <mforney@mforney.org> Check for prefixed ar, readelf, and nm

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>
hangeLog
akefile.am
un-arsymtest.sh
d8c75df969fff193d143789cba03038db8da5a2c 05-Nov-2013 Mark Wielaard <mjw@redhat.com> tests: allfcts.c (main): Correct dwarf_getfuncs return value check.

The return value of dwarf_getfuncs is a ptrdiff_t that is zero on success,
or non-zero (an offset to continue the search) when the callback returned
DWARF_CB_ABORT or on error. When an error occurs dwarf_errno is set.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
llfcts.c
e6a9bb8c63adaeaceafc50301b085121c962b631 10-Oct-2013 Mark Wielaard <mjw@redhat.com> libdw: Handle dwz multi files correctly in dwarf_getfuncs.

Don't use DIE offsets, but use their addresses to make sure they are unique.
Include test cases where main and alt file have subprograms at same offsets.

Reported-by: Josh Stone <jistone@redhat.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-allfcts-multi.sh
est-offset-loop.alt.bz2
est-offset-loop.bz2
d182974079c7205973ae7885b95216a5b83b6f82 15-Oct-2013 Mark Wielaard <mjw@redhat.com> libdwfl: Don't report and abort on non-file mappings in maps.

proc_maps_report, used for -p or -M, could report modules with names
that were not absolute file names (and not the special vdso marker).
dwfl_linux_proc_find_elf would abort on such names. This isn't a very
nice thing to do in a library. Make sure only real (absolute) file
mappings are reported and don't abort when unexpected file names are
found, just report failure.

Test case with some examples as found in Linux /proc/PID/maps added.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-unstrip-M.sh
3dec3e110bb2a2453156868e1221dc8192399e3e 06-Oct-2013 Mark Wielaard <mjw@redhat.com> backends: ppc_abi_cfi reg1 use DW_CFA_val_offset not DW_CFA_val_expression.

Register rules using expressions are stored using an offset from the
start of the .eh_frame or .debug_frame ELF section data. Since abi_cfi
rules aren't stored in those ELF sections they should use neither
DW_CFA_expression nor DW_CFA_val_expression. The only backend that used
DW_CFA_val_expression was ppc_cfi.c. It was easier to express the same
rule using DW_CFA_val_offset than to change the code to handle register
rules using expressions. On most architectures this did work by accident.
See the definition of struct dwarf_frame_register value in libdw/cfi.h to
see why. But on ia64 the abi_cfi data and actual frame data were placed
too far apart and caused a crash in tests/run-addrcfi.sh for ppc32.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-addrcfi.sh
5dbbc5e32cc1fb3a7cf33e52e0bfc6f47097f3fe 03-Oct-2013 Josh Stone <jistone@redhat.com> libdw: Make sure that every debug_types sig8 is hashed

When dwarf_formref_die can't find a sig8 in the hash, it walks
__libdw_intern_next_unit, and was then adding those to the hash.
However, if dwarf_offdie_types is called earlier, which also uses that
next_unit, then they are missed from the hash (and never revisited).

This patch makes __libdw_intern_next_unit do the sig8 hash insert, so no
type unit is ever missed.

Signed-off-by: Josh Stone <jistone@redhat.com>
hangeLog
akefile.am
un-typeiter.sh
ypeiter2.c
0c9ae0c5515c9da3d9e11396974b6a2f0ede2543 26-Sep-2013 Petr Machata <pmachata@redhat.com> Show contents NT_FILE core note in readelf

Signed-off-by: Petr Machata <pmachata@redhat.com>
hangeLog
un-readelf-mixed-corenote.sh
ab22410aed2732016c598c47102d47df659ede0c 26-Sep-2013 Petr Machata <pmachata@redhat.com> Show contents NT_SIGINFO core note in readelf

Signed-off-by: Petr Machata <pmachata@redhat.com>
hangeLog
akefile.am
un-readelf-mixed-corenote.sh
estfile71.bz2
1b734df17fca9f89a887b85ffe74616a87388f51 20-Sep-2013 Mark Wielaard <mjw@redhat.com> libdw: Make dwarf_getfuncs find all (defining) DW_TAG_subprogram DIEs.

dwarf_getfuncs used to return only the DW_TAG_subprogram DIEs that were
direct children of the given CU. This is normally how GCC outputs the
subprogram DIEs. But not always. For nested functions the subprogram DIE
is placed under the code construct DIE where it is nested. Other compilers
might output the defining subprogram DIE of a C++ class function under
the DW_TAG_namespace DIE where it was defined. Both such constructs seem
allowed by the DWARF specification. So just searching the CU DIE children
was wrong.

To find all (defining) subprogram DIEs in a CU dwarf_getfuncs should
use __libdw_visit_scopes to walk the tree for all DIEs that can contain
subprograms as children. The only tricky part is making sure the offset
returned and used when the callback returns DWARF_CB_ABORT is correct
and the search continues at the right spot in the CU DIE tree. This
operation now needs to rewalk the whole tree.

Two new testcases were added that fail without this patch. And the
allfcts test was tweaked so that it always returns DWARF_CB_ABORT
from its callback to make sure the offset handling is correct.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
llfcts.c
un-allfcts.sh
estfile_class_func.bz2
estfile_nested_funcs.bz2
6e6e54e12a30b70929d9465fae3dc601684a8794 31-Aug-2013 Mark Wielaard <mjw@redhat.com> tests: Add new varlocs test for dwarf_getlocation* functions.

This tests the new dwarf_getlocations, dwarf_getlocation_attr and
dwarf_getlocation_die functions. But it is also an example of how
to handle location expressions and which libdw functions can be
used to access all information required to interpret each DW_OP.

It might make sense to extend this test/example into a program
that verifies various properties of DWARF expressions.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-varlocs.sh
estfile_const_type.bz2
estfile_const_type.c
estfile_entry_value.bz2
estfile_entry_value.c
estfile_implicit_pointer.bz2
estfile_implicit_pointer.c
estfile_implicit_value.bz2
estfile_implicit_value.c
estfile_parameter_ref.bz2
estfile_parameter_ref.c
arlocs.c
92e47d616d15beec31c406ce254e639faa8fac2b 02-Sep-2013 Mark Wielaard <mjw@redhat.com> backends: Hook abi_cfi for arm.

New arm_abi_cfi that defines initial CFA, rules for callee-saved regs,
including VFP ones and return register.

Note the DWARF abi extension for ARM says that "registers intentionally
unused" should also be initialized as if by DW_CFA_same_value. The
example given is "an integer-only function might be included in one
executable file for targets with VFP and another for targets without".
We don't currently do this yet. See the DWARF and calling convention
documents:

DWARF for the ARM Architecture ABI r2.09
http://infocenter.arm.com/help/topic/com.arm.doc.ihi0040b/IHI0040B_aadwarf.pdf

Procedure Call Standard for the ARM Architecture ABI r2.09
http://infocenter.arm.com/help/topic/com.arm.doc.ihi0042e/IHI0042E_aapcs.pdf

Also adds addrcfi arm testcase.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-addrcfi.sh
estfilearm.bz2
79b9181ff552e54bacc74fc0b0699e6133645c6b 28-Aug-2013 Mark Wielaard <mjw@redhat.com> tests: Add s390 and s390x addrcfi testcases.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
ddrcfi.c
un-addrcfi.sh
estfiles390.bz2
estfiles390x.bz2
d3f164551f3f5d9ebd47cd4c055873ba1658a1b6 28-Aug-2013 Mark Wielaard <mjw@redhat.com> tests: Add ppc32 and ppc64 addrcfi testcases.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
ddrcfi.c
un-addrcfi.sh
estfileppc32.bz2
estfileppc64.bz2
292b1787b6ccc429ebba177600dffdb5b33443f7 27-Aug-2013 Mark Wielaard <mjw@redhat.com> tests: Add run-addrcfi.sh test for libdw cfi dwarf_frame_* functions.

We require architecture backends to implement the ebl abi_cfi hook
to provide the ABI's default CFI program as used by the libdw dwarf cfi
functions. There is the addrcfi test program that prints the return
address, cfa location expression and register states as returned by
various dwarf_cfi_* and dwarf_frame functions. But that has to be run
by hand. The new run-addrcfi.sh tests hooks addrcfi up to some existing
architecture specific test files and known addresses to more easily
(and automaticly) check that the default CFI program is implemented
correctly and to test the libdw cfi frame info functionality.

Only i386 and x86_64 are tested for now since other backends don't have
the abi_cfi hook yet.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
ddrcfi.c
un-addrcfi.sh
4b9e639d314e1ba63dbf661eb1fd7df1a8ee7d4a 13-Aug-2013 Mark Wielaard <mjw@redhat.com> addr2line: Support -i, --inlines output option.

Show all source locations that caused inline expansion of subroutines
at the given address. This can easily be supported by using libdw
dwarf_getscopes_die which will give all nested inlined subroutines.
When -f, --functions is given also show the function names where the
subroutines were inlined.

The output matches that of binutils addr2line --inlines.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-addr2line-i-test.sh
estfile-inlines.bz2
d0f8501761b15b35dc52eaf5709a638276270077 12-Aug-2013 Mark Wielaard <mjw@redhat.com> addr2line: Remove newline from strings returned by getline.

getline can return strings with a newline as last character when reading
from stdin. This could cause confusing symbol lookup failures like:
addr2line: cannot find symbol 'foo
'
So if the last character of the buf returned by getline is a newline just
null-terminate it right there. Also add a new testcase run-addr2line-test.sh.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-addr2line-test.sh
596d430f23f85f3cd019bd0ac560ecd5371fc7e0 23-Jul-2013 Jan Kratochvil <jan.kratochvil@redhat.com> Fix false match of non-build-id disk library to build-id memory library.

this patch:
Use DT_DEBUG library search first.
8ff862960efb648cdff647d7fad1be5acffe9b11
[patch 2/2] Fix loading core files without build-ids
https://lists.fedorahosted.org/pipermail/elfutils-devel/2013-April/003031.html
[patch 2/2 v2] Fix loading core files without build-ids
https://lists.fedorahosted.org/pipermail/elfutils-devel/2013-May/003065.html

has PASS->FAIL regression on CentOS-5 for run-unstrip-n.sh:

-actual on CentOS-5
+expected by testcase

-0xf77b3000+0x822c - /lib/librt.so.1 - librt.so.1
-0xf7603000+0x15c5c4 - /lib/libc.so.6 - libc.so.6
-0xf75e9000+0x191e4 - /lib/libpthread.so.0 - libpthread.so.0
-0xf77d7000+0x1c670 - /lib/ld-linux.so.2 - ld-linux.so.2
0x8048000+0x2000 f1c600bc36cb91bf01f9a63a634ecb79aa4c3199@0x8048178 . - [exe]
+0xf75e9000+0x1a000 29a103420abe341e92072fb14274e250e4072148@0xf75e9164 - - libpthread.so.0
+0xf7603000+0x1b0000 0b9bf374699e141e5dfc14757ff42b8c2373b4de@0xf7603184 - - libc.so.6
+0xf77b3000+0x9000 c6c5b5e35ab9589d4762ac85b4bd56b1b2720e37@0xf77b3164 - - librt.so.1
0xf77d6000+0x1000 676560b1b765cde9c2e53f134f4ee354ea894747@0xf77d6210 . - linux-gate.so.1
+0xf77d7000+0x21000 6d2cb32650054f1c176d01d48713a4a5e5e84c1a@0xf77d7124 - - ld-linux.so.2

Therefore elfutils now incorrectly matches on-disk file without build-id to an
in-core (in-memory) file with build-id.

In fact due to its known FIXME:
This verification gives false positive if in-core ELF had
build-id but on-disk ELF does not have any. But we cannot
reliably find ELF header and/or the ELF build id just from
the link map (and checking core segments is also not
reliable). */

So it probably should not be so ignorable as I did, one may want to analyze
build-id core files on CentOS-5, not sure. In fact it can be fixed, when we
find in dwfl_segment_report_module a module with build-id with conflicts in
its address range with existing non-build-id dwfl_link_map_report module we
should prefer the build-id module instead.

The problem is that once Dwfl_Module is added to Dwfl it cannot be easily
removed.

Originally elfutils called dwfl_segment_report_module first and then
dwfl_link_map_report.

Currently the order is dwfl_link_map_report and then
dwfl_segment_report_module only for modules missing from dwfl_link_map_report.

Patch below unfortunately needs bidirectional negotiation between the two
functions, therefore dwfl_link_map_report now no longer adds Dwfl_Modules to
Dwfl but it only stores information about them to r_debug_info_module.
This information is filtered then by dwfl_segment_report_module and only
filtered r_debug_info_module entries get finally added to Dwfl
(in dwfl_core_file_report).

NT_FILE would make all this magic easy but it is true that on CentOS-5 it
definitely does not exist.

libdwfl/
2013-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>

* core-file.c (clear_r_debug_info): Close also ELF and FD.
(dwfl_core_file_report): Call __libdwfl_report_elf for
R_DEBUG_INFO.MODULE.
* dwfl_report_elf.c (__libdwfl_elf_address_range): New function from
code of ...
(__libdwfl_report_elf): ... this function. Call it.
* dwfl_segment_report_module.c: Include unistd.h.
(dwfl_segment_report_module): Use basename for MODULE->NAME.
Clear MODULE if it has no build-id and we have segment with build-id.
Ignore this segment only if MODULE still contains valid ELF.
* libdwflP.h (__libdwfl_elf_address_range): New declaration.
(struct r_debug_info_module): New fields fd, elf, l_addr, start, end
and disk_file_has_build_id.
(dwfl_link_map_report): Extend the comment.
* link_map.c (report_r_debug): Extend the comment. Always fill in new
r_debug_info_module. Initialize also the new r_debug_info_module
fields. Remove one FIXME comment. Call __libdwfl_elf_address_range
instead of __libdwfl_report_elf when R_DEBUG_INFO is not NULL.

tests/
2013-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>

* run-unstrip-n.sh (test-core.*): Ignore libc.so.6 entry and order of
the entries.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
un-unstrip-n.sh
263d7eed708f3028e855b25a8692bb3d3b70c704 02-Jul-2013 Mark Wielaard <mjw@redhat.com> tests EXTRA_DIST typo, forgot extension in testfilenolines.bz2.
hangeLog
akefile.am
8ff862960efb648cdff647d7fad1be5acffe9b11 30-May-2013 Jan Kratochvil <jan.kratochvil@redhat.com> Use DT_DEBUG library search first.

libdwfl/
2013-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>

* argp-std.c (parse_opt) <ARGP_KEY_SUCCESS> <opt->core> <opt->e>: Set
executable_for_core before calling dwfl_core_file_report.
* core-file.c (clear_r_debug_info): New function.
(dwfl_core_file_report): Move raw segments reporting lower. New
variable r_debug_info, pass it to dwfl_segment_report_module. Call
clear_r_debug_info in the end. Return sum of LISTED and SNIFFED.
* dwfl_module_build_id.c (check_notes): Move into
__libdwfl_find_elf_build_id.
(__libdwfl_find_build_id): Rename to ...
(__libdwfl_find_elf_build_id): ... here. Add parameters build_id_bits,
build_id_elfaddr and build_id_len. Verify MOD vs. ELF.
(__libdwfl_find_elf_build_id) (check_notes): Remove parameters mod and
set, rename data_vaddr to data_elfaddr. Do not call found_build_id.
(__libdwfl_find_elf_build_id): Update the check_notes caller, do not
adjust its data_elfaddr parameter.
(__libdwfl_find_build_id): New wrapper of __libdwfl_find_elf_build_id.
* dwfl_segment_report_module.c (dwfl_segment_report_module): New
parameter r_debug_info. New variable name_is_final. Adjust addresses
according to R_DEBUG_INFO->MODULE. Check conflicts against DWFL.
Do not overwrite NAME by SONAME if NAME_IS_FINAL.
* libdwflP.h (__libdwfl_find_elf_build_id): New declaration.
(struct r_debug_info_module, struct r_debug_info): New definitions.
(dwfl_segment_report_module, dwfl_link_map_report): Add parameter
r_debug_info.
* link_map.c: Include fcntl.h.
(report_r_debug): Add parameter r_debug_info, describe it in the
function comment. Delete dwfl_addrmodule call and its dependent code.
Verify build-id before calling dwfl_report_elf, also supply
executable_for_core to it. Store r_debug_info->module info when
appropriate.
(dwfl_link_map_report): Add parameter r_debug_info. New variable
in_ok. Try to read IN from EXECUTABLE_FOR_CORE. Update report_r_debug
caller parameters.

tests/
2013-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>

* Makefile.am (EXTRA_DIST): Add test-core-lib.so.bz2,
test-core.core.bz2 and test-core.exec.bz2.
* run-addrname-test.sh: New test for these files.
* run-unstrip-n.sh: Update expected output. New test for these files.
* test-core-lib.so.bz2: New file.
* test-core.core.bz2: New file.
* test-core.exec.bz2: New file.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
akefile.am
un-addrname-test.sh
un-unstrip-n.sh
est-core-lib.so.bz2
est-core.core.bz2
est-core.exec.bz2
9affad3d2314de1bacbabae453a7261cc02feac4 03-May-2013 Mark Wielaard <mjw@redhat.com> libdw: dwarf_getsrclines don't set end_sequence when there are no lines.

Some CUs might only have a file list, but no actual source lines in their
statement list. Only set end_sequence at the end of the source lines list
if there are actually lines.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-get-lines.sh
estfilenolines.bz2
904aec2c2f62b729a536c2259274fdd440b0d923 30-Apr-2013 Jan Kratochvil <jan.kratochvil@redhat.com> Add parameter add_p_vaddr to dwfl_report_elf.

libdwfl/
* dwfl_report_elf.c (__libdwfl_report_elf): Add parameter add_p_vaddr.
Set it to true for ET_EXEC and ET_CORE. Provide alternative
setup of START and BIAS if !ADD_P_VADDR. Set END from BIAS, not BASE.
(dwfl_report_elf): Add parameter add_p_vaddr. Pass it down. Add
NEW_VERSION.
(_compat_without_add_p_vaddr_dwfl_report_elf) <SHARED>: New, with
COMPAT_VERSION.
* libdwfl.h (dwfl_report_elf): Add parameter add_p_vaddr. Describe it.
* libdwflP.h (__libdwfl_report_elf): Add parameter add_p_vaddr.
* link_map.c (report_r_debug): Use true add_p_vaddr for dwfl_report_elf.
* linux-kernel-modules.c (report_kernel): Use false add_p_vaddr for
dwfl_report_elf.
* offline.c (process_elf): Use true add_p_vaddr for dwfl_report_elf.

tests/
* dwfl-report-elf-align.c: Use false add_p_vaddr for dwfl_report_elf.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
wfl-report-elf-align.c
807ea3155d09c9b128f569b469209e530879e690 29-Apr-2013 Mark Wielaard <mjw@redhat.com> tests: Don't use pushd or popd, just use cd to change working directory.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
est-subr.sh
527e21ec4de92870f1b4c88b9465dc010e926260 27-Apr-2013 Mark Wielaard <mjw@redhat.com> tests: Tests that override EXIT (0) trap need to cleanup themselves.

Since trap handlers don't nest tests that install their own EXIT (0) trap
handler need to cleanup themselves. Add an exit_cleanup helper function
to test-subr.sh that can be used by run-native-test.sh to exit cleanly.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-native-test.sh
est-subr.sh
b0f202e15fc6ab34381c0b96325221aab874250d 28-Apr-2013 Mark Wielaard <mjw@redhat.com> tests: All update tests should use unique temporary file names and cleanup.

All update tests used the same temporary file name xxx. And only update4
would clean up this file. Now that tests can run in parallel make sure
all temporary names are unique and every test cleans up their own files.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
pdate1.c
pdate2.c
pdate3.c
pdate4.c
a6098315baa0074cd188bfd9d3c6b9d9205d6fa2 26-Apr-2013 Mark Wielaard <mjw@redhat.com> tests: Add various files to tempfiles so they are always cleaned up.

Various tests tried to rm their own temporary files. That could mean those
files weren't properly cleaned up if the testcase unexpectedly failed. Add
them to tempfiles to make sure they are always cleaned up by test-subr.sh.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-alldts.sh
un-elf_cntl_gelf_getshdr.sh
un-macro-test.sh
un-strip-reloc.sh
86be792c727ea0c09d687e76d98739a5af23a803 26-Apr-2013 Mark Wielaard <mjw@redhat.com> Enable automake parallel-tests for make check.

The parallel-tests option was introduced in automake 1.11 and is the
default since automake 1.13. All tests can now be ran in parallel with
make check -j. To enable this all tests are ran in their own temporary
directory so they don't stomp on each others input or output files.
On my machine (4 cores) make check takes ~20 seconds, but now with
make check -j8 takes only ~4 seconds.

ChangeLog:

* configure.ac (AM_INIT_AUTOMAKE): Request parallel-tests.

tests/ChangeLog:

* Makefile.am (installed_TESTS_ENVIRONMENT): Export environment,
remove wrapper.
(TESTS_ENVIRONMENT): Likewise.
(installed_LOG_COMPILER): New variable defining wrapper.
(LOG_COMPILER): Likewise.
* run-*.sh: Fixup location of input and output files.
* test-subr.sh: Create test_dir, pushd to execute test in.
(trap): Remove test_dir.
(testfiles): Use abs_srcdir.
(installed_testrun): Match on abs_builddir or abs_top_builddir.
(self_test_files): Adjust path.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-addrname-test.sh
un-addrscopes.sh
un-alldts.sh
un-allfcts.sh
un-allregs.sh
un-arextract.sh
un-arsymtest.sh
un-bug1-test.sh
un-disasm-x86-64.sh
un-disasm-x86.sh
un-dwarf-getmacros.sh
un-dwarf-getstring.sh
un-dwfl-addr-sect.sh
un-dwfl-bug-offline-rel.sh
un-dwfl-report-elf-align.sh
un-dwfllines.sh
un-dwflsyms.sh
un-early-offscn.sh
un-ecp-test.sh
un-ecp-test2.sh
un-elf_cntl_gelf_getshdr.sh
un-elflint-self.sh
un-elflint-test.sh
un-find-prologues.sh
un-funcscopes.sh
un-get-aranges.sh
un-get-files.sh
un-get-lines.sh
un-get-pubnames.sh
un-line2addr.sh
un-low_high_pc.sh
un-macro-test.sh
un-native-test.sh
un-nm-self.sh
un-prelink-addr-test.sh
un-ranlib-test.sh
un-ranlib-test2.sh
un-readelf-aranges.sh
un-readelf-d.sh
un-readelf-dwz-multi.sh
un-readelf-gdb_index.sh
un-readelf-line.sh
un-readelf-loc.sh
un-readelf-macro.sh
un-readelf-mixed-corenote.sh
un-readelf-s.sh
un-readelf-self.sh
un-readelf-test1.sh
un-readelf-test2.sh
un-readelf-test3.sh
un-readelf-test4.sh
un-readelf-twofiles.sh
un-readelf-vmcoreinfo.sh
un-rerequest_tag.sh
un-show-abbrev.sh
un-show-die-info.sh
un-strings-test.sh
un-strip-groups.sh
un-strip-reloc.sh
un-strip-test.sh
un-test-archive64.sh
un-test-flag-nobits.sh
un-typeiter.sh
un-unstrip-n.sh
un-unstrip-test.sh
est-subr.sh
cdaaf2153a1f40d1be080c8ff6e10767b51a1c96 25-Apr-2013 Mark Wielaard <mjw@redhat.com> Updates for Automake 1.13.

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.
hangeLog
akefile.am
1a09420a120dc7b71574f433d9c4929a80873ce3 25-Mar-2013 Mark Wielaard <mjw@redhat.com> readelf: Add --debug-dump=decodedline support.

Use libdw to decode the .debug_line section and print address table view
when --debug-dump=decodedline is given.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
akefile.am
un-readelf-line.sh
b79788c8dcef524ad207f5e961dc11c216e86ffc 25-Mar-2013 Mark Wielaard <mjw@redhat.com> readelf: Display raw .debug_aranges. Use libdw only for decodedaranges.

Display "raw" .debug_aranges by default. Only use libdw parsing when
--debug-dump=decodedaranges is given.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-readelf-aranges.sh
estfilefoobarbaz.bz2
a8c7f05cfd03a58821c3da68f3f577c882258674 25-Mar-2013 Mark Wielaard <mjw@redhat.com> readelf: When highpc is in constant form also print as address.

When highpc is in constant form it is relative to lowpc. In that case
also show as address.

Suggested-by: Jan Kratochvil <jan.kratochvil@redhat.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-readelf-dwz-multi.sh
a1d44825ffc756ed6c0dca3a836c1ff9f0ec151f 19-Mar-2013 Jan Kratochvil <jan.kratochvil@redhat.com> Fix dwfl_report_elf BASE alignment

libdwfl/
* dwfl_report_elf.c (__libdwfl_report_elf): Remove BASE aligning.

tests/
* Makefile.am (check_PROGRAMS): Add dwfl-report-elf-align.
(TESTS): Add run-dwfl-report-elf-align.sh.
(EXTRA_DIST): Add run-dwfl-report-elf-align.sh and
testfile-dwfl-report-elf-align-shlib.so.bz2 .
(dwfl_report_elf_align_LDADD): New.
* dwfl-report-elf-align.c: New file.
* run-dwfl-report-elf-align.sh: New file.
* testfile-dwfl-report-elf-align-shlib.so.bz2: New file.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
akefile.am
wfl-report-elf-align.c
un-dwfl-report-elf-align.sh
estfile-dwfl-report-elf-align-shlib.so.bz2
f1b06b5c1d9837832e74a61e19220ad5670bbc40 12-Mar-2013 Mark Wielaard <mjw@redhat.com> libdw and libdwfl srcfiles and srclines fixes for partial_units.

dwfl_getsrclines would always fail, even when lines were found.
dwarf_decl_file, and other functions relying on srcfiles or srclines would
fail for DIEs in partial_units because stmt_lists on partial_units
were ignored.

Note that dwz contained a bug which makes things fail in __libdw_formptr
for DW_AT_stmt_list with a bogus DW_FORM even with these fixes.
https://bugzilla.redhat.com/show_bug.cgi?id=919755

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
wfllines.c
un-dwfllines.sh
f6185a75448c395795182ed1e568484056e7a2bf 22-Feb-2013 Mark Wielaard <mjw@redhat.com> libdwfl: Try opening files all installed compression libraries.

rhbz #909481. When a compression library wasn't installed libdwfl would
not try the next compression library for opening a file. Retry with the
next available compression library if a previous one isn't installed. Also
disable tests that depend on a particular compression library
(run-readelf-s.sh and run-dwflsyms.sh) if that library isn't installed.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
443304efce95d66ac089d95807a0002cf8558d13 15-Feb-2013 Mark Wielaard <mjw@redhat.com> libdw: Handle FORM_GNU_strp_alt for files with string data only in dwz file.

dwarf_formstring should check that the dbg file from which we want the
strp data actually has a IDX_debug_str section.

Reported-By: Tom Tromey <tromey@redhat.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-readelf-dwz-multi.sh
estfile-dwzstr.bz2
estfile-dwzstr.multi.bz2
6c4b2078c51c687a1a192b001f0b331a0ccac629 30-Jan-2013 Mark Wielaard <mjw@redhat.com> Add readelf test for --debug-dump=loc --debug-dump=ranges, -N and -U.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-readelf-loc.sh
estfileloc.bz2
cc84d79da3b8aaf09c785d8d24d7a41dd236528b 10-Oct-2012 Jan Kratochvil <jan.kratochvil@redhat.com> backends/
* Makefile.am (s390_SRCS): Add s390_corenote.c and s390x_corenote.c.
* linux-core-note.c (ALIGN_PR_REG): New definitions.
(struct EBLHOOK(prstatus)): Change field pr_reg to anonymous struct with
ALIGN_PR_REG.
(EXTRA_ITEMS): New macro.
* s390_corenote.c: New file.
* s390_init.c (s390x_core_note): New declaration.
(s390_init): Install s390x_core_note and s390_core_note.
* s390x_corenote.c: New file.

tests/
* run-readelf-mixed-corenote.sh: New testcase for readelf -n of s390
and s390x core notes.
* testfile67.bz2: New file.
* testfile68.bz2: New file.
* Makefile.am (EXTRA_DIST): Add testfile67.bz2 and testfile68.bz2 .

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
akefile.am
un-readelf-mixed-corenote.sh
estfile67.bz2
estfile68.bz2
697bdca1d7d70ebdcae90759dd885258400e1951 23-Jan-2013 Mark Wielaard <mjw@redhat.com> libdwfl: Support auxiliary symbol table only for getsym and addrsym.

Static binaries can have only an auxiliary symbol table and no dynsym
or symtab table.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-dwflsyms.sh
un-readelf-s.sh
estfilebasmin.bz2
9a91fb2279fc9365b44f4526623ff0851c84f23d 16-Jan-2013 Mark Wielaard <mjw@redhat.com> tests: readelf --elf-section, dwfl_module_addrsym and dwfl_module_getsym.

Various tests for the new minisymtab support.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
wflsyms.c
un-dwflsyms.sh
un-readelf-s.sh
estfilebazdbg.bz2
estfilebazdbg.debug.bz2
estfilebazdyn.bz2
estfilebazmdb.bz2
estfilebazmin.bz2
estfilebaztab.bz2
3f9256d1845af7e7119654f5febc099df5b57984 08-Jan-2013 Roland McGrath <roland@hack.frob.com> Make run-prelink-addr-test.sh robust in its use of ln.

Signed-off-by: Roland McGrath <roland@hack.frob.com>
hangeLog
un-prelink-addr-test.sh
1d6a435f55ba6ee1568fb6fede6495e37c455cae 03-Dec-2012 Mark Wielaard <mjw@redhat.com> Run valgrind tests with --run-libc-freeres=no.

By default valgrind tries to free up glibc memory at exit by running
__libc_freeres (). Unfortunately some older glibc versions have bugs
that either crash the test or make valgrind report errors. Since we
aren't interested in tracking memory leaks in glibc anyway, just
disable it.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
d5784afaf49cd59b9286e766cd9b1cf00cb43553 18-Oct-2012 Jan Kratochvil <jan.kratochvil@redhat.com> libdwfl/
* argp-std.c: Update Copyright year.
(offline_find_elf): New function.
(offline_callbacks): Use it for find_elf.
(struct parse_opt): New.
(parse_opt): New key ARGP_KEY_INIT. In other make hook struct
parse_opt pointer from former Dwfl pointer. Delay 'e and OPT_COREFILE
processing till ARGP_KEY_SUCCESS. Initialize state->input already from
ARGP_KEY_SUCCESS. Modify the cleanup in ARGP_KEY_ERROR. Make the
final state->input initialization optional.
* dwfl_end.c: Update Copyright year.
(dwfl_end): Free executable_for_core.
* libdwflP.h: Update Copyright year.
(struct Dwfl): New field executable_for_core.

tests/
* run-addrname-test.sh: New test for PIE relocation.
* testfile70.core.bz2: New file.
* testfile70.exec.bz2: New file.
* Makefile.am (EXTRA_DIST): Add testfile70.core.bz2 and
testfile70.exec.bz2 .

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
akefile.am
un-addrname-test.sh
estfile70.core.bz2
estfile70.exec.bz2
d7ed0254bcdeeed0ed2b69d864afcd9d5492d0a0 27-Oct-2012 Jan Kratochvil <jan.kratochvil@redhat.com> tests/
* Makefile.am (EXTRA_DIST): Add testfile64.bz2, testfile65.bz2,
testfile69.core.bz2 and testfile69.so.bz2 .

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
akefile.am
3fdcdcbcb424c45645aff1200adfb34450caf0b2 17-Oct-2012 Jan Kratochvil <jan.kratochvil@redhat.com> libdwfl/
2012-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>

* dwfl_module_getdwarf.c (mod_verify_build_id): New function with code
from ...
(__libdwfl_getelf): ... here. Call it.

tests/
2012-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>

* run-addrname-test.sh: New test for DSO with build-id bias.
* testfile69.core.bz2: New file.
* testfile69.so.bz2: New file.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
un-addrname-test.sh
estfile69.core.bz2
estfile69.so.bz2
387654d501eabd17d46e1a7d2a2f27388ed52943 10-Oct-2012 Jan Kratochvil <jan.kratochvil@redhat.com> libdwfl/
dwfl_segment_report_module.c (dwfl_segment_report_module): Initialize
mod->MAIN_BIAS.

tests/
run-addrname-test.sh: New test for core vDSO bias.
testfile65.bz2: New file.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
un-addrname-test.sh
estfile65.bz2
78dec228b3cfb2f9300cd0b682ebf416c9674c91 10-Oct-2012 Jan Kratochvil <jan.kratochvil@redhat.com> libdwfl/
* dwfl_module_addrsym.c (dwfl_module_addrsym): New function binding_value. Use
it for both zero and non-zero size symbols comparisons.

tests/
* run-addrname-test.sh: New test for symbol preferences.
* testfile64.bz2: New file.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
hangeLog
un-addrname-test.sh
estfile64.bz2
e3e3ee261e0d2f8716b5011ca5fcfc88766146f5 01-Oct-2012 Mark Wielaard <mjw@redhat.com> Add configure --enable-valgrind option to run all tests under valgrind.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
est-subr.sh
est-wrapper.sh
522a73f6eb1e6269d54ab7150778051c4269e722 24-Sep-2012 Petr Machata <pmachata@redhat.com> Test elfutils output of a mixed core note.

This is a test for previous commit. The core file was snipped so that only
headers and note contents are left. NT_ARM_VFP is the note that exercises
the code.

Signed-off-by: Petr Machata <pmachata@redhat.com>
hangeLog
akefile.am
un-readelf-mixed-corenote.sh
estfile63.bz2
ae7c5e791837611da31ff73787e2a7daaef8ec9e 24-Sep-2012 Petr Machata <pmachata@redhat.com> Test elfutils output of VMCOREINFO note.

The test file is partial kdump image, with only headers and notes left in.

Signed-off-by: Petr Machata <pmachata@redhat.com>
hangeLog
akefile.am
un-readelf-vmcoreinfo.sh
estfile62.bz2
3662ad16ce8f10159c32336325c2cb61854476d1 18-Sep-2012 Petr Machata <pmachata@redhat.com> Add allregs test for ARM back end

Signed-off-by: Petr Machata <pmachata@redhat.com>
hangeLog
akefile.am
un-allregs.sh
estfile61.bz2
e0ebc5a45896d2232f525601251ef781c10fedaa 24-Aug-2012 Mark Wielaard <mjw@redhat.com> tests: Add testfile60.bz2 to EXTRA_DIST.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
257dcf47ed0cf57bcd2ad225cc7aaa6a8dfeb2ab 22-Aug-2012 Jeff Kenton <jkenton@tilera.com> Add support for Tilera TILE-Gx processor.

Signed-off-by: Jeff Kenton <jkenton@tilera.com>
hangeLog
un-allregs.sh
estfile60.bz2
f5519fc244d95dc04b3e3de88644d149a36a76b6 24-Aug-2012 Mark Wielaard <mjw@redhat.com> Don't include dwz support by default.

By default the dwz multi file support is not included. This means any
DW_FORM_GNU_ref_alt or DW_FORM_GNU_strp_alt encountered in libdw will
just produce an error message. A new configure option --enable-dwz is
needed to include it for those we wish to test it. The dwz test is also
disabled by default.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
f31c4418be5bce6f0dd448cf07fc1092e5a7e1d2 17-Aug-2012 Mark Wielaard <mjw@redhat.com> Rewrite DWARF string functions using known-dwarf macros.

readelf and tests were using hard coded string tables to produce DWARF
string constants. Use the known-dwarf macros to redefine these and
reduce code. Technique comes from dwarf branch dwarfstrings.c.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
llregs.c
un-readelf-dwz-multi.sh
how-die-info.c
775375e3bd177cb19acb5020b6e0917551807276 22-Jun-2012 Mark Wielaard <mjw@redhat.com> libdw: Add support for DWZ multifile forms DW_FORM_GNU_ref_alt/strp_alt.

DWZ multifile forms http://www.dwarfstd.org/ShowIssue.php?issue=120604.1
DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt reference an alternative
debuginfo file. dwarf_begin and dwarf_begin_elf will try to use this
automatically. There are no user visible changes to the libdw interface.

dwarf_formref_die, dwarf_formstring and dwarf_formudata can now return
a Dwarf_Die which comes from a CU in the alternative Dwarf descriptor.

__libdw_read_offset was adjusted to take an alternative Dwarf descriptor
into account.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
ibtestfile_multi_shared.so.bz2
un-readelf-dwz-multi.sh
estfile_multi.dwz.bz2
estfile_multi_main.bz2
30a941ca9f463d0d862e5c3dfdb5a867fd2dcb40 01-Aug-2012 Petr Machata <pmachata@redhat.com> Test case for handling archives with 64-bit symbol table

Signed-off-by: Petr Machata <pmachata@redhat.com>
hangeLog
akefile.am
un-test-archive64.sh
estarchive64.a.bz2
bf707b5170a78b28e5310bbaa079cc226af73378 01-Aug-2012 Mark Wielaard <mjw@redhat.com> tests: Add run-nm-self.sh and run-readelf-self.sh tests.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-nm-self.sh
un-readelf-self.sh
est-subr.sh
94e387f693dae334d0b8c713c27a23bd88bc1fc1 01-Aug-2012 Mark Wielaard <mjw@redhat.com> tests: Introduce testrun_on_self, use it in run-elflint-self.sh

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-elflint-self.sh
est-subr.sh
030f626f41b5d1d563c357743cfec492d4fa69a5 18-Jul-2012 Mark Wielaard <mjw@redhat.com> elf_getshdr should work for elf->flags & ELF_F_MALLOCED.

Reported-by: Nick Alcock <nix@esperi.org.uk>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-elf_cntl_gelf_getshdr.sh
est-elf_cntl_gelf_getshdr.c
adcd1dd5729fdee3e85253b541767cc28809e4d9 19-Jul-2012 Mark Wielaard <mjw@redhat.com> test: run-elflint-self.sh ebl shared libraries are under backends now.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-elflint-self.sh
714ea0ec612225e1d5bed6ef0ea7bb8c135ae4c4 19-Jul-2012 Mark Wielaard <mjw@redhat.com> test_cleanup run-unstrip-n.sh and add testcore-rtlib-ppc.bz2 to EXTRA_DIST.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-unstrip-n.sh
7b2aea5c8ef0f47e52c8597292cd8f76c7f17274 19-Jul-2012 Mark Wielaard <mjw@redhat.com> Merge branch 'debug_macro'
63006910d2beb710ec8dbb7fcb5ca07814084d6b 19-Jul-2012 Mark Wielaard <mjw@redhat.com> Merge branch 'gdb_index7'
97212fef830f9f193d4a43ee45338622db40b19c 17-Jul-2012 Mark Wielaard <mjw@redhat.com> Add ppc testcase for elf32_xlatetom.c fix.

Fails before commit bc0f74 on x86, succeeds after.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
un-unstrip-n.sh
estcore-rtlib-ppc.bz2
c09c5f32d6fc733e4c9f3e1962761ff324c3526a 26-Jun-2012 Mike Frysinger <vapier@gentoo.org> tests: only compile test programs when running test

The test binaries are only needed by make check, so change the PROGRAMS
category from noinst_ to check_ to speed up default `make && make install`.

If people want to run the tests, then the utilities will be compiled
automatically when they run `make check`, so the normal workflow should
be unchanged.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
e9b2388ddc89bc2cc26c10e3db3f40202b08c577 29-Jun-2012 Mark Wielaard <mjw@redhat.com> readelf: Add .debug_macro parsing support.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-readelf-macro.sh
estfilemacro.bz2
84a1e0b7396b29752f27486ec166b782a56852cb 29-Jun-2012 Mark Wielaard <mjw@redhat.com> readelf: Add .gdb_index version 7 support.

Add version 7 support. Keep track of cu_nr. Print kind and static/global
flag for each symbol. When a symbol is in the TU list add 'T'. Add
testfilegdbindex test files.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-readelf-gdb_index.sh
estfilegdbindex5.bz2
estfilegdbindex7.bz2
a0172d75311f36adb6db58000474d31f8a9cd553 25-Jun-2012 Mark Wielaard <mjw@redhat.com> Add low-level support for .debug_macro.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
akefile.am
un-macro-test.sh
estfile-macinfo.bz2
estfile-macros.bz2
547049b7a0c4f29ecc9ac5d49e6f2195a7c6346e 22-Jun-2012 Mark Wielaard <mjw@redhat.com> tests/low_high_pc.c: Use proper inttypes in printf formats.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
hangeLog
ow_high_pc.c
de2ed97f33139af5c7a0811e4ec66fc896a13cf2 05-Jun-2012 Mark Wielaard <mjw@redhat.com> Update name, license and contributor policy.

* 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>
akefile.am
ddrcfi.c
ddrscopes.c
lldts.c
llfcts.c
llregs.c
rextract.c
rls.c
rsymtest.c
sm-tst1.c
sm-tst2.c
sm-tst3.c
sm-tst4.c
sm-tst5.c
sm-tst6.c
sm-tst7.c
sm-tst8.c
sm-tst9.c
onfigure.ac
warf-getmacros.c
warf-getstring.c
wfl-addr-sect.c
wfl-bug-addr-overflow.c
wfl-bug-fd-leak.c
wfl-bug-getmodules.c
wfl-bug-report.c
wflmodtest.c
arly-offscn.c
cp.c
ind-prologues.c
uncretval.c
uncscopes.c
et-aranges.c
et-files.c
et-lines.c
et-pubnames.c
ash.c
ine2addr.c
ow_high_pc.c
d5-sha1-test.c
sg_tst.c
ewfile.c
ewscn.c
dwrmmap.c
erequest_tag.c
un-addrname-test.sh
un-addrscopes.sh
un-alldts.sh
un-allfcts.sh
un-allregs.sh
un-arextract.sh
un-arsymtest.sh
un-bug1-test.sh
un-disasm-x86-64.sh
un-disasm-x86.sh
un-dwarf-getmacros.sh
un-dwarf-getstring.sh
un-dwfl-addr-sect.sh
un-dwfl-bug-offline-rel.sh
un-early-offscn.sh
un-ecp-test.sh
un-ecp-test2.sh
un-elflint-self.sh
un-elflint-test.sh
un-find-prologues.sh
un-funcscopes.sh
un-get-aranges.sh
un-get-files.sh
un-get-lines.sh
un-get-pubnames.sh
un-line2addr.sh
un-low_high_pc.sh
un-native-test.sh
un-prelink-addr-test.sh
un-ranlib-test.sh
un-ranlib-test2.sh
un-ranlib-test3.sh
un-ranlib-test4.sh
un-readelf-d.sh
un-readelf-test1.sh
un-readelf-test2.sh
un-readelf-test3.sh
un-readelf-test4.sh
un-readelf-twofiles.sh
un-rerequest_tag.sh
un-show-abbrev.sh
un-show-die-info.sh
un-strings-test.sh
un-strip-groups.sh
un-strip-reloc.sh
un-strip-test.sh
un-strip-test2.sh
un-strip-test3.sh
un-test-flag-nobits.sh
un-typeiter.sh
un-unstrip-n.sh
un-unstrip-test.sh
aridx.c
cnnames.c
ectiondump.c
how-abbrev.c
how-die-info.c
howptable.c
est-flag-nobits.c
est-nlist.c
est-subr.sh
est-wrapper.sh
ypeiter.c
pdate1.c
pdate2.c
pdate3.c
pdate4.c
5128fb448768fb875bf4acc1c0265979aef4967b 05-Jun-2012 Mark Wielaard <mjw@redhat.com> Remove .mtn-ignore and .cvsignore files.

We use .gitignore these days.
cvsignore
dbbc67a97ace66c3adc299f26261fdec99d0c0d6 11-May-2012 Mark Wielaard <mjw@redhat.com> TESTS_ENVIRONMENT set LC_ALL and LANG to C.

Some tests rely on sort order and output of tools that might be localized.

Reported-by: Paweł Sikora <pluto@pld-linux.org>
hangeLog
akefile.am
d9bc75fc20f0ce5064cac192a518af3c7192e96d 07-May-2012 Mark Wielaard <mjw@redhat.com> tests/low_high_pc.c: Allow highpc == lowpc for CU DIEs for buggy GCC.

GCC < 4.7 had a bug where no code CUs got a highpc == lowpc.
Allow that, because it is not the main purpose of this test.
hangeLog
ow_high_pc.c
547972539ecbe8668e89d891d86cef10f0302fd5 27-Apr-2012 Mark Wielaard <mjw@redhat.com> dwarf_highpc: Handle DW_AT_high_pc being a constant offset from DW_AT_low_pc.
hangeLog
akefile.am
ow_high_pc.c
un-low_high_pc.sh
estfile_low_high_pc.bz2
bdad8e39aede889dbac95944a07eaebdebe4ad89 26-Apr-2012 Mark Wielaard <mjw@redhat.com> Removed old libdwarf test show-ciefde.
hangeLog
akefile.am
un-show-ciefde.sh
how-ciefde.c
96a52138eab04f24a86c78e8f2af9c74c2d6bfaf 03-Apr-2012 Mark Wielaard <mjw@redhat.com> Add new run-unstrip-n.sh test for RHBZ#805447 fixed in commit 210c2f.
hangeLog
akefile.am
un-unstrip-n.sh
estcore-rtlib.bz2
191d1f0b9163593eee8c4f5cbe3e95cabf6ae9a9 02-Apr-2012 Mark Wielaard <mjw@redhat.com> elf32_offscn.c: Do not match SHT_NOBITS sections at OFFSET.

readelf -d doesn't work if a SHT_NOBITS section is right before the actual
.dynamic section at the same offset. elflint also fails on such binaries.
So skip SHT_NOBITS sections at the same offset in [g]elf[32|64]_offscn().
hangeLog
akefile.am
un-elflint-test.sh
un-readelf-d.sh
estlib_dynseg.so.bz2
581c3f60e2b1fc7ddaf4260bb5a9cb59f8e3f0d0 21-Mar-2012 Tom Tromey <tromey@redhat.com> Fix bug using dwarf_next_unit to iterate over .debug_types

* libdw_findcu.c (findcu_cb): Move earlier.
(__libdw_intern_next_unit): Add new CU to search tree here...
(__libdw_findcu): ... not here.

* typeiter.c: New file.
* run-typeiter.sh: New file.
* testfile59.bz2: New file.
* Makefile.am (noinst_PROGRAMS): Add typeiter.
(TESTS): Add run-typeiter.sh.
(EXTRA_DIST): Add run-typeiter.sh, testfile59.bz2.
(typeiter_LDADD): New variable.

If you call dwarf_next_unit to iterate over .debug_types, then call
dwarf_offdie_types, you can see a failure if some earlier call
happened to call __libdw_intern_next_unit via dwarf_formref_die.

What happens is that __libdw_intern_next_unit updates the Dwarf's
next_tu_offset, but does not add the TU to the TU search tree. So,
the call to dwarf_offdie_types does not find the TU in the tree, and
will not search any more, causing a failure.

This fix changes __libdw_intern_next_unit to add the TU to the search
tree, rather than relying on __libdw_findcu to do it.
hangeLog
akefile.am
un-typeiter.sh
estfile59.bz2
ypeiter.c
5a8e39a3a5dd1d4e553e5f3fc42c3f81c15e5069 24-Feb-2012 Kurt Roeckx <kurt@roeckx.be> run-alldts.sh: testrun ./alldts.
hangeLog
593f2af73d971bdc9dcc06622d529e7848c31f57 24-Feb-2012 Kurt Roeckx <kurt@roeckx.be> run-alldts.sh: testrun ./alldts.
un-alldts.sh
c1c6a9d482822f3da8043b8203c4b69bffbf2b46 21-Feb-2012 Roland McGrath <roland@hack.frob.com> test-subr.sh: Add ${libdir}/elfutils to LD_LIBRARY_PATH.
hangeLog
est-subr.sh
e3b15685566f6ddcad47c820e77737c2c3c851e4 21-Feb-2012 Roland McGrath <roland@hack.frob.com> test-wrapper.sh: Add ${libdir}/elfutils to LD_LIBRARY_PATH.
hangeLog
est-wrapper.sh
b8ff18e0e8b8631fcc449cbd5a1ceba3f4a73e0d 18-Jan-2012 Roland McGrath <roland@hack.frob.com> Don't set LD_LIBRARY_PATH explicitly for command run inside test case.
hangeLog
sm-tst4.c
sm-tst5.c
sm-tst6.c
32899ac4f69d4ca4856d5282464c1f9cee928c8a 09-Jul-2011 Roland McGrath <roland@hack.frob.com> Clean up byte order handling in md5 and sha1 code.
hangeLog
akefile.am
d5-sha1-test.c
ha1-tst.c
3f2290ba080f91b93db882bcdeb577b34742018b 30-May-2011 Mark Wielaard <mjw@redhat.com> Add missing test wrappers to Makefile.am (EXTRA_DIST).
hangeLog
akefile.am
20a217d677c62a01f9b650a1dfef0a82154d115e 24-May-2011 Mark Wielaard <mjw@redhat.com> Add hello_s390.ko testcase to run-strip-reloc.sh.

This new test PASSes, but looking at the size results will show
--reloc-debug-sections isn't making a huge difference for this case.
hangeLog
akefile.am
ello_s390.ko.bz2
un-strip-reloc.sh
1662bc3880ae5acae6aa2a3013d193223c36f189 16-May-2011 Mark Wielaard <mjw@redhat.com> strip: Add --reloc-debug-sections option.
hangeLog
akefile.am
ello_i386.ko.bz2
ello_ppc64.ko.bz2
ello_x86_64.ko.bz2
un-strip-reloc.sh
7a125b9306c4743eaee062bdab301f890e3c6309 17-May-2011 Mark Wielaard <mjw@redhat.com> strip: Handle SHT_GROUP sections better.
hangeLog
akefile.am
un-strip-groups.sh
estfile58.bz2
494275c0f41dea71d8ec5b97d01581c95fdfbbdb 28-Mar-2011 Marek Polacek <mpolacek@redhat.com> New test for ebl_dynamic_tag_name.
hangeLog
akefile.am
lldts.c
un-alldts.sh
bd1d16c3a17c227d1379df10e97f6c7865ad1440 16-Mar-2011 Petr Machata <pmachata@redhat.com> Handle repeated requests for invalid abbreviation
akefile.am
un-rerequest_tag.sh
estfile57.bz2
a70791179e61789e5108b3c68bae1d976da7be17 10-Mar-2011 Roland McGrath <roland@redhat.com> Cosmetic cleanup for new test.
erequest_tag.c
un-rerequest_tag.sh
02c561914caceb41c36a3eecd01114d8d33ec1f9 10-Mar-2011 Petr Machata <pmachata@redhat.com> Reject requests for abbreviation with code 0
akefile.am
erequest_tag.c
un-rerequest_tag.sh
estfile56.bz2
4894221f67d2267f9d701366f257dc2ff44a24c3 07-Mar-2011 Marek Polacek <mpolacek@redhat.com> New test for dwarf_getstring.
hangeLog
akefile.am
warf-getstring.c
un-dwarf-getstring.sh
c32696c64df869011d3a9a03c824835222cef3f9 03-Mar-2011 Roland McGrath <roland@redhat.com> Merge branch 'master' of ssh://git.fedorahosted.org/git/elfutils
fec3999dc82e340bdcb41aefca2793f0b10cb825 27-Feb-2011 Jan Kratochvil <jan.kratochvil@redhat.com> Fix readelf --debug-dump=loc crash on multiple input files.
hangeLog
akefile.am
un-readelf-twofiles.sh
58cfa1c78f45459ad2b5cc9b58b052f44054a9e7 25-Feb-2011 Mark Wielaard <mjw@redhat.com> BUILT_RPATH vs BUILD_RPATH fixup.

* tests/Makefile.am (BUILD_RPATH): Be consistent in naming.
hangeLog
akefile.am
dc34eda5d74a5dd166ea429ab373df8e254db673 03-Feb-2011 Josh Stone <jistone@redhat.com> run-prelink-addr-test.sh: Add a .dynbss+.bss prelink split
hangeLog
akefile.am
un-prelink-addr-test.sh
estfile55-32.bz2
estfile55-32.debug.bz2
estfile55-32.prelink.bz2
estfile55-64.bz2
estfile55-64.debug.bz2
estfile55-64.prelink.bz2
4f6d4e104518f3fb55728fd5009a6909483f49fc 12-Jan-2011 Roland McGrath <roland@redhat.com> Undo last change for data-only tests, so we test PT_DYNAMIC digging too.
hangeLog
un-prelink-addr-test.sh
32520bd7dd079d5e07297c34a45991555c6df81f 12-Jan-2011 Roland McGrath <roland@redhat.com> run-prelink-addr-test.sh: Make symlinks to find .debug files corresponding to noshdrs files.
hangeLog
un-prelink-addr-test.sh
ccbccef5895f375feba088c603b3c6954b4ee3ba 12-Jan-2011 Josh Stone <jistone@redhat.com> Add data-only prelink tests
hangeLog
akefile.am
un-prelink-addr-test.sh
estfile54-32.noshdrs.so.bz2
estfile54-32.prelink.so.bz2
estfile54-32.so.bz2
estfile54-32.so.debug.bz2
estfile54-64.noshdrs.so.bz2
estfile54-64.prelink.so.bz2
estfile54-64.so.bz2
estfile54-64.so.debug.bz2
cf51471777953c1c6cfcbe7ad5df09c23c1964be 12-Jan-2011 Josh Stone <jistone@redhat.com> Expand testfile53 for 32/64-bit
hangeLog
akefile.am
un-prelink-addr-test.sh
estfile53-32.bz2
estfile53-32.debug.bz2
estfile53-32.prelink.bz2
estfile53-64.bz2
estfile53-64.debug.bz2
estfile53-64.prelink.bz2
estfile53.bz2
estfile53.debug.bz2
estfile53.prelink.bz2
d41d9a6917721152ad2a9963cf8f487787041e9e 12-Jan-2011 Josh Stone <jistone@redhat.com> Expand testfile52 for 32/64-bit and stripped headers
hangeLog
akefile.am
un-prelink-addr-test.sh
estfile52-32.noshdrs.so.bz2
estfile52-32.prelink.so.bz2
estfile52-32.so.bz2
estfile52-32.so.debug.bz2
estfile52-64.noshdrs.so.bz2
estfile52-64.prelink.so.bz2
estfile52-64.so.bz2
estfile52-64.so.debug.bz2
estfile52.prelink.so.bz2
estfile52.so.bz2
estfile52.so.debug.bz2
ffa02004b21f24b14281c30045139be61075b73f 11-Jan-2011 Josh Stone <jistone@redhat.com> Test cases for libdwfl vs prelink.
hangeLog
akefile.am
un-prelink-addr-test.sh
estfile52.prelink.so.bz2
estfile52.so.bz2
estfile52.so.debug.bz2
estfile53.bz2
estfile53.debug.bz2
estfile53.prelink.bz2
ec86e5fa64540a6bb027b0dd505322455968c8e2 15-Jun-2010 Roland McGrath <roland@redhat.com> Fix unstrip for modifying file in place.
hangeLog
un-unstrip-test.sh
3c6ee4b62787738d4524e4a83c97f1a64ce15379 23-Apr-2010 Roland McGrath <roland@redhat.com> Fix tests/addrcfi error reporting.
hangeLog
ddrcfi.c
26618d8ba30ce71d1ac4a11f02cb13dd7ccd330f 14-Apr-2010 Roland McGrath <roland@redhat.com> Add missing file for dist.
hangeLog
akefile.am
c2d1e4811f159ee5779b6c2c9e459e12170effc9 11-Apr-2010 Ulrich Drepper <drepper@redhat.com> Adjust expected error message text from libelf.
hangeLog
sg_tst.c
77961b517488065e852ac83a1a5cdf7d18fe954c 06-Apr-2010 Petr Machata <pmachata@redhat.com> Testcase for elf_getdata/elf_flagdata on NOBITS section
hangeLog
akefile.am
un-test-flag-nobits.sh
est-flag-nobits.c
22359e265395fd2f8267190ef97f5417770e6206 16-Feb-2010 Roland McGrath <roland@redhat.com> Clean up and consolidate automake magic to reduce duplication and to work with --disable-dependency-tracking.
hangeLog
akefile.am
e9ca738afcb9cb00d747ef2f072f82a092eaaaff 16-Feb-2010 Roland McGrath <roland@redhat.com> Fix -Wshadow warning in asm-tst9.
hangeLog
sm-tst9.c
af80014e49796185298dfb261ddf1e51d98f25c0 22-Jul-2009 Roland McGrath <roland@redhat.com> Rejigger calling conventions for dwarf_frame_{cfa,register}.
hangeLog
ddrcfi.c
3c84db3b4b610bf636c4363abb6d3dac5ae020f9 25-Jun-2009 Roland McGrath <roland@redhat.com> CFI support: lookup by PC and translate into DWARF location per register
hangeLog
akefile.am
ddrcfi.c
0c735a9f6e2a47ba06914de1eb84bfa4300b4b03 08-May-2009 Roland McGrath <roland@redhat.com> Cosmetic fixup and missed EXTRA_DIST file.
hangeLog
akefile.am
d24c7bfeca98d0142bb46a44e248f57675a8c0c3 07-May-2009 Petr Machata <pmachata@redhat.com> Add a test for dwarf_getmacros
hangeLog
akefile.am
warf-getmacros.c
un-dwarf-getmacros.sh
estfile51.bz2
f9545c4ac7ec2cf0d5b69aa2db043f9f4df6c6c5 23-Apr-2009 Ulrich Drepper <drepper@myware66.akkadia.org> Fix building tests with mudflap.
hangeLog
akefile.am
2fe3aa6c807a4a5d2c767ab53792bf2d0d9ff2b7 23-Apr-2009 Roland McGrath <roland@redhat.com> Revert leaked bogon.
un-addrname-test.sh
19a8e4dbd8268b8f0add9803d80d0266eac1aaa9 22-Apr-2009 Roland McGrath <roland@redhat.com> Fix derelocate crash for non-ET_REL file with some sh_addr at 0.
hangeLog
akefile.am
un-addrname-test.sh
un-dwfl-addr-sect.sh
estfile50.bz2
3bf5759aa0cf1cd8f771ce3e34346c7510b89e5f 02-Jan-2009 Ulrich Drepper <drepper@redhat.com> Add Intel SSE4 support to disassembler.
hangeLog
estfile44.S.bz2
estfile44.expect.bz2
estfile45.S.bz2
estfile45.expect.bz2
5bd4444e15b0bda948b3753e01de10ef8999e5c8 31-Dec-2008 Ulrich Drepper <drepper@redhat.com> Implement blendvpd and blendvps opcodes in x86/x86-64 disassembler.
hangeLog
estfile44.S.bz2
estfile44.expect.bz2
estfile45.S.bz2
estfile45.expect.bz2
ec32ff94cfcb52f0bd5a5b00968fd590d444c306 31-Dec-2008 Ulrich Drepper <drepper@redhat.com> Implement blendps opcode for x86/x86-64.
hangeLog
estfile44.S.bz2
estfile44.expect.bz2
estfile45.S.bz2
estfile45.expect.bz2
26d3c6fd8a1dd669f89254f4b48b34e0bf94b747 31-Dec-2008 Ulrich Drepper <drepper@redhat.com> Implement disassembly of blendpd instruction for x86/x86-64.
hangeLog
estfile44.S.bz2
estfile44.expect.bz2
estfile45.S.bz2
estfile45.expect.bz2
5a04b9f38a416d43b3197c5d06ff6e75dd8490b7 19-Dec-2008 Ulrich Drepper <drepper@redhat.com> Implement AMD 3DNOW disassembly.
hangeLog
estfile44.S.bz2
estfile44.expect.bz2
estfile45.S.bz2
estfile45.expect.bz2
a845f68bf43f90e0670ed6b33154f2aff98ad46b 03-Dec-2008 Roland McGrath <roland@redhat.com> src/
2008-12-02 Roland McGrath <roland@redhat.com>

* readelf.c (count_dwflmod, process_file): Don't presume encoding of
nonzero OFFSET argument to dwfl_getmodules.
hangeLog
akefile.am
wfl-bug-getmodules.c
un-dwfl-addr-sect.sh
un-strings-test.sh
est-subr.sh
b4d6f0f8064f2b706ea9035ef0393d8299671390 26-Aug-2008 Roland McGrath <roland@redhat.com> Fix up bogon and missing log entries from .pmachata.threads branch.
hangeLog
akefile.am
un-addrname-test.sh
estfile49.bz2
521c47d2a216fc64098c024fc5ed53532b485f32 11-Apr-2008 Roland McGrath <roland@redhat.com> src/
* strip.c (handle_elf): Don't keep sections that kept symbol tables
refer to. Instead, just be sure to preserve the original symbol
table in the debug file so those symbols go with their sections and
can be elided from the stripped version of the symbol table.


tests/
* testfile48.bz2, testfile48.bz2.debug: New data files.
* Makefile.am (EXTRA_DIST): Add them.
* run-strip-test8.sh: Use them.
hangeLog
akefile.am
un-strip-test.sh
un-strip-test8.sh
estfile16.bz2
estfile16.debug.bz2
estfile47.bz2
estfile48.bz2
estfile48.debug.bz2
13b69609bcd5638e6194d940855fea3dd0519605 01-Apr-2008 Roland McGrath <roland@redhat.com> backends/
* sparc_symbol.c (sparc_symbol_type_name): New function.
(sparc_dynamic_tag_name): New function.
(sparc_dynamic_tag_check): New function.
* sparc_init.c (sparc_init): Initialize those hooks.


libebl/
* ebldynamictagname.c (ebl_dynamic_tag_name): Use hex for unknown tag.
hangeLog
akefile.am
arly-offscn.c
un-early-offscn.sh
d11f9cbecac4a5ac3848a68597028d1924f3ff6b 26-Mar-2008 Roland McGrath <roland@redhat.com> libdwfl/
* dwfl_module_getdwarf.c (load_symtab): Don't return success for
SHT_DYNSYM, just set *SYMSCN like the comment says.
hangeLog
un-addrname-test.sh
834de6f38901b6add14b6f5f7dda8550638d98ec 23-Feb-2008 Ulrich Drepper <drepper@redhat.com> Add missing file
Add more TLS support for x86 linker.
ha1-tst.c
658094acf8d506867e62c10f70c51f65b8f7a829 22-Feb-2008 Roland McGrath <roland@redhat.com> tests/
2008-02-22 Roland McGrath <roland@redhat.com>

* run-elflint-test.sh: Typo fix.
hangeLog
un-disasm-x86-64.sh
un-disasm-x86.sh
un-elflint-test.sh
059c83e5db89955913a39fe6705acca571c32c3f 21-Feb-2008 Roland McGrath <roland@redhat.com> Finish elflint .gnu.attributes checking
hangeLog
akefile.am
un-elflint-test.sh
estfile46.bz2
c54785af87adcac067f90b1dbc238c29062cf683 01-Feb-2008 Ulrich Drepper <drepper@redhat.com> Implement SHA1 build-id handling in ld.
hangeLog
akefile.am
4d8bc811506292938ab66120e51c9810e1d21c3d 22-Jan-2008 Ulrich Drepper <drepper@redhat.com> propagate from branch 'com.redhat.elfutils.roland.pending' (head 6b4ecd4bacd23aaea4922adc10aab7908c45d23e)
to branch 'com.redhat.elfutils' (head 80a9de86977a1031c60888fe4072688434a961be)
hangeLog
estfile45.S.bz2
estfile45.expect.bz2
35f2fe6ed13dc314ccecdfe5cc5a155044019e18 14-Jan-2008 Ulrich Drepper <drepper@redhat.com> Fix a couple of x86-64 disassembler cases.
hangeLog
estfile45.S.bz2
estfile45.expect.bz2
fd47989094090138b0c857d067ac7ff05e7b6d91 12-Jan-2008 Ulrich Drepper <drepper@redhat.com> Add comment with absolute address to %rip based address modes.
hangeLog
estfile45.expect.bz2
679608b0dc76bd2a35d42a476c11e44accf1c63f 11-Jan-2008 Ulrich Drepper <drepper@redhat.com> Yet more disasm tests.
estfile45.S.bz2
estfile45.expect.bz2
2b31218bcd992ceb00989a56024474fac37c1445 11-Jan-2008 Ulrich Drepper <drepper@redhat.com> More tests.
estfile45.S.bz2
estfile45.expect.bz2
9dc49f58df3307f26c59b6eaa218c7cf7a2eca36 11-Jan-2008 Ulrich Drepper <drepper@redhat.com> More immediate operand fixes for x86 disassembler.
estfile45.S.bz2
estfile45.expect.bz2
96a739922f7bc651ecfacaf9c70168b015ec5e96 11-Jan-2008 Ulrich Drepper <drepper@redhat.com> Fix a few instructions with immediate arguments.
hangeLog
estfile45.S.bz2
estfile45.expect.bz2
e219f1c1b2a5a2e4f248714fdc93d031cdc5ee6a 09-Jan-2008 Ulrich Drepper <drepper@redhat.com> propagate from branch 'com.redhat.elfutils.roland.pending' (head 26cc2ce45739af072e7ff4fdab5e8eb7cd756d50)
to branch 'com.redhat.elfutils' (head bb519012dee7013b2cab5c2f5ed465cb3821b063)
hangeLog
wfl-bug-fd-leak.c
ff99322e986f8400995b4371dc39ea59e1252d5c 09-Jan-2008 Ulrich Drepper <drepper@redhat.com> Add x86-64 disassembler support.
hangeLog
akefile.am
un-disasm-x86-64.sh
un-disasm-x86.sh
un-disasm.sh
estfile44.S.bz2
estfile44.expect.bz2
estfile45.S.bz2
estfile45.expect.bz2
9e6925dd43d4e6572b69194232f6152f232e737d 04-Jan-2008 Ulrich Drepper <drepper@redhat.com> Add remaining Intel x86 opcodes.
hangeLog
estfile44.S.bz2
estfile44.expect.bz2
fea4e9d82a0bca499ee41ff6943518c0034e8c6d 04-Jan-2008 Ulrich Drepper <drepper@redhat.com> Yet more x86 disassembler changes.
estfile44.S.bz2
estfile44.expect.bz2
ee67b64540a734fec61a103e17e48d24f52ad2a3 03-Jan-2008 Ulrich Drepper <drepper@redhat.com> Add more SSE instructions for x86 disassembler.
hangeLog
estfile44.S.bz2
estfile44.expect.bz2
f231e276bda6395770ebb2fc2d1469def46c2707 02-Jan-2008 Ulrich Drepper <drepper@redhat.com> Cleanup after .disasm branch merge.
hangeLog
ine2addr.c
3cbdd387c752999255aea91600b5cfdefbeac7d0 02-Jan-2008 Ulrich Drepper <drepper@redhat.com> propagate from branch 'com.redhat.elfutils.disasm' (head d15b4eb794e81e477f9896fe82a74cb5ecf4514c)
to branch 'com.redhat.elfutils' (head eaacbf01f8cc89d043ec6eca9b5e35cb5c4cde06)
hangeLog
akefile.am
un-disasm.sh
estfile44.S.bz2
estfile44.expect.bz2
1a2e8f4f5bd2ca2aaed78d1cea3842eff2fa5295 16-Dec-2007 Roland McGrath <roland@redhat.com> backends/
2007-12-15 Roland McGrath <roland@redhat.com>

* ppc_regs.c (ppc_register_info): Return "spefscr", not "spr512".

tests/
2007-12-15 Roland McGrath <roland@redhat.com>

* run-allregs.sh: Change expected output for powerpc spefscr.
hangeLog
un-allregs.sh
e4c22ea004c02a58f5db5eb53794275344c17958 23-Oct-2007 Roland McGrath <roland@redhat.com> 2007-10-23 Roland McGrath <roland@redhat.com>

* linux-kernel-modules.c (report_kernel_archive): Reorder the kernel
module to appear first.
hangeLog
akefile.am
wfl-addr-sect.c
un-allregs.sh
un-dwfl-addr-sect.sh
est-subr.sh
estfile43.bz2
b597dfad924980dede10d7c19d87900b6172e599 16-Oct-2007 Ulrich Drepper <drepper@redhat.com> merge of '92c36bfdbc6468d1711c043b530e0dfe5abb6dec'
and 'c22c8c43f8f68b0bffd4d5ccdb2282c958268742'
hangeLog
akefile.am
wflmodtest.c
un-dwfl-bug-offline-rel.sh
un-elflint-test.sh
estfile42.bz2
59ea7f33f781e6e3f8c9d81d457e5d99eee8f1ce 04-Oct-2007 Roland McGrath <roland@redhat.com> src/
2007-10-04 Roland McGrath <roland@redhat.com>

* readelf.c (print_archive_index): New variable.
(options, parse_opt): Accept -c/--archive-index to set it.
(dump_archive_index): New function.
(process_file): Take new arg WILL_PRINT_ARCHIVE_INDEX.
Call dump_archive_index on archives if set.
(main): Update caller.
(any_control_option): Give it file scope, moved out of ...
(parse_opt): ... here.

tests/
2007-10-04 Roland McGrath <roland@redhat.com>

* run-readelf-test4.sh: New file.
* Makefile.am (TESTS, EXTRA_DIST): Add it.
hangeLog
akefile.am
un-readelf-test3.sh
un-readelf-test4.sh
f6b92284f1d1685c76565c3c255fd48875bc96b9 02-Oct-2007 Roland McGrath <roland@redhat.com> 2007-10-01 Roland McGrath <roland@redhat.com>

* run-readelf-test2.sh: New file.
* Makefile.am (TESTS, EXTRA_DIST): Add it.
hangeLog
akefile.am
un-readelf-test2.sh
c76f0b05676f6207affbfd85e75063db3b6eeccf 27-Sep-2007 Roland McGrath <roland@redhat.com> 2007-09-27 Roland McGrath <roland@redhat.com>

* alpha_retval.c: Use dwarf_attr_integrate and dwarf_hasattr_integrate.
* i386_retval.c: Likewise.
* ia64_retval.c: Likewise.
* ppc64_retval.c: Likewise.
* ppc_retval.c: Likewise.
* s390_retval.c: Likewise.
* sparc_retval.c: Likewise.
* x86_64_retval.c: Likewise.
hangeLog
akefile.am
un-addrname-test.sh
estfile41.bz2
cb6d865011ad98a8ac2018f072f396a2268739ca 23-Aug-2007 Roland McGrath <roland@redhat.com> readelf register printing sort order tweak
hangeLog
un-allregs.sh
099dd52727f2ce1a2c73cde82af8cd5e06368aec 14-Aug-2007 Roland McGrath <roland@redhat.com> missed testdata files
hangeLog
akefile.am
un-strip-test7.sh
estfile39.bz2
estfile40.bz2
estfile40.debug.bz2
42f686820a19806da629990bf7ae69a6a2fcfb1f 09-Aug-2007 Roland McGrath <roland@redhat.com> 2007-08-09 Roland McGrath <roland@redhat.com>

* dwfl-bug-report.c: Fix header inclusion.
hangeLog
akefile.am
wfl-bug-report.c
un-addrname-test.sh
estfile38.bz2
87d4780beb37f265fa89ffd909e77513ef516180 17-Jul-2007 Roland McGrath <roland@redhat.com> libdwfl/
2007-07-16 Roland McGrath <roland@redhat.com>

* dwfl_module.c (dwfl_report_module): Increment DWFL->nmodules when
reviving an existing module.

tests/
2007-07-16 Roland McGrath <roland@redhat.com>

* dwfl-bug-report.c: New file.
* Makefile.am (noinst_PROGRAMS, TESTS): Add it.
(dwfl_bug_report_LDADD): New variable.
hangeLog
akefile.am
wfl-bug-report.c
0bc057c1f4fae4f9e28023e61b073489f6529850 06-Jun-2007 Roland McGrath <roland@redhat.com> 2007-06-06 Roland McGrath <roland@frob.com>

* run-unstrip-test.sh: Declare testfile.unstrip for removal.
hangeLog
un-unstrip-test.sh
b0243863149acde9e42b25688c7c2959830e69a9 06-Jun-2007 Ulrich Drepper <drepper@redhat.com> Prepare for 0.128 release.

Minor fixes.

Update gettext files to 0.16.1.
hangeLog
akefile.am
53bce228d87bb64793bdfb54c4f798e0aea28cb1 23-May-2007 Roland McGrath <roland@redhat.com> backends/
2007-05-23 Roland McGrath <roland@redhat.com>

* alpha_regs.c (alpha_register_info): fp -> s6

tests/
2007-05-23 Roland McGrath <roland@redhat.com>

* run-allregs.sh: Update expected Alpha results.
hangeLog
un-allregs.sh
9aa8ef7fbb5ada14b7c4585d6c1361aa5eab6f88 18-May-2007 Roland McGrath <roland@redhat.com> src/
2007-05-18 Roland McGrath <roland@redhat.com>

* unstrip.c (copy_elided_sections): Match up non-NOBITS sections with
stripped file, so as not to duplicate a section copied in both.

* strip.c (handle_elf): Keep SHT_NOTE section copies in the debug file.

tests/
2007-05-18 Roland McGrath <roland@redhat.com>

* run-strip-test4.sh (stripped, debugfile): Use new reference files.
* testfile37.bz2: New data file.
* testfile37.debug.bz2: New data file.
* run-unstrip-test2.sh: New file.
* Makefile.am (TESTS, EXTRA_DIST): Add them.
hangeLog
akefile.am
un-dwfl-bug-offline-rel.sh
un-strip-test.sh
un-strip-test4.sh
un-strip-test6.sh
un-unstrip-test.sh
un-unstrip-test2.sh
estfile35.bz2
estfile35.debug.bz2
estfile36.bz2
estfile36.debug.bz2
estfile37.bz2
estfile37.debug.bz2
2be0291b2cc06fc253c73a1564b126580c8f5ea2 27-Apr-2007 Roland McGrath <roland@redhat.com> 2007-04-26 Roland McGrath <roland@redhat.com>

* run-elflint-self.sh: Run all tests even if one fails.
hangeLog
un-allregs.sh
un-elflint-self.sh
4be1524398af8e24011cfdfa77c66832f8654a56 25-Apr-2007 Roland McGrath <roland@redhat.com> 2007-04-24 Roland McGrath <roland@redhat.com>

* run-strip-test.sh: When we saved the debug info, test unstrip too.
hangeLog
un-allregs.sh
un-strip-test.sh
43da9895c6d828ceae65a47f2337e8ef24eb97c1 17-Apr-2007 Roland McGrath <roland@redhat.com> libdw/
2007-04-16 Roland McGrath <roland@redhat.com>

* libdw.map (ELFUTILS_0.127): Add dwfl_module_address_section.

libdwfl/
2007-04-16 Roland McGrath <roland@redhat.com>

* derelocate.c (cache_sections): Apply bias to sh_addr.
(compare_secrefs): Fix address comparison to avoid signed overflow.
(find_section): New function, broken out of ...
(dwfl_module_relocate_address): ... here, call it.
(check_module): New function, broken out of ...
(dwfl_module_relocate_address): ... here, call it.
(dwfl_module_address_section): New function.
* libdwfl.h: Declare it.

tests/
2007-04-16 Roland McGrath <roland@redhat.com>

* dwfl-addr-sect.c: New file.
* Makefile.am (noinst_PROGRAMS): Add it.
(dwfl_addr_sect_LDADD): New variable.
hangeLog
akefile.am
wfl-addr-sect.c
et-files.c
un-get-files.sh
5f6a41a8484d110cb38b0989a3a240dc28fd7310 02-Apr-2007 Roland McGrath <roland@redhat.com> backends/
2007-04-01 Roland McGrath <roland@redhat.com>

* x86_64_regs.c (x86_64_register_info): Add more registers from newer
ABI spec.

tests/
2007-04-01 Roland McGrath <roland@redhat.com>

* run-allregs.sh: Updated expected output for x86_64.
hangeLog
un-allregs.sh
6258e7486eb3eed6e50005946795c5fbf73aa106 13-Mar-2007 Ulrich Drepper <drepper@redhat.com> propagate from branch 'com.redhat.elfutils.roland.pending' (head e0c7abd450c9e49093cfae30af8a22782a74a403)
to branch 'com.redhat.elfutils' (head 2c784d50eee72e33972c333138a3a28df304da63)
hangeLog
akefile.am
wfl-bug-fd-leak.c
wflmodtest.c
aa915fd3d70b4cbe4581f9ec170d986c6ba35063 05-Feb-2007 Ulrich Drepper <drepper@redhat.com> propagate from branch 'com.redhat.elfutils.roland.pending' (head c44dcfac5b545aecb173fede31f34cb003be0173)
to branch 'com.redhat.elfutils' (head 4196d4e01486bdeb0c0632291881d1c6d7163fab)
hangeLog
akefile.am
un-addrname-test.sh
un-elflint-test.sh
estfile32.bz2
estfile33.bz2
estfile34.bz2
ce0bdb6ee5f977af9e565f2871ba2b1b37d162a5 05-Feb-2007 Ulrich Drepper <drepper@redhat.com> Implement ar program.

Relax elflint in GNU ld mode for latest idiosyncracies.
hangeLog
akefile.am
rls.c
un-ranlib-test2.sh
cd4992ca6b559af381313de4f4ecaf6550887979 10-Jan-2007 Ulrich Drepper <drepper@redhat.com> Improve diagnostic message of run-elflint-self.sh.
hangeLog
un-elflint-self.sh
ba949b3fdaf4fa8631af0d999a44d71c0964b5ce 10-Jan-2007 Roland McGrath <roland@redhat.com> 2007-01-10 Roland McGrath <roland@redhat.com>

* dwfl-bug-addr-overflow.c: New file.
* Makefile.am (TESTS): Add it.
(dwfl_bug_addr_overflow_LDADD): New variable.
hangeLog
akefile.am
wfl-bug-addr-overflow.c
56bc0b83ea81b7e959aaa4e1d01f8b36f2804a52 18-Dec-2006 Ulrich Drepper <drepper@redhat.com> Lock down libelf and elflint a bit more after import of Roland's changes.
akefile.am
sg_tst.c
8190db6a86a37aec86c81626ab1b083c96aff891 18-Dec-2006 Roland McGrath <roland@redhat.com> propagate from branch 'com.redhat.elfutils' (head b4944cf70801d9dac056f4f80ef1334e5acb8bdc)
to branch 'com.redhat.elfutils.roland.pending' (head e7e402c668fb0670fc5f6b6a522853ae88f32f11)
hangeLog
sg_tst.c
c373d850ec9ca342f4c71d5e287c8d8bf0723cd6 10-Oct-2006 Roland McGrath <roland@redhat.com> 2006-10-09 Roland McGrath <roland@redhat.com>

* ia64_symbol.c (ia64_reloc_simple_type): Treat SECREL types as simple.
hangeLog
llregs.c
un-allregs.sh
un-arextract.sh
un-arsymtest.sh
un-native-test.sh
un-strings-test.sh
19db85901e6d3b620749386f1c5692661dcb74d8 03-Aug-2006 Roland McGrath <roland@redhat.com> backends/
2006-08-03 Roland McGrath <roland@redhat.com>

* sparc_regs.c (sparc_register_name): List 32 FPU regs only for
EM_SPARC. EM_SPARC32PLUS also has 64.


tests/
2006-08-03 Roland McGrath <roland@redhat.com>

* run-allregs.sh: Add sparc cases.
* testfile30.bz2: New data file.
* testfile31.bz2: New data file.
* Makefile.am (EXTRA_DIST): Add them.
hangeLog
akefile.am
un-allregs.sh
estfile30.bz2
estfile31.bz2
950246297c03f9ce25f645470250619e40d71018 21-Jul-2006 Roland McGrath <roland@redhat.com> backends/
2006-07-21 Roland McGrath <roland@redhat.com>

* i386_regs.c (i386_register_name): Fix return value when using stpcpy.
* ppc_regs.c (ppc_register_name): Likewise.
* s390_regs.c (s390_register_name): Likewise.

* ia64_retval.c: New file.
* Makefile.am (ia64_SRCS): Add it.
* ia64_init.c (ia64_init): Install return_value_location hook.

* ia64_regs.c: New file.
* Makefile.am (ia64_SRCS): Add it.
* ia64_init.c (ia64_init): Install register_name hook.


tests/
2006-07-21 Roland McGrath <roland@redhat.com>

* allregs.c (struct reginfo): Increase size of name.
(one_register): Assert that it's big enough.
hangeLog
llregs.c
47fd77e7bf5a3df32da9f05d6cbdd9d821edee90 12-Jul-2006 Roland McGrath <roland@redhat.com> Rejigger botcho brancho.
akefile.am
cc41562f94052f307da4429f33cc18c7d510b2f5 12-Jul-2006 Ulrich Drepper <drepper@redhat.com> propagate from branch 'com.redhat.elfutils.roland.pending' (head e5cfdd13aa39dfae16b905fd57ff56ad8a131bb5)
to branch 'com.redhat.elfutils' (head 60222fc1981540f15e674b6705fd7a6f628f95a4)
akefile.am
b43797284f61e63e0521e1c7263eb379bdd26995 05-Apr-2006 Roland McGrath <roland@redhat.com> libelf/
2006-04-04 Roland McGrath <roland@redhat.com>

* elf32_updatefile.c (updatemmap): Handle other-endian case.


tests/
2006-04-04 Roland McGrath <roland@redhat.com>

* run-bug1-test.sh: Test a second case, to cover both byte orders.
* testfile29.bz2: New file.
* testfile29.rdwr.bz2: New file.
* Makefile.am (EXTRA_DIST): Add them.
hangeLog
akefile.am
un-bug1-test.sh
estfile29.bz2
estfile29.rdwr.bz2
8bf747a4216b8fa84b1681dc45ff527e406ae64c 05-Apr-2006 Roland McGrath <roland@redhat.com> Back out typo
un-bug1-test.sh
6d0c2e8a2d62c8255276620199ef250bd9457d9e 05-Apr-2006 Roland McGrath <roland@redhat.com> Clean up whitespace in license text.
un-allfcts.sh
un-arextract.sh
un-arsymtest.sh
un-bug1-test.sh
un-ecp-test.sh
un-ecp-test2.sh
un-elflint-self.sh
un-elflint-test.sh
un-get-aranges.sh
un-get-files.sh
un-get-lines.sh
un-get-pubnames.sh
un-line2addr.sh
un-ranlib-test.sh
un-ranlib-test2.sh
un-ranlib-test3.sh
un-ranlib-test4.sh
un-readelf-test1.sh
un-show-abbrev.sh
un-show-ciefde.sh
un-show-die-info.sh
un-strings-test.sh
un-strip-test.sh
un-strip-test2.sh
un-strip-test3.sh
1e9ef50681e20ef14c2ba38aef37a71ff148be08 05-Apr-2006 Ulrich Drepper <drepper@redhat.com> Fix FSF address. No exception for libdwarf.
akefile.am
ddrscopes.c
llfcts.c
llregs.c
rextract.c
rsymtest.c
sm-tst1.c
sm-tst2.c
sm-tst3.c
sm-tst4.c
sm-tst5.c
sm-tst6.c
sm-tst7.c
sm-tst8.c
sm-tst9.c
onfigure.ac
wflmodtest.c
cp.c
ind-prologues.c
uncretval.c
uncscopes.c
et-aranges.c
et-files.c
et-lines.c
et-pubnames.c
ash.c
ine2addr.c
sg_tst.c
ewfile.c
ewscn.c
un-addrscopes.sh
un-allfcts.sh
un-allregs.sh
un-arextract.sh
un-arsymtest.sh
un-ecp-test.sh
un-ecp-test2.sh
un-elflint-self.sh
un-elflint-test.sh
un-find-prologues.sh
un-funcscopes.sh
un-get-aranges.sh
un-get-files.sh
un-get-lines.sh
un-get-pubnames.sh
un-line2addr.sh
un-native-test.sh
un-ranlib-test.sh
un-ranlib-test2.sh
un-ranlib-test3.sh
un-ranlib-test4.sh
un-readelf-test1.sh
un-show-abbrev.sh
un-show-ciefde.sh
un-show-die-info.sh
un-strings-test.sh
un-strip-test.sh
un-strip-test2.sh
un-strip-test3.sh
aridx.c
cnnames.c
ectiondump.c
how-abbrev.c
how-ciefde.c
how-die-info.c
howptable.c
est-nlist.c
est-subr.sh
est-wrapper.sh
pdate1.c
pdate2.c
pdate3.c
pdate4.c
361df7da6dfecd817b27e62b91752ac316d7cdd4 04-Apr-2006 Ulrich Drepper <drepper@redhat.com> propagate from branch 'com.redhat.elfutils.roland.pending' (head 4f8fc821345feef58624f0aa5b470d4827577d8c)
to branch 'com.redhat.elfutils' (head 76e26cb54695fd3b21ee8fb5be3036bd68200633)
akefile.am
ddrscopes.c
llfcts.c
llregs.c
rextract.c
rsymtest.c
sm-tst1.c
sm-tst2.c
sm-tst3.c
sm-tst4.c
sm-tst5.c
sm-tst6.c
sm-tst7.c
sm-tst8.c
sm-tst9.c
wflmodtest.c
cp.c
ind-prologues.c
uncretval.c
uncscopes.c
et-aranges.c
et-files.c
et-lines.c
et-pubnames.c
ash.c
ine2addr.c
sg_tst.c
ewfile.c
ewscn.c
un-addrscopes.sh
un-allfcts.sh
un-allregs.sh
un-arextract.sh
un-arsymtest.sh
un-ecp-test.sh
un-ecp-test2.sh
un-elflint-self.sh
un-elflint-test.sh
un-find-prologues.sh
un-funcscopes.sh
un-get-aranges.sh
un-get-files.sh
un-get-lines.sh
un-get-pubnames.sh
un-line2addr.sh
un-native-test.sh
un-ranlib-test.sh
un-ranlib-test2.sh
un-ranlib-test3.sh
un-ranlib-test4.sh
un-readelf-test1.sh
un-show-abbrev.sh
un-show-ciefde.sh
un-show-die-info.sh
un-strings-test.sh
un-strip-test.sh
un-strip-test2.sh
un-strip-test3.sh
aridx.c
cnnames.c
ectiondump.c
how-abbrev.c
how-ciefde.c
how-die-info.c
howptable.c
est-nlist.c
est-subr.sh
est-wrapper.sh
pdate1.c
pdate2.c
pdate3.c
pdate4.c
ba718b11356bdb0caea95a49a06ddb61a843cd3e 04-Apr-2006 Ulrich Drepper <drepper@redhat.com> Test case for problem in libelf with writing out existing ELF file with
different location of the section headers.
hangeLog
akefile.am
dwrmmap.c
un-bug1-test.sh
estfile28.bz2
estfile28.rdwr.bz2
dd7e22b4a0e47dfab08a14e7fa9bd1fa8b1a968c 10-Mar-2006 Roland McGrath <roland@redhat.com> src/
2006-03-09 Roland McGrath <roland@redhat.com>

* Makefile.am (AM_LDFLAGS): New variable.

tests/
2006-03-09 Roland McGrath <roland@redhat.com>

* Makefile.am (AM_LDFLAGS): Define to pass -rpath-link.
hangeLog
akefile.am
060fa05452f821a1c2e15b6a9ad1a4427e3fdd64 02-Mar-2006 Roland McGrath <roland@redhat.com> src/
2006-03-01 Roland McGrath <roland@redhat.com>

* readelf.c (dwarf_tag_string, dwarf_attr_string): Update name tables
for dwarf.h changes matching 3.0 spec.
(dwarf_encoding_string, dwarf_lang_string, print_ops): Likewise.


tests/
2006-03-01 Roland McGrath <roland@redhat.com>

* show-die-info.c (tagnames, attrs): Update name tables for dwarf.h
changes matching 3.0 spec.
hangeLog
how-die-info.c
c40f58a64aec04758e9c50eda1b556789f74bdb9 13-Jan-2006 Roland McGrath <roland@redhat.com> 2006-01-13 Roland McGrath <roland@redhat.com>

* run-native-test.sh: Do kill -9 and reap explicitly at end, since
bash 3.1 whines when it's done in the trap 0 handler.
hangeLog
un-native-test.sh
4b248ceaa6c5b348b563ca34cc4303ed7533ed3f 12-Jan-2006 Roland McGrath <roland@redhat.com> 2006-01-11 Roland McGrath <roland@redhat.com>

* testfile26.bz2: New data file.
* testfile27.bz2: New data file.
* Makefile.am (EXTRA_DIST): Add them.
* run-allregs.sh: Test s390 data.
hangeLog
akefile.am
un-allregs.sh
estfile26.bz2
estfile27.bz2
124a798e51d7b29f1aa72fbe0bb7041dd3f0d727 15-Dec-2005 Roland McGrath <roland@redhat.com> 2005-12-14 Roland McGrath <roland@redhat.com>

* run-native-test.sh: Redirect output from native test process.
hangeLog
un-native-test.sh
94d26ad7385888b46e75dc1949ff7e424288c00d 14-Dec-2005 Roland McGrath <roland@redhat.com> 2005-12-13 Roland McGrath <roland@redhat.com>

* allregs.c (main): Fail if we find no registers.

* run-native-test.sh: New file.
* Makefile.am (TESTS, EXTRA_DIST): Add it.
hangeLog
akefile.am
llregs.c
un-native-test.sh
ba72ab102a8ca35371072311379d2474f8ec674f 12-Dec-2005 Roland McGrath <roland@redhat.com> merge of 9439e2a1c1530d75ff753bccf8e64bd1f560e60f
and c32e76fd50f8c65de92bccb5f68a19d91d1dedc9
hangeLog
akefile.am
un-readelf-test1.sh
d804e72cf0b39827289d2d08a74fa12e0d8a39b9 08-Dec-2005 Roland McGrath <roland@redhat.com> 2005-12-07 Roland McGrath <roland@redhat.com>

* ecp.c (main): Use elf_end to clean up.
hangeLog
akefile.am
cp.c
un-readelf-test1.sh
f7e1bd98262ea0ee9567b85d95f3b204134e662a 10-Dec-2005 Ulrich Drepper <drepper@redhat.com> Fix generation of strings with relocation type names and add test case.
hangeLog
akefile.am
un-readelf-test1.sh
994b4899278199fc4d307780dac0ea50b238bc74 05-Dec-2005 Roland McGrath <roland@redhat.com> merge of 2cc527e6d8c8ff19dab478f7d12e58f1cfa6d6f5
and 7b542932f3e2947183b45bdbf39d448f457da9fd
hangeLog
akefile.am
ddrscopes.c
llregs.c
overage.sh
ind-prologues.c
uncretval.c
uncscopes.c
ine2addr.c
un-allregs.sh
9365d2c3439c524c9ca0b9d70f0a559d392a7e05 19-Nov-2005 Roland McGrath <roland@redhat.com> 2005-11-18 Roland McGrath <roland@redhat.com>

* Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New variable.


tests/
2005-11-18 Roland McGrath <roland@redhat.com>

* test-subr.sh (installed_testrun): Treat /usr/lib64 like /usr/lib.
* test-wrapper.sh: Likewise.
hangeLog
est-subr.sh
est-wrapper.sh
af74f5caf37125be18b1134b3584a7db383d8486 18-Nov-2005 Roland McGrath <roland@redhat.com> 2005-11-17 Roland McGrath <roland@redhat.com>

* Makefile.am (installed_TESTS_ENVIRONMENT): Set libdir, bindir in
environment for test-wrapper.sh.
* test-wrapper.sh: Set LD_LIBRARY_PATH from ${libdir} if not /usr/lib.
* test-subr.sh (installed_testrun): Likewise.
Use explicit path in ${bindir}.
hangeLog
akefile.am
est-subr.sh
est-wrapper.sh
575dd39916d6fb5e79428b15f1ab5c7ece249b60 18-Nov-2005 Roland McGrath <roland@redhat.com> 2005-11-17 Roland McGrath <roland@redhat.com>

* Makefile.am (installcheck-local): Fix typo in last change.
hangeLog
akefile.am
e47ab76f02c2a4f4d802ec298969ba67956435fe 17-Nov-2005 Roland McGrath <roland@redhat.com> Update new test after merge.
hangeLog
akefile.am
overage.sh
uncretval.c
d7f8d0caa7a357f9f4765e5dc93255f5057eba2e 17-Nov-2005 Roland McGrath <roland@redhat.com> 2005-11-16 Roland McGrath <roland@redhat.com>

* configure.ac: Define HAVE_LIBASM and STANDALONE conditionals.
In config.h, define ELFUTILS_HEADER macro.


tests/
2005-11-16 Roland McGrath <roland@redhat.com>

* configure.ac: New file, for standalone build/dist of test suite.
* Makefile.am [!STANDALONE] (INCLUDES): Don't define it.
(asm_TESTS): New variable, broken out of ...
(TESTS): ... here. Also remove msg_tst.
[!STANDALONE] (TESTS, noinst_PROGRAMS): Add in $(asm_TESTS), msg_tst.
(installed_TESTS_ENVIRONMENT): New variable.
[STANDALONE] (TESTS_ENVIRONMENT): Use that.
[!STANDALONE] (installcheck-local): Likewise.
[STANDALONE] (libdw, libelf, libasm, libebl): Define using -lfoo.
* addrscopes.c: Include <config.h>.
Use ELFUTILS_HEADER macro in #include of installed elfutils/ headers.
* allfcts.c: Likewise.
* asm-tst1.c: Likewise.
* asm-tst2.c: Likewise.
* asm-tst3.c: Likewise.
* asm-tst4.c: Likewise.
* asm-tst5.c: Likewise.
* asm-tst6.c: Likewise.
* asm-tst7.c: Likewise.
* asm-tst8.c: Likewise.
* asm-tst9.c: Likewise.
* dwflmodtest.c: Likewise.
* find-prologues.c: Likewise.
* funcscopes.c: Likewise.
* get-aranges.c: Likewise.
* get-files.c: Likewise.
* get-lines.c: Likewise.
* get-pubnames.c: Likewise.
* line2addr.c: Likewise.
* newscn.c: Likewise.
* show-abbrev.c: Likewise.
* show-die-info.c: Likewise.
* update3.c: Likewise.
* update4.c: Likewise.

* dwflmodtest.c (print_instance): Don't use INTUSE.
(options): Don't use N_ macro.
hangeLog
akefile.am
ddrscopes.c
llfcts.c
sm-tst1.c
sm-tst2.c
sm-tst3.c
sm-tst4.c
sm-tst5.c
sm-tst6.c
sm-tst7.c
sm-tst8.c
sm-tst9.c
onfigure.ac
wflmodtest.c
ind-prologues.c
uncscopes.c
et-aranges.c
et-files.c
et-lines.c
et-pubnames.c
ine2addr.c
ewscn.c
how-abbrev.c
how-die-info.c
pdate3.c
pdate4.c
1b8b446a794ac4babfd687ca48de32e5f4aaa539 16-Nov-2005 Roland McGrath <roland@redhat.com> 2005-11-15 Roland McGrath <roland@redhat.com>

* configure.ac: Add --enable-tests-rpath option.


tests/
2005-11-15 Roland McGrath <roland@redhat.com>

* Makefile.am (BUILD_RPATH): New variable.
[TESTS_RPATH] (AM_LDFLAGS): Pass -rpath option using that value.
(tests_rpath): New variable.
(installcheck-local): Pass it to test-wrapper.sh.
* test-wrapper.sh: In "installed" format, take yes/no value
for elfutils_tests_rpath, which export. When running a test
binary for installcheck, exit 77.
* test-subr.sh (installed_testrun): When running a test binary
for installcheck, exit 77 if $elfutils_tests_rpath = yes.
hangeLog
akefile.am
un-addrscopes.sh
un-allfcts.sh
un-ecp-test.sh
un-ecp-test2.sh
un-elflint-self.sh
un-elflint-test.sh
un-find-prologues.sh
un-funcscopes.sh
un-get-aranges.sh
un-get-files.sh
un-get-lines.sh
un-get-pubnames.sh
un-line2addr.sh
un-ranlib-test.sh
un-ranlib-test2.sh
un-show-abbrev.sh
un-show-ciefde.sh
un-show-die-info.sh
un-strings-test.sh
un-strip-test.sh
est-subr.sh
est-wrapper.sh
3840c1ccabc9467ee452a9850e7e2392e1febe3b 09-Nov-2005 Ulrich Drepper <drepper@redhat.com> Fix bug in line2addr:handle_module. Missng print parameter.
hangeLog
ine2addr.c
6724c90d02659f7466b67b357563042e403d154e 28-Oct-2005 Roland McGrath <roland@redhat.com> NEWS updates
hangeLog
llfcts.c
wflmodtest.c
ind-prologues.c
uncscopes.c
07d4f2fc1cb53f170a71bc13617bbdd9cb1c3c60 28-Oct-2005 Roland McGrath <roland@redhat.com> libdw/
Fixes to last changes.

tests/
2005-10-27 Roland McGrath <roland@redhat.com>

* run-find-prologues.sh: New file.
* Makefile.am (TESTS, EXTRA_DIST): Add it.
hangeLog
akefile.am
ind-prologues.c
un-find-prologues.sh
3bbc950166dc00cb57bebf794f51257aa703facd 02-Sep-2005 Ulrich Drepper <drepper@redhat.com> Make sure all files created by the tests are removed.
hangeLog
un-strings-test.sh
7d65d01496e465606740033f6ba76b42ddb9815b 31-Aug-2005 Ulrich Drepper <drepper@redhat.com> Use correct exit code in test shell scripts if test cannot be performed.
hangeLog
un-addrscopes.sh
un-allfcts.sh
un-ecp-test.sh
un-ecp-test2.sh
un-elflint-test.sh
un-funcscopes.sh
un-get-aranges.sh
un-get-files.sh
un-get-lines.sh
un-get-pubnames.sh
un-line2addr.sh
un-ranlib-test2.sh
un-show-abbrev.sh
un-show-ciefde.sh
un-show-die-info.sh
un-strings-test.sh
un-strip-test.sh
5a6f8d18a8c575cb30fea083b238d39d18f63083 30-Aug-2005 Ulrich Drepper <drepper@redhat.com> coverage.sh would bomb if there is no .gcno file.
hangeLog
overage.sh
39cec7a022159c4d05867c3ca5d8f5c4df462d95 30-Aug-2005 Ulrich Drepper <drepper@redhat.com> Add coverage analysis of test suite.
hangeLog
akefile.am
overage.sh
fbe998a0b1be1f006bc72e5138fb38c188cc0433 29-Aug-2005 Ulrich Drepper <drepper@redhat.com> merge of 333c187506c852455e9f7be44fa9adc360416217
and 79955b942e3f0ddc71117feea5754df61edcc42a
hangeLog
akefile.am
un-strings-test.sh
b0bc2788cfa2012bfbcc68cac74cd39e3f5a8085 27-Aug-2005 Roland McGrath <roland@redhat.com> 2005-08-27 Roland McGrath <roland@redhat.com>

* addrscopes.c (handle_address): Apply bias to PC addresses.
hangeLog
ddrscopes.c
c94e47d268b098cfb8149cbb51b4e7fc9c8889f1 27-Aug-2005 Roland McGrath <roland@redhat.com> Items pending 0.115
un-funcscopes.sh
71e15a01742e5d5de9c6260d4526146be54e5a8a 27-Aug-2005 Roland McGrath <roland@redhat.com> libdw/
2005-08-27 Roland McGrath <roland@redhat.com>

* dwarf_getscopes.c (dwarf_getscopes): Rewritten using
__libdw_visit_scopes.

* dwarf_getscopes_die.c: New file.
* Makefile.am (libdw_a_SOURCES): Add it.
* libdw.h: Declare dwarf_getscopes_die.
* libdw.map: Bump to 0.115 and add it.

* libdw_visit_scopes.c (__libdw_visit_scopes): Pass a struct
containing a DIE and its parent pointer, instead of just Dwarf_Die.
Take two functions for both preorder and postorder visitors.
* libdwP.h: Update decl.
(struct Dwarf_Die_Chain): New type.
* dwarf_func_inline.c: Update uses.

* dwarf_diename.c (dwarf_diename): Use dwarf_attr_integrate.
Add INTDEF.
* libdwP.h: Add INTDECL.
* dwarf_func_name.c (dwarf_func_name): Use dwarf_diename.


src/
2005-08-27 Roland McGrath <roland@redhat.com>

* addr2line.c (dwarf_diename_integrate): Function removed.
(print_dwarf_function): Use plain dwarf_diename.


tests/
2005-08-27 Roland McGrath <roland@redhat.com>

* run-funcscopes.sh: New file.
* testfile25.bz2: New data file.
* Makefile.am (TESTS, EXTRA_DIST): Add them.

2005-08-26 Roland McGrath <roland@redhat.com>

* addrscopes.c (dwarf_diename_integrate): Removed.
(print_vars, handle_address): Use plain dwarf_diename.

2005-08-25 Roland McGrath <roland@redhat.com>

* funcscopes.c: New file.
* Makefile.am (noinst_PROGRAMS): Add it.
(funcscopes_LDADD): New variable.

* run-addrscopes.sh: Add another case.
* testfile24.bz2: New data file.
* Makefile.am (EXTRA_DIST): Add it.

* addrscopes.c (handle_address): Take new argument IGNORE_INLINES,
pass it to dwarf_getscopes.
(main): Pass it, true when '=' follows an address.
hangeLog
akefile.am
ddrscopes.c
uncscopes.c
un-addrscopes.sh
un-funcscopes.sh
estfile24.bz2
estfile25.bz2
4c305da9de0ecfe9af64cb6787b2b4b8a6aa8dd5 25-Aug-2005 Roland McGrath <roland@redhat.com> 2005-08-24 Roland McGrath <roland@redhat.com>

* line2addr.c (print_address): Omit () for DSOs.
hangeLog
akefile.am
ine2addr.c
un-strings-test.sh
3d413d4b05005bbd4c384b60e3797caf57f120d5 28-Aug-2005 Ulrich Drepper <drepper@redhat.com> Implement --enable-gconv option for configure.
hangeLog
akefile.am
28f5be122f9fc70056082b63db119b256bc029c4 28-Aug-2005 Ulrich Drepper <drepper@redhat.com> More complete changelog.
hangeLog
8a5209535d6477926de0a129bdf7f129bd57e236 28-Aug-2005 Ulrich Drepper <drepper@redhat.com> Add missing ChangeLog update.
hangeLog
83dd0d6ac034aab02c68f5957b3f4e7c9e587052 28-Aug-2005 Ulrich Drepper <drepper@redhat.com> Fix printing of location of string in strings.
Add test for strings.
spec file update.
akefile.am
un-strings-test.sh
958bf13d9ffa6d8f4f3546f1b10808a9999b0ef6 24-Aug-2005 Ulrich Drepper <drepper@redhat.com> Remove file test leaves behind.
hangeLog
un-line2addr.sh
f81343a6ed3066a9d466f4551b6355d2a5411927 24-Aug-2005 Ulrich Drepper <drepper@redhat.com> mudlfap binaries should find the libebl modules.
hangeLog
akefile.am
2eb660fdc52b3aaab6215fc245743d0edfb251f4 24-Aug-2005 Ulrich Drepper <drepper@redhat.com> Fix building with mudflap.
hangeLog
akefile.am
d17fac7e89666b47811581b10b5ca0d253a3a82d 23-Aug-2005 Roland McGrath <roland@redhat.com> 2005-08-23 Roland McGrath <roland@redhat.com>

* dwarf_attr_integrate.c (dwarf_attr_integrate): Treat
DW_AT_specification the same as DW_AT_abstract_origin.
hangeLog
akefile.am
ine2addr.c
un-line2addr.sh
estfile23.bz2
f5fda7d93acc0c9b0da0173fee746ced8034d8d0 19-Aug-2005 Roland McGrath <roland@redhat.com> libdw/
2005-08-18 Roland McGrath <roland@redhat.com>

* dwarf_getscopes.c (dwarf_getscopes): Include the CU itself as
outermost scope in the results.

tests/
2005-08-18 Roland McGrath <roland@redhat.com>

* run-addrscopes.sh: New file.
* testfile22.bz2: New data file.
* Makefile.am (TESTS, EXTRA_DIST): Add them.
hangeLog
akefile.am
un-addrscopes.sh
estfile22.bz2
9a1f3654af5f63ca127894e07812d90411b4d56f 18-Aug-2005 Roland McGrath <roland@redhat.com> 2005-08-18 Roland McGrath <roland@redhat.com>

* addrscopes.c: New file.
* Makefile.am (noinst_PROGRAMS): Add it.
(addrscopes_LDADD): New variable.
hangeLog
akefile.am
ddrscopes.c
837b522ee677ef371b800b8b08c5658293fe03ca 16-Aug-2005 Ulrich Drepper <drepper@redhat.com> Fix run-elflint-self test for static builds (mudflap or gprof).
hangeLog
un-elflint-self.sh
e48c05b6262663024aba80365ebe003b64a3015d 15-Aug-2005 Ulrich Drepper <drepper@redhat.com> Type in makefile change.
akefile.am
5d83229c852a7e7359c12b58864751db2c755926 15-Aug-2005 Ulrich Drepper <drepper@redhat.com> Implement ranlib. This required one little extension to libelf.
akefile.am
un-ranlib-test.sh
un-ranlib-test2.sh
un-ranlib-test3.sh
un-ranlib-test4.sh
estfile19.bz2
estfile19.index.bz2
estfile20.bz2
estfile20.index.bz2
estfile21.bz2
estfile21.index.bz2
1ecb606f5af22838bf42b50dcc581d2b0f9191fe 15-Aug-2005 Roland McGrath <roland@redhat.com> libdw/
2005-08-15 Roland McGrath <roland@redhat.com>

* dwarf_func_inline.c: New file.
* Makefile.am (libdw_a_SOURCES): Add it.
* libdw.h: Declare dwarf_func_inline, dwarf_func_inline_instances.
* libdw.map: Add them.

* dwarf_func_die.c: New file.
* Makefile.am (libdw_a_SOURCES): Add it.
* libdw.h: Declare dwarf_func_die.
* libdw.map: Add it. Bump version to ELFUTILS_0.114.

tests/
2005-08-15 Roland McGrath <roland@redhat.com>

* dwflmodtest.c (print_instance, print_inline): New functions.
(print_func): Call print_inline.
(options, parse_opt): Grok -i/--inlines.
hangeLog
wflmodtest.c
8d18c29eeff6a8a3dd4951e3b3c7e2996d971d3e 07-Aug-2005 Roland McGrath <roland@redhat.com> 2005-08-07 Roland McGrath <roland@redhat.com>

* dwflmodtest.c: Print function details only if -f flag is given.
hangeLog
wflmodtest.c
65f065a7e048fedfcaf4499260b48de259a47018 07-Aug-2005 Ulrich Drepper <drepper@redhat.com> merge of 647703d119f6504ae6e88716cebb7ac031005518
and b4004520e8e502f5e04c70ec25adf09fb9331acb
un-elflint-self.sh
b03b05785914250d53d31e966373617f6104bd9d 07-Aug-2005 Ulrich Drepper <drepper@redhat.com> Add support for a few missing DT_ and R_* values.
Import new elf.h.
un-elflint-self.sh
b944695be7719b6f98c762fe7847245efb3d609b 07-Aug-2005 Roland McGrath <roland@redhat.com> Add omitted file.
un-elflint-self.sh
637963b564240fe6db4908b28238b75aa0758a06 07-Aug-2005 Ulrich Drepper <drepper@redhat.com> Relax elflint a bit.
Run elflint on all programs and DSOs.
hangeLog
akefile.am
47be795df365174601a08535bf61d22301697ef8 07-Aug-2005 Ulrich Drepper <drepper@redhat.com> Implement --enable-gprof option in configure script.
hangeLog
akefile.am
e59e2ddbe348c77f808385ccf6f067d5a6027247 03-Aug-2005 Ulrich Drepper <drepper@redhat.com> Move .mt-attrs file to top level.
mt-attrs
un-allfcts.sh
un-arextract.sh
un-arsymtest.sh
un-ecp-test.sh
un-ecp-test2.sh
un-elflint-test.sh
un-get-aranges.sh
un-get-files.sh
un-get-lines.sh
un-get-pubnames.sh
un-line2addr.sh
un-show-abbrev.sh
un-show-ciefde.sh
un-show-die-info.sh
un-strip-test.sh
un-strip-test2.sh
un-strip-test3.sh
un-strip-test4.sh
un-strip-test5.sh
un-strip-test6.sh
a38998e815ccde5d90ff0800c31da255eb3430d3 03-Aug-2005 Ulrich Drepper <drepper@redhat.com> Add some patches from the disasm-branch branch.

The asm_begin interface changed.
In text mode output is really written to the file.
hangeLog
akefile.am
sm-tst1.c
sm-tst2.c
sm-tst3.c
sm-tst4.c
sm-tst5.c
sm-tst6.c
sm-tst7.c
sm-tst8.c
sm-tst9.c
41de488a0ad6679e816dbab960351e5f62ab8ead 03-Aug-2005 Ulrich Drepper <drepper@redhat.com> Add several more elflint tests:
- check whether dynamic section matches PT_DYNAMIC program header entry
- make sure text relocation flag is used correctly

libelf needed one extension for this.
hangeLog
sg_tst.c
282bf3213efed5eee60ffb265a8ccc87d04b4b62 28-Jul-2005 Ulrich Drepper <drepper@redhat.com> Release formalities.
hangeLog
18618fd74777576cc20dce341bb71be327f9ed48 28-Jul-2005 Ulrich Drepper <drepper@redhat.com> Merge all of libdwfl.a into libdw.a. libdwfl.a is not installed.

Fix building of libdwfl. libdwfl.a must not depend on libwu.a
since the latter is not available after installation. Add copies
of the crc32 files to libdwfl.
hangeLog
akefile.am
1838590b6a448e3e2d0cc3ea6a96c8d09d3f21a4 28-Jul-2005 Roland McGrath <roland@redhat.com> Merge libdwfl contents into libdw.so
hangeLog
akefile.am
wflmodtest.c
2930c0c9a0a94996bc9effbc84767f634f0ad8bc 26-Jul-2005 Ulrich Drepper <drepper@redhat.com> File attributes.
mt-attrs
b08d5a8fb42f4586d756068065186b5af7e48dad 26-Jul-2005 Ulrich Drepper <drepper@redhat.com> Adjust for monotone.
cvsignore
hangeLog
akefile.am
llfcts.c
rextract.c
rsymtest.c
sm-tst1.c
sm-tst2.c
sm-tst3.c
sm-tst4.c
sm-tst5.c
sm-tst6.c
sm-tst7.c
sm-tst8.c
sm-tst9.c
cp.c
et-aranges.c
et-files.c
et-lines.c
et-pubnames.c
ash.c
ine2addr.c
sg_tst.c
ewfile.c
ewscn.c
un-allfcts.sh
un-arextract.sh
un-arsymtest.sh
un-ecp-test.sh
un-ecp-test2.sh
un-elflint-test.sh
un-get-aranges.sh
un-get-files.sh
un-get-lines.sh
un-get-pubnames.sh
un-line2addr.sh
un-show-abbrev.sh
un-show-ciefde.sh
un-show-die-info.sh
un-strip-test.sh
un-strip-test2.sh
un-strip-test3.sh
un-strip-test4.sh
un-strip-test5.sh
un-strip-test6.sh
aridx.c
cnnames.c
ectiondump.c
how-abbrev.c
how-ciefde.c
how-die-info.c
howptable.c
est-nlist.c
estfile.bz2
estfile10.bz2
estfile11.bz2
estfile12.bz2
estfile13.bz2
estfile14.bz2
estfile15.bz2
estfile15.debug.bz2
estfile16.bz2
estfile16.debug.bz2
estfile17.bz2
estfile17.debug.bz2
estfile18.bz2
estfile2.bz2
estfile3.bz2
estfile4.bz2
estfile5.bz2
estfile6.bz2
estfile7.bz2
estfile8.bz2
estfile9.bz2
pdate1.c
pdate2.c
pdate3.c
pdate4.c