Subject: Re: Text relocations in shared libs
To: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
From: Matt Thomas <matt@3am-software.com>
List: port-sh3
Date: 12/26/2005 19:32:26
Valeriy E. Ushakov wrote:
> On Sun, Dec 25, 2005 at 13:54:13 -0500, Charles M. Hannum wrote:
>
>
>>What prevents you from just moving errno to a different register before
>>executing the PLT? Surely you have another callee-saved register you
>>can destroy. You can probably even put the move instruction in one of
>>the branch delay slots, so it doesn't cost you anything.
>
>
> Right, but that kinda reinforces my other point. If the interface
> between syscall code and cerror is private, why do we need to bother
> with exporting cerror at all? We can just make it .hidden and make
> the call to go directly to cerror, instead of going via PLT.
cerror is also used by libposix. So either posix will need its own or
able to use libc's.
--
Matt Thomas email: matt@3am-software.com
3am Software Foundry www: http://3am-software.com/bio/matt/
Cupertino, CA disclaimer: I avow all knowledge of this message.