aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-01-10 17:22:49 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-01-10 17:22:49 +0000
commit324007b99e945fd3154afd251d249e6daa1364a2 (patch)
tree629d1fdc572c347e92c6224483a1553d3c44f2cd /gas/write.c
parent5c4504f7c53c30ac373de048662365885bd51cb5 (diff)
downloadgdb-324007b99e945fd3154afd251d249e6daa1364a2.zip
gdb-324007b99e945fd3154afd251d249e6daa1364a2.tar.gz
gdb-324007b99e945fd3154afd251d249e6daa1364a2.tar.bz2
2005-01-10 H.J. Lu <hongjiu.lu@intel.com>
* write.c (write_object_file): Disallow a symbol equated to common symbol.
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/write.c b/gas/write.c
index 6ca35f2..f9a543a 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -1917,6 +1917,9 @@ write_object_file (void)
symbols. */
if (symbol_equated_reloc_p (symp))
{
+ if (S_IS_COMMON (symp))
+ as_bad (_("`%s' can't be equated to common symbol"),
+ S_GET_NAME (symp));
symbol_remove (symp, &symbol_rootP, &symbol_lastP);
continue;
}