2005-05-16 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gas / write.c
index 7b77a29bf7fe0efe673c59216d1e4366480aa629..7f4e2d57c782cea7637a376596dc476abf3a26d6 100644 (file)
@@ -17,8 +17,8 @@
 
    You should have received a copy of the GNU General Public License
    along with GAS; see the file COPYING.  If not, write to the Free
-   Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-   02111-1307, USA.  */
+   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
+   02110-1301, USA.  */
 
 /* This thing should be set up to do byteordering correctly.  But...  */
 
 #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from (FIX)
 #endif
 
+#ifndef TC_FAKE_LABEL
+#define TC_FAKE_LABEL(NAME) (strcmp ((NAME), FAKE_LABEL_NAME) == 0)
+#endif
+
 /* Used to control final evaluation of expressions.  */
 int finalize_syms = 0;
 
@@ -795,7 +799,7 @@ adjust_reloc_syms (bfd *abfd ATTRIBUTE_UNUSED,
              = symbol_get_value_expression (sym)->X_add_symbol;
            const char *name = S_GET_NAME (sym);
            if (!S_IS_COMMON (new_sym)
-               && strcmp (name, FAKE_LABEL_NAME)
+               && !TC_FAKE_LABEL (name)
                && (!S_IS_EXTERNAL (sym) || S_IS_LOCAL (sym)))
              as_bad (_("Local symbol `%s' can't be equated to undefined symbol `%s'"),
                      name, S_GET_NAME (new_sym));
@@ -1928,7 +1932,7 @@ write_object_file (void)
            {
              const char *name = S_GET_NAME (symp);
              if (S_IS_COMMON (symp)
-                 && strcmp (name, FAKE_LABEL_NAME)
+                 && !TC_FAKE_LABEL (name)
                  && (!S_IS_EXTERNAL (symp) || S_IS_LOCAL (symp)))
                {
                  expressionS *e = symbol_get_value_expression (symp);
This page took 0.024628 seconds and 4 git commands to generate.