aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mmix.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-01-05 13:13:18 +0000
committerAlan Modra <amodra@gmail.com>2002-01-05 13:13:18 +0000
commit7c6beb69886dccfb3cd3efbb5e966683936f6eac (patch)
tree279bef92a9471f76cee4b5b32f2425bfd1531ec6 /gas/config/tc-mmix.c
parent9e7b37b31f29ad3b8321d15e589ed5de550c56d3 (diff)
downloadgdb-7c6beb69886dccfb3cd3efbb5e966683936f6eac.zip
gdb-7c6beb69886dccfb3cd3efbb5e966683936f6eac.tar.gz
gdb-7c6beb69886dccfb3cd3efbb5e966683936f6eac.tar.bz2
* write.c (write_object_file): Make use of bfd_section_list_remove.
* config/obj-ecoff.c (ecoff_frob_file): Likewise. * config/tc-mmix.c (mmix_frob_file): Likewise.
Diffstat (limited to 'gas/config/tc-mmix.c')
-rw-r--r--gas/config/tc-mmix.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gas/config/tc-mmix.c b/gas/config/tc-mmix.c
index 46d5dec..fcd7f1e 100644
--- a/gas/config/tc-mmix.c
+++ b/gas/config/tc-mmix.c
@@ -3629,14 +3629,12 @@ mmix_frob_file ()
if (bfd_get_section_flags (stdoutput, real_reg_section) & SEC_HAS_CONTENTS)
as_fatal (_("register section has contents\n"));
- /* FIXME: This does not seem like the proper way to kill a section,
- but it's the way it's done elsewhere, like elf64-alpha.c. */
/* Really remove the section. */
for (secpp = &stdoutput->sections;
*secpp != real_reg_section;
secpp = &(*secpp)->next)
;
- *secpp = (*secpp)->next;
+ bfd_section_list_remove (stdoutput, secpp);
--stdoutput->section_count;
}