readelf might produce some warning messages that don't matter for the
specific tests in debugedit.at. So ignore stderr output and just check
stdout output is as expected.
The issue reported by riscv64 building.
(cherry picked from commit 99ecf4c529ba89a6cebffa2ee8f7ac5db63358ec)