sh dlsym: fix passing of return address for RTLD_NEXT use
commit69670e3bb3f78f9a1d172c9e263ca1b95f8196db
authorRich Felker <dalias@aerifal.cx>
Sun, 25 Feb 2024 20:10:26 +0000 (25 15:10 -0500)
committerRich Felker <dalias@aerifal.cx>
Sun, 25 Feb 2024 20:10:26 +0000 (25 15:10 -0500)
treeb726fea8ee07f1907976a57c57e2dbe57c63821d
parentb817541f1cfd38e4b81257b3215e276ea9d0fc61
sh dlsym: fix passing of return address for RTLD_NEXT use

this code dates back to the original commit of the sh port, with no
real clue as to how the bug was introduced. it looks like it was
written to assume the return address was pushed to the stack like on
x86, rather than arriving in the pr special register.
src/ldso/sh/dlsym.s