From 7c6beb69886dccfb3cd3efbb5e966683936f6eac Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 5 Jan 2002 13:13:18 +0000 Subject: * 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. --- gas/config/tc-mmix.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gas/config/tc-mmix.c') 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; } -- cgit v1.1