]> git.ipfire.org Git - thirdparty/glibc.git/commit
powerpc: Fix handling of scv return error codes [BZ #27892]
authorNicholas Piggin <npiggin@gmail.com>
Thu, 20 May 2021 14:00:36 +0000 (11:00 -0300)
committerMatheus Castanho <msc@linux.ibm.com>
Mon, 24 May 2021 20:05:07 +0000 (17:05 -0300)
commit0ef0e6de7fdfa18328b09ba2afb4f0112d4bdab4
tree2c776e3dd6ae903b4195c91466e80ac14b151307
parent3f5080aedd164c1f92a53552dd3e0b82ac6d2bd3
powerpc: Fix handling of scv return error codes [BZ #27892]

When using scv for templated ASM syscalls, current code interprets any
negative return value as error, but the only valid error codes are in
the range -4095..-1 according to the ABI.

This commit also fixes 'signal.gen.test' strace test, where the issue
was first identified.

Reviewed-by: Matheus Castanho <msc@linux.ibm.com>
(cherry picked from commit 7de36744ee1325f35d3fe0ca079dd33c40b12267)
NEWS
sysdeps/powerpc/powerpc64/sysdep.h