summaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-04-16 15:39:48 +0000
committerNick Clifton <nickc@redhat.com>2009-04-16 15:39:48 +0000
commitdd0adf18db7f33cb1c3a7db58823c35b2b88d630 (patch)
treed6f48c206a81b99b644143d07192a7a770317f35 /bfd/coffcode.h
parentb1e38619e601f7285d7d055297a556ba7e67cc10 (diff)
downloadbinutils-redhat-dd0adf18db7f33cb1c3a7db58823c35b2b88d630.tar.gz
Add new binutils target: moxie
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 4f53e470e4..35c6f70758 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -944,7 +944,8 @@ handle_COMDAT (bfd * abfd,
but there's some checking we can do to be
sure. */
- if (! (isym.n_sclass == C_STAT
+ if (! ((isym.n_sclass == C_STAT
+ || isym.n_sclass == C_EXT)
&& isym.n_type == T_NULL
&& isym.n_value == 0))
abort ();
@@ -954,7 +955,7 @@ handle_COMDAT (bfd * abfd,
names like .text$foo__Fv (in the case of a
function). See comment above for more. */
- if (strcmp (name, symname) != 0)
+ if (isym.n_sclass == C_STAT && strcmp (name, symname) != 0)
_bfd_error_handler (_("%B: warning: COMDAT symbol '%s' does not match section name '%s'"),
abfd, symname, name);