Re: Text relocations in shared libs
Matt Thomas <[email protected]> Mon, 26 Dec 2005 19:32:26 -0800
| Newsgroups | gmane.os.netbsd.ports.sh3,gmane.os.netbsd.devel.toolchain |
|---|---|
| Message-ID | <[email protected]> |
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: [email protected] 3am Software Foundry www: http://3am-software.com/bio/matt/ Cupertino, CA disclaimer: I avow all knowledge of this message.