This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib 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: [patch] modify crt0.S for 64-bit address targets


> Assuredly this is the case. I think the problem might be from using the
> ori instead of addi for the address.

Perhaps.  For a 32-bit address, I'd expect the address generation to be
simply lui/addiu, or similar.  (in fact, for this, you only need the
lui.)

The only time i'd expect gas would be bothering with shifts at all
is for 64-bit addresses.  (but that's intuition speaking, rather than
code examination.)


cgd


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