aboutsummaryrefslogtreecommitdiff
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
commit20135e4cea8994900955e560910b2e675881fa95 (patch)
treef3e60cf7a267184a4d9ffef4f6ab0e54ceb599e9 /bfd/coffcode.h
parent335d71d67eab3d9e1cfdefc45af81fa65fbd5c8b (diff)
downloadbinutils-20135e4cea8994900955e560910b2e675881fa95.zip
binutils-20135e4cea8994900955e560910b2e675881fa95.tar.gz
binutils-20135e4cea8994900955e560910b2e675881fa95.tar.bz2
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 4f53e47..35c6f70 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);