[COMMITTED] tests: Fix broken dwflsyms tests, extend test and add prelink tests.

2013-11-15 Thread Mark Wielaard
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 pr

Re: dwfl_module_getsym vs. prelink

2013-11-15 Thread Josh Stone
On 11/15/2013 06:01 AM, Mark Wielaard wrote: > On Fri, 2013-11-15 at 14:35 +0100, Mark Wielaard wrote: >> OK, that is definitely a bug. But I cannot immediately explain why it >> worked fine in the -N case and not in the -r case. Except for the >> specific load address there should be no difference

[obv] Update m4/ChangeLog for m4/biarch.m4 authorship

2013-11-15 Thread Jan Kratochvil
Hi Mark, checked-in as obvious. (1) I did not realize first that m4/biarch.m4 is in fact 99% of Roland's work from CVSROOT sourceware.org:/cvs/systemtap repo tests/ptrace-tests. (2) It was checked-in by mistake, it is unused now, it is needed only for the pending tests/ subdir part. But

Re: dwfl_module_getsym vs. prelink

2013-11-15 Thread Mark Wielaard
On Fri, 2013-11-15 at 14:35 +0100, Mark Wielaard wrote: > On Thu, 2013-11-14 at 16:00 -0800, Josh Stone wrote: > > > $ /usr/sbin/prelink -u testfilebazmin > > > $ /usr/sbin/prelink -r 0x7000 testfilebazmin > > > $ ./dwflsyms -e testfilebazmin | grep -w FUNC | grep -wE 'main|foo|bar' > > >8:

Re: dwfl_module_getsym vs. prelink

2013-11-15 Thread Mark Wielaard
On Thu, 2013-11-14 at 16:00 -0800, Josh Stone wrote: > On IRC, I mentioned to Mark some bias issues I was having with values > from dwfl_module_getsym, and I promised a smaller reproducer than using > systemtap, so here's my attempt to recreate it with test code that > already exists in elfutils.