This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Committed: minor comment/doc changes for CRIS TLS relocs.
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: binutils at sourceware dot org
- Date: Tue, 25 Nov 2008 04:08:32 +0100
- Subject: Committed: minor comment/doc changes for CRIS TLS relocs.
Mostly obvious; the TLS offset for the initial-exec model is global,
not module-local, and let's open up for using the module-number reloc
elsewhere than at the fourth GOT entry.
Committed.
include:
* cris.h (R_CRIS_32_TPREL): Correct comment.
(R_CRIS_DTPMOD): Open up for use elsewhere than the fourth GOT entry.
Index: include/elf/cris.h
===================================================================
RCS file: /cvs/src/src/include/elf/cris.h,v
retrieving revision 1.8
diff -p -u -r1.8 cris.h
--- include/elf/cris.h 4 Oct 2008 17:16:30 -0000 1.8
+++ include/elf/cris.h 25 Nov 2008 02:36:45 -0000
@@ -147,10 +147,9 @@ START_RELOC_NUMBERS (elf_cris_reloc_type
/* An assembler- and linker-generated relocation, instructing to
resolve the symbol in question yielding the TLS offset of the
- thread variable; relative to the module's TLS data if in a DSO,
- but relative to the executable's thread data if in an
- executable. Not allowed as input when generating a DSO. Assembly
- syntax: "expr:TPOFF". */
+ thread variable, relative to the global TLS block. Not allowed
+ as input when generating a DSO. Assembly syntax:
+ "expr:TPOFF". */
RELOC_NUMBER (R_CRIS_32_TPREL, 28)
/* Similar to R_CRIS_32_TPREL, but only applicable to executables
@@ -164,7 +163,7 @@ START_RELOC_NUMBERS (elf_cris_reloc_type
/* A linker-generated-only relocation, instructing the dynamic
linker to fill in the current module ID, used for GOT entries
- (always the fourth one). */
+ (usually the fourth one). */
RELOC_NUMBER (R_CRIS_DTPMOD, 30)
/* No other relocs must be visible outside the assembler. */
brgds, H-P