aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-hppa.c9
-rw-r--r--gas/config/tc-m32r.c1
-rw-r--r--gas/config/tc-mn10300.c5
-rw-r--r--gas/config/tc-msp430.c7
-rw-r--r--gas/config/tc-tic6x.c1
5 files changed, 8 insertions, 15 deletions
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c
index bf8a247..54cc40a 100644
--- a/gas/config/tc-hppa.c
+++ b/gas/config/tc-hppa.c
@@ -1477,8 +1477,7 @@ tc_gen_reloc (asection *section, fixS *fixp)
of two symbols. With that in mind we fill in all four
relocs now and break out of the loop. */
gas_assert (i == 1);
- relocs[0]->sym_ptr_ptr
- = (asymbol **) bfd_abs_section_ptr->symbol_ptr_ptr;
+ relocs[0]->sym_ptr_ptr = &bfd_abs_section_ptr->symbol;
relocs[0]->howto
= bfd_reloc_type_lookup (stdoutput,
(bfd_reloc_code_real_type) *codes[0]);
@@ -1498,15 +1497,13 @@ tc_gen_reloc (asection *section, fixS *fixp)
(bfd_reloc_code_real_type) *codes[2]);
relocs[2]->address = fixp->fx_frag->fr_address + fixp->fx_where;
relocs[2]->addend = 0;
- relocs[3]->sym_ptr_ptr
- = (asymbol **) bfd_abs_section_ptr->symbol_ptr_ptr;
+ relocs[3]->sym_ptr_ptr = &bfd_abs_section_ptr->symbol;
relocs[3]->howto
= bfd_reloc_type_lookup (stdoutput,
(bfd_reloc_code_real_type) *codes[3]);
relocs[3]->address = fixp->fx_frag->fr_address + fixp->fx_where;
relocs[3]->addend = 0;
- relocs[4]->sym_ptr_ptr
- = (asymbol **) bfd_abs_section_ptr->symbol_ptr_ptr;
+ relocs[4]->sym_ptr_ptr = &bfd_abs_section_ptr->symbol;
relocs[4]->howto
= bfd_reloc_type_lookup (stdoutput,
(bfd_reloc_code_real_type) *codes[4]);
diff --git a/gas/config/tc-m32r.c b/gas/config/tc-m32r.c
index 3b0c50b..d698255 100644
--- a/gas/config/tc-m32r.c
+++ b/gas/config/tc-m32r.c
@@ -725,7 +725,6 @@ md_begin (void)
scom_section.flags = SEC_IS_COMMON | SEC_SMALL_DATA;
scom_section.output_section = & scom_section;
scom_section.symbol = & scom_symbol;
- scom_section.symbol_ptr_ptr = & scom_section.symbol;
scom_symbol = * bfd_com_section_ptr->symbol;
scom_symbol.name = ".scommon";
scom_symbol.section = & scom_section;
diff --git a/gas/config/tc-mn10300.c b/gas/config/tc-mn10300.c
index 099d205..dffadb2 100644
--- a/gas/config/tc-mn10300.c
+++ b/gas/config/tc-mn10300.c
@@ -2220,7 +2220,7 @@ tc_gen_reloc (asection *seg ATTRIBUTE_UNUSED, fixS *fixp)
if (asec == absolute_section)
{
reloc->addend += S_GET_VALUE (fixp->fx_addsy);
- reloc->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr;
+ reloc->sym_ptr_ptr = &bfd_abs_section_ptr->symbol;
}
else
{
@@ -2258,8 +2258,7 @@ tc_gen_reloc (asection *seg ATTRIBUTE_UNUSED, fixS *fixp)
break;
default:
- reloc->sym_ptr_ptr
- = (asymbol **) bfd_abs_section_ptr->symbol_ptr_ptr;
+ reloc->sym_ptr_ptr = &bfd_abs_section_ptr->symbol;
return relocs;
}
diff --git a/gas/config/tc-msp430.c b/gas/config/tc-msp430.c
index 71500fb..e1d0782 100644
--- a/gas/config/tc-msp430.c
+++ b/gas/config/tc-msp430.c
@@ -4697,7 +4697,7 @@ tc_gen_reloc (asection * seg ATTRIBUTE_UNUSED, fixS * fixp)
reloc2->addend = - S_GET_VALUE (fixp->fx_subsy);
if (ssec == absolute_section)
- reloc2->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr;
+ reloc2->sym_ptr_ptr = &bfd_abs_section_ptr->symbol;
else
{
reloc2->sym_ptr_ptr = XNEW (asymbol *);
@@ -4708,7 +4708,7 @@ tc_gen_reloc (asection * seg ATTRIBUTE_UNUSED, fixS * fixp)
if (asec == absolute_section)
{
reloc->addend += S_GET_VALUE (fixp->fx_addsy);
- reloc->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr;
+ reloc->sym_ptr_ptr = &bfd_abs_section_ptr->symbol;
}
else
{
@@ -4746,8 +4746,7 @@ tc_gen_reloc (asection * seg ATTRIBUTE_UNUSED, fixS * fixp)
break;
default:
- reloc->sym_ptr_ptr
- = (asymbol **) bfd_abs_section_ptr->symbol_ptr_ptr;
+ reloc->sym_ptr_ptr = &bfd_abs_section_ptr->symbol;
return relocs;
}
diff --git a/gas/config/tc-tic6x.c b/gas/config/tc-tic6x.c
index 8a2d4e3..404cb14 100644
--- a/gas/config/tc-tic6x.c
+++ b/gas/config/tc-tic6x.c
@@ -786,7 +786,6 @@ md_begin (void)
scom_section.name = ".scommon";
scom_section.output_section = & scom_section;
scom_section.symbol = & scom_symbol;
- scom_section.symbol_ptr_ptr = & scom_section.symbol;
scom_symbol = * bfd_com_section_ptr->symbol;
scom_symbol.name = ".scommon";
scom_symbol.section = & scom_section;