aboutsummaryrefslogtreecommitdiff
path: root/bfd/ecoff.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-07-05 16:31:07 +0000
committerIan Lance Taylor <ian@airs.com>1995-07-05 16:31:07 +0000
commita2546fcef767bb388f8fc4d90b0b04c2ad7063e3 (patch)
tree2c4cd799cb788486ca7db4833293b26a90bbec03 /bfd/ecoff.c
parent3af584b4a16be2ddfb92fc52ec491ba181572967 (diff)
downloadgdb-a2546fcef767bb388f8fc4d90b0b04c2ad7063e3.zip
gdb-a2546fcef767bb388f8fc4d90b0b04c2ad7063e3.tar.gz
gdb-a2546fcef767bb388f8fc4d90b0b04c2ad7063e3.tar.bz2
* ecoff.c (_bfd_ecoff_bfd_is_local_label): New function.
* libecoff.h (_bfd_ecoff_bfd_is_local_label): Declare. * elf32-mips.c (mips_elf_is_local_label): New static function. (bfd_elf32_bfd_is_local_label): Define. PR 6978.
Diffstat (limited to 'bfd/ecoff.c')
-rw-r--r--bfd/ecoff.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/bfd/ecoff.c b/bfd/ecoff.c
index 21d81d9..b85bf41 100644
--- a/bfd/ecoff.c
+++ b/bfd/ecoff.c
@@ -1467,6 +1467,17 @@ _bfd_ecoff_get_symbol_info (abfd, symbol, ret)
bfd_symbol_info (symbol, ret);
}
+/* Return whether this is a local label. */
+
+/*ARGSUSED*/
+boolean
+_bfd_ecoff_bfd_is_local_label (abfd, symbol)
+ bfd *abfd;
+ asymbol *symbol;
+{
+ return symbol->name[0] == '$';
+}
+
/* Print information about an ECOFF symbol. */
void