This is the mail archive of the libc-alpha@sources.redhat.com 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: [PATCH] PPC64 tls fixes


On Tue, Mar 04, 2003 at 11:33:05PM -0800, Roland McGrath wrote:
> Well, the 16-bit TLS relocs were what I asked about, perhaps it wasn't
> clear.  Would those not also be generated in any non-PIC code doing
> IE-model TLS access?

No, DTPREL16 relocs won't ever be dynamic (unless I'm totally confused!).
They're tls block relative relocs used in LD model, so the linker is
able to resolve them.

eg.
Code sequence		Reloc			Sym
 addi 3,2,x1 at got@tlsld	R_PPC64_GOT_TLSLD16	x1
 bl .__tls_get_addr	R_PPC64_REL24		.__tls_get_addr
 nop
..
 addi 9,3,x1 at dtprel	R_PPC64_DTPREL16	x1

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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