aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-tilepro.c
diff options
context:
space:
mode:
authorWalter Lee <walt@tilera.com>2012-02-25 20:07:08 +0000
committerWalter Lee <walt@tilera.com>2012-02-25 20:07:08 +0000
commit5414dbefeaf875f00cc29488bb54d2c30bf50c3b (patch)
tree74113ac836387b9884a03533fe472ee7b437b57c /gas/config/tc-tilepro.c
parent412c89dd5313d6acdd3c99b72df79c584d991b1f (diff)
downloadgdb-5414dbefeaf875f00cc29488bb54d2c30bf50c3b.zip
gdb-5414dbefeaf875f00cc29488bb54d2c30bf50c3b.tar.gz
gdb-5414dbefeaf875f00cc29488bb54d2c30bf50c3b.tar.bz2
Deletes some dead code in the TILE-Gx/TILEPro ports of gas.
* tc-tilepro.c (apply_special_operator): delete cases for got and tls operators. (md_apply_fix): Ditto. * tc-tilegx.c: (apply_special_operator): delete cases for got and tls operators. (md_apply_fix): Ditto.
Diffstat (limited to 'gas/config/tc-tilepro.c')
-rw-r--r--gas/config/tc-tilepro.c72
1 files changed, 0 insertions, 72 deletions
diff --git a/gas/config/tc-tilepro.c b/gas/config/tc-tilepro.c
index 44e40d1..581028d 100644
--- a/gas/config/tc-tilepro.c
+++ b/gas/config/tc-tilepro.c
@@ -381,24 +381,12 @@ apply_special_operator (operatorT op, int num)
switch (op)
{
case O_lo16:
- case O_got:
- case O_got_lo16:
- case O_tls_gd:
- case O_tls_gd_lo16:
- case O_tls_ie:
- case O_tls_ie_lo16:
return (signed short)num;
case O_hi16:
- case O_got_hi16:
- case O_tls_gd_hi16:
- case O_tls_ie_hi16:
return (signed short)(num >> 16);
case O_ha16:
- case O_got_ha16:
- case O_tls_gd_ha16:
- case O_tls_ie_ha16:
return (signed short)((num + 0x8000) >> 16);
default:
@@ -1343,36 +1331,6 @@ md_apply_fix (fixS *fixP, valueT * valP, segT seg ATTRIBUTE_UNUSED)
/* Apply lo16, hi16, ha16, etc. munging. */
switch (fixP->fx_r_type)
{
- case BFD_RELOC_TILEPRO_IMM16_X0_GOT:
- case BFD_RELOC_TILEPRO_IMM16_X1_GOT:
- *valP = value = apply_special_operator (O_got, value);
- break;
-
- case BFD_RELOC_TILEPRO_IMM16_X0_GOT_LO:
- case BFD_RELOC_TILEPRO_IMM16_X1_GOT_LO:
- *valP = value = apply_special_operator (O_got_lo16, value);
- break;
-
- case BFD_RELOC_TILEPRO_IMM16_X0_GOT_HI:
- case BFD_RELOC_TILEPRO_IMM16_X1_GOT_HI:
- *valP = value = apply_special_operator (O_got_hi16, value);
- break;
-
- case BFD_RELOC_TILEPRO_IMM16_X0_GOT_HA:
- case BFD_RELOC_TILEPRO_IMM16_X1_GOT_HA:
- *valP = value = apply_special_operator (O_got_ha16, value);
- break;
-
- case BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD:
- case BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD:
- *valP = value = apply_special_operator (O_tls_gd, value);
- break;
-
- case BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE:
- case BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE:
- *valP = value = apply_special_operator (O_tls_ie, value);
- break;
-
case BFD_RELOC_LO16:
case BFD_RELOC_TILEPRO_IMM16_X0_LO:
case BFD_RELOC_TILEPRO_IMM16_X1_LO:
@@ -1381,16 +1339,6 @@ md_apply_fix (fixS *fixP, valueT * valP, segT seg ATTRIBUTE_UNUSED)
*valP = value = apply_special_operator (O_lo16, value);
break;
- case BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_LO:
- case BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_LO:
- *valP = value = apply_special_operator (O_tls_gd_lo16, value);
- break;
-
- case BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_LO:
- case BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_LO:
- *valP = value = apply_special_operator (O_tls_ie_lo16, value);
- break;
-
case BFD_RELOC_HI16:
case BFD_RELOC_TILEPRO_IMM16_X0_HI:
case BFD_RELOC_TILEPRO_IMM16_X1_HI:
@@ -1399,16 +1347,6 @@ md_apply_fix (fixS *fixP, valueT * valP, segT seg ATTRIBUTE_UNUSED)
*valP = value = apply_special_operator (O_hi16, value);
break;
- case BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HI:
- case BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HI:
- *valP = value = apply_special_operator (O_tls_gd_hi16, value);
- break;
-
- case BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HI:
- case BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HI:
- *valP = value = apply_special_operator (O_tls_ie_hi16, value);
- break;
-
case BFD_RELOC_HI16_S:
case BFD_RELOC_TILEPRO_IMM16_X0_HA:
case BFD_RELOC_TILEPRO_IMM16_X1_HA:
@@ -1417,16 +1355,6 @@ md_apply_fix (fixS *fixP, valueT * valP, segT seg ATTRIBUTE_UNUSED)
*valP = value = apply_special_operator (O_ha16, value);
break;
- case BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HA:
- case BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HA:
- *valP = value = apply_special_operator (O_tls_gd_ha16, value);
- break;
-
- case BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HA:
- case BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HA:
- *valP = value = apply_special_operator (O_tls_ie_ha16, value);
- break;
-
default:
/* Do nothing */
break;