]> git.ipfire.org Git - thirdparty/elfutils.git/commit
tests: elfcopy --reverse-offs should only swap sections next to each other.
authorMark Wielaard <mark@klomp.org>
Mon, 3 Jun 2019 16:00:20 +0000 (18:00 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 3 Jun 2019 16:00:20 +0000 (18:00 +0200)
commitd08c68fec94b26663257d24dbb8d94f2ed8935cd
tree39007ac4ea9659f88cc0737c6e72caaa851eac87
parentbfcf8b1fee8805b42b262baf352c58574df59362
tests: elfcopy --reverse-offs should only swap sections next to each other.

The run-reverse-sections-self.sh (which really should have been called
"swap-sections") could fail if the ELF file had sections that were not
directly next to each other swapped. Add a check to make sure the swapped
sections are actually directly next to each other.

Signed-off-by: Mark Wielaard <mark@klomp.org>
tests/ChangeLog
tests/elfcopy.c