aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1996-02-15 19:54:38 +0000
committerMichael Meissner <gnu@the-meissners.org>1996-02-15 19:54:38 +0000
commit28910c57cea3407fee1ea42ae3964bdaae2686ba (patch)
tree825ed549f34754717f60ee862c8122081d9a521a /gas/config
parent6d76c71f5e7a2f7aeb5f9f969faeb1a4021a6980 (diff)
downloadgdb-28910c57cea3407fee1ea42ae3964bdaae2686ba.zip
gdb-28910c57cea3407fee1ea42ae3964bdaae2686ba.tar.gz
gdb-28910c57cea3407fee1ea42ae3964bdaae2686ba.tar.bz2
Force all PPC symbols that otherwise do not have a symbol type to be BSF_OBJECT
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/obj-elf.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index aaf0095..29b442e 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -1159,6 +1159,21 @@ elf_frob_symbol (symp, puntp)
as_bad ("Symbol `%s' can not be both weak and common",
S_GET_NAME (symp));
}
+
+#ifdef TC_MIPS
+ /* The Irix 5 assembler appears to set the type of any common symbol
+ to STT_OBJECT. We try to be compatible, since the Irix 5 linker
+ apparently sometimes cares. FIXME: What about Irix 6? */
+ if (S_IS_COMMON (symp))
+ symp->bsym->flags |= BSF_OBJECT;
+#endif
+
+#ifdef TC_PPC
+ /* Frob the PowerPC, so that the symbol always has object type
+ if it is not some other type. VxWorks needs this. */
+ if ((symp->bsym->flags & (BSF_FUNCTION | BSF_FILE | BSF_SECTION_SYM)) == 0)
+ symp->bsym->flags |= BSF_OBJECT;
+#endif
}
void