gas: Define comment_chars for non-ELF PowerPC targets
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index a92a464..3b2b218 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -123,6 +123,10 @@
static void ppc_GNU_visibility (int);
#endif
+/* This string holds the chars that always start a comment. If the
+ pre-processor is disabled, these aren't very useful. */
+const char ppc_comment_chars[] = "#";
+
#ifdef OBJ_ELF
static void ppc_elf_rdata (int);
static void ppc_elf_lcomm (int);
@@ -134,10 +138,6 @@
/* Generic assembler global variables which must be defined by all
targets. */
-/* This string holds the chars that always start a comment. If the
- pre-processor is disabled, these aren't very useful. */
-const char ppc_comment_chars[] = "#";
-
/* Characters which start a comment at the beginning of a line. */
const char line_comment_chars[] = "#";
diff --git a/gas/config/tc-ppc.h b/gas/config/tc-ppc.h
index ea520b6..3bbeafc 100644
--- a/gas/config/tc-ppc.h
+++ b/gas/config/tc-ppc.h
@@ -216,6 +216,9 @@
extern const char ppc_symbol_chars[];
#define tc_symbol_chars ppc_symbol_chars
+#define tc_comment_chars ppc_comment_chars
+extern const char ppc_comment_chars[];
+
#ifdef OBJ_ELF
/* Support for SHT_ORDERED */
@@ -225,9 +228,6 @@
#define md_elf_section_type(STR, LEN) ppc_section_type (STR, LEN)
#define md_elf_section_flags(FLAGS, ATTR, TYPE) ppc_section_flags (FLAGS, ATTR, TYPE)
-#define tc_comment_chars ppc_comment_chars
-extern const char ppc_comment_chars[];
-
#define md_elf_section_letter ppc_elf_section_letter
extern bfd_vma ppc_elf_section_letter (int, const char **);