This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Avoiding _divsi3 call during ld.so bootstrap


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.

-- 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]