work around breakage in sh/fdpic __unmapself function
authorRich Felker <dalias@aerifal.cx>
Tue, 22 Sep 2015 04:10:42 +0000 (04:10 +0000)
committerRich Felker <dalias@aerifal.cx>
Tue, 22 Sep 2015 04:10:42 +0000 (04:10 +0000)
commitcab2b1f9d71db31d6dc4ae9dcab6989182b7b533
tree59dc80b969ba128a5bcc8aa93d9e93ab00d3c6a6
parent7a9669e977e5f750cf72ccbd2614f8b72ce02c4c
work around breakage in sh/fdpic __unmapself function

the C implementation of __unmapself used for potentially-nommu sh
assumed CRTJMP takes a function descriptor rather than a code address;
however, the actual dynamic linker needs a code address, and so commit
7a9669e977e5f750cf72ccbd2614f8b72ce02c4c changed the definition of the
macro in reloc.h. this commit puts the old macro back in a place where
it only affects __unmapself.

this is an ugly workaround and should be cleaned up at some point, but
at least it's well isolated.
arch/sh/src/__unmapself.c