diff options
author | Alan Modra <amodra@bigpond.net.au> | 2005-10-24 01:57:45 +0000 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2005-10-24 11:27:45 +0930 |
commit | 4fed8f8f5fd09c58902646af609707f59142b69a (patch) | |
tree | 61d8fff2f7c41a5dc1bf34f70bf10a28d6974d68 /gcc | |
parent | d1589df93773c2d82d328804aad3dd7cc8cbe9d5 (diff) | |
download | gcc-4fed8f8f5fd09c58902646af609707f59142b69a.zip gcc-4fed8f8f5fd09c58902646af609707f59142b69a.tar.gz gcc-4fed8f8f5fd09c58902646af609707f59142b69a.tar.bz2 |
rs6000.c (rs6000_legitimize_tls_address): Explain peculiarity of GOT/TOC section usage.
* config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
peculiarity of GOT/TOC section usage.
From-SVN: r105836
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f5ad534..54db2b2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-10-24 Alan Modra <amodra@bigpond.net.au> + + * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain + peculiarity of GOT/TOC section usage. + 2005-10-23 Andrew Pinski <pinskia@physics.uc.edu> PR objc/24435 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 4f8e489..3c33a81 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -2978,6 +2978,11 @@ rs6000_legitimize_tls_address (rtx addr, enum tls_model model) { rtx r3, got, tga, tmp1, tmp2, eqv; + /* We currently use relocations like @got@tlsgd for tls, which + means the linker will handle allocation of tls entries, placing + them in the .got section. So use a pointer to the .got section, + not one to secondary TOC sections used by 64-bit -mminimal-toc, + or to secondary GOT sections used by 32-bit -fPIC. */ if (TARGET_64BIT) got = gen_rtx_REG (Pmode, 2); else |