]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2005-01-10 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 10 Jan 2005 17:22:49 +0000 (17:22 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 10 Jan 2005 17:22:49 +0000 (17:22 +0000)
* write.c (write_object_file): Disallow a symbol equated to
common symbol.

gas/ChangeLog
gas/write.c

index 5e410703b8e4b4fb8497019c77fbcc942bd01999..8a528ed7939a3c1179fd0622fdbd10e0737e8fa4 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-10  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * write.c (write_object_file): Disallow a symbol equated to
+       common symbol.
+
 2005-01-10  Inderpreet Singh <inderpreetb@noida.hcltech.com>
 
        * tc-maxq.c: Replace constants 10 and 20 with bfd_mach_maxq10 and
index 6ca35f225f106632644aa6d3f7c7b592b58e281d..f9a543a7910cd5d85d6b7a8764a4811e1f38a05c 100644 (file)
@@ -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;
            }