This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix libgcc symbols for sh4
On Thu, Aug 21, 2003 at 11:42:29PM +0900, kaz Kojima wrote:
> With this patch, libgcc_s.so exports __sdivsi3_i4, doesn't it?
> __sdivsi3_i4 is a special library function and gcc generates
> the code which assumes that __sdivsi3_i4 never clobbers r0 register.
> But if libgcc_s.so exports __sdivsi3_i4, it can be called via PLT
> which clobbers r0 in SH case. It will break the above assumption.
Symbols in libgcc that can't be called via PLT should be
added to LIB2FUNCS_STATIC_EXTRA. That way they'll only
appear in libgcc.a and not in libgcc_s.so.
r~