[PATCH] test/T360-symbol-hiding.sh: trim extra output from readelf
readelf on (at least) ppc64le generates symbol versioning (sometimes)
at the end of the line inside '()' and some extension to the Ndx name
inside ''. Remove this output to allow our simple column based
parsing to work.
test/T360-symbol-hiding.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
I dislike this feeling of playing whack-a-mole parsing ill-defined
output, but here we are. I looked into alternatives a bit, but nothing
grabbed me. abi-dumper is a perl script wrapping readelf, so if we
wanted we could delegate the hacks to a third party tool.
I also thought about combining the sed into the awk call, but it
seemed like too much work to me, probably because I am not an awk
We could also just drop the test. In Debian we have dpkg-gensymbols
that manages more or less the same task; I'm not sure if other
environments have something similar.
> readelf on (at least) ppc64le generates symbol versioning (sometimes)
> at the end of the line inside '()' and some extension to the Ndx name
> inside ''. Remove this output to allow our simple column based
> parsing to work.