aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2021-03-28 13:11:50 -0400
committerDavid Edelsohn <dje.gcc@gmail.com>2021-03-28 17:57:33 -0400
commit499fa254ae8c9752d8c2cf3130b13ffddfd83546 (patch)
treea95a2d42d94ae0a47ec6626ebbfc51b549be0932
parentd15db0c5f5d81e9057df07c9568ee81873860a44 (diff)
downloadgcc-499fa254ae8c9752d8c2cf3130b13ffddfd83546.zip
gcc-499fa254ae8c9752d8c2cf3130b13ffddfd83546.tar.gz
gcc-499fa254ae8c9752d8c2cf3130b13ffddfd83546.tar.bz2
aix: TLS DWARF symbol decorations.
GCC currently emits TLS relocation decorations on symbols in DWARF sections. Recent changes to the AIX linker cause it to reject such symbols. This patch removes the decorations (@ie, @le, @m) and emit only the qualified symbol name. gcc/ChangeLog: * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add XCOFF TLS reloc decorations.
-rw-r--r--gcc/config/rs6000/rs6000.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index fd2b0b5..6a8943d 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -9027,26 +9027,6 @@ rs6000_output_dwarf_dtprel (FILE *file, int size, rtx x)
output_addr_const (file, x);
if (TARGET_ELF)
fputs ("@dtprel+0x8000", file);
- else if (TARGET_XCOFF && SYMBOL_REF_P (x))
- {
- switch (SYMBOL_REF_TLS_MODEL (x))
- {
- case 0:
- break;
- case TLS_MODEL_LOCAL_EXEC:
- fputs ("@le", file);
- break;
- case TLS_MODEL_INITIAL_EXEC:
- fputs ("@ie", file);
- break;
- case TLS_MODEL_GLOBAL_DYNAMIC:
- case TLS_MODEL_LOCAL_DYNAMIC:
- fputs ("@m", file);
- break;
- default:
- gcc_unreachable ();
- }
- }
}
/* Return true if X is a symbol that refers to real (rather than emulated)