This is the mail archive of the mailing list for the glibc 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: ppc relocs

> ppc32 does.  gcc currently always produces PIC code for ppc64.

My question is about the ABI spec, not just current practice.  It sounds
like it is in fact kosher on ppc32 to have all those 16-bit relocs in a
dynamic reloc section and should handle it.  Is that also true on ppc64?

> True enough I suppose for ppc64.  I know Steve has some cleanups for
> ppc64 dl-machine.h in the pipeline, eg. remove all DTPREL16 reloc
> support.

Well, Steve should be sending his patches more often!  I've checked in the
(untested) cleanup I did because it was so crufty as it was.  Now Steve
will have to merge his version with that.

> What you're missing is the description of the half16ds field, which
> is a half16 field without the bottom two bits.  So we calculated the
> field value with ">> 2" then install to a 16 bit word with "<< 2", or
> equivalently, forget about the shifts and instead mask.

I see.  Thanks for the explanation.  I figured it must be something like
this, but couldn't quite find it clearly said in the spec.


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