[PATCH 2/2] run-strip-reloc.sh: Skip debug file check for riscv

Mark Wielaard mark@klomp.org
Tue Jul 17 10:05:00 GMT 2018


On Tue, 2018-07-17 at 11:29 +0200, Andreas Schwab wrote:
> On Jul 17 2018, Mark Wielaard <mark@klomp.org> wrote:
> > The issue is that hello_riscv64.ko doesn't contain any debug
> > sections.
> > So strip doesn't produce a separate debug file.
> > 
> > Andreas, could you provide an updated hello_riscv64.ko that is
> > compiled
> > with -g and does contain debuginfo?
> 
> What is the issue?  The test worksforme.

The problem is that the test is designed to see that strip works to
properly to remove the .debug sections and remove relocations against
.debug sections for a .ko file. But the hello_riscv64.ko file doesn't
contain any .debug sections so it trivially succeeds. Ulf fixed the
test to make sure strip actually does any work by removing the old
debug files. This shows the current hello_riscv64.ko failing.

If you could regenerate the file with -g so that it does contain .debug
sections that would help us fix the testcase.

Thanks,

Mark



More information about the Elfutils-devel mailing list