aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-ecoff.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-05-03 12:02:47 +0000
committerNick Clifton <nickc@redhat.com>2005-05-03 12:02:47 +0000
commitc1d05a606c3ae775523d364d3aa185ba1dd7ab46 (patch)
treed06a84918bbc9341857baba4ba639712fd479834 /gas/config/obj-ecoff.c
parente02b83d7f42fda0f69a040687f3fe8ba39d5e082 (diff)
downloadbinutils-c1d05a606c3ae775523d364d3aa185ba1dd7ab46.zip
binutils-c1d05a606c3ae775523d364d3aa185ba1dd7ab46.tar.gz
binutils-c1d05a606c3ae775523d364d3aa185ba1dd7ab46.tar.bz2
* config/obj-ecoff.c (ecoff_frob_file_before_fix): Fix invocations of bfd_section_list... macros.
* config/tc-mmix.c (mmix_frob_file): Likewise. * config/tc-xtensa.c (xtensa_remove_section): Likewise. (xtensa_insert_section): Likewise. * macro.c (macro_hash): Remove static. * macro.h (macro_hash): Provide an external declaration.
Diffstat (limited to 'gas/config/obj-ecoff.c')
-rw-r--r--gas/config/obj-ecoff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/obj-ecoff.c b/gas/config/obj-ecoff.c
index 71aade0..6bfb79e 100644
--- a/gas/config/obj-ecoff.c
+++ b/gas/config/obj-ecoff.c
@@ -78,7 +78,7 @@ ecoff_frob_file_before_fix (void)
addr = 0;
for (i = 0; i < n_names; i++)
- secs[i] = 0;
+ secs[i] = NULL;
for (sec = &stdoutput->sections; *sec != NULL;)
{
@@ -86,7 +86,7 @@ ecoff_frob_file_before_fix (void)
if (!strcmp ((*sec)->name, names[i]))
{
secs[i] = *sec;
- bfd_section_list_remove (stdoutput, sec);
+ bfd_section_list_remove (stdoutput, *sec);
break;
}
if (i == n_names)
@@ -104,7 +104,7 @@ ecoff_frob_file_before_fix (void)
}
for (i = n_names - 1; i >= 0; i--)
if (secs[i])
- bfd_section_list_insert (stdoutput, &stdoutput->sections, secs[i]);
+ bfd_section_list_insert_after (stdoutput, stdoutput->sections, secs[i]);
/* Fill in the register masks. */
{