This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: [RFC] Avoiding _divsi3 call during ld.so bootstrap
- From: John Reiser <jreiser at BitWagon dot com>
- To: Bob Wilson <bwilson at tensilica dot com>
- Cc: libc-ports at sourceware dot org
- Date: Fri, 13 Apr 2007 07:55:42 -0700
- Subject: Re: [RFC] Avoiding _divsi3 call during ld.so bootstrap
- Organization: -
- References: <461E6091.3030005@tensilica.com>
Bob Wilson wrote:
> Ah but you missed the point -- the existing _divsi3 function works just
> fine. The problem is that function calls don't work until ld.so is
> relocated. ...
>
> An alternative is yet another special GCC option to generate a
> PC-relative call that does not require any relocation ...
Another alternative is to use "gcc -S" to generate assembly code,
then use a text editor to relace the call with the source of _divsi3,
modified for inline usage. Such hacking might be easier than
modifying GCC.
--