Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/binutils/dist/bfd Add a _is_local_label_name r...
details: https://anonhg.NetBSD.org/src/rev/19dad9f68d99
branches: trunk
changeset: 751236:19dad9f68d99
user: matt <matt%NetBSD.org@localhost>
date: Fri Jan 29 06:09:36 2010 +0000
description:
Add a _is_local_label_name routine (taken from elf64-mips.c).
diffstat:
external/gpl3/binutils/dist/bfd/elfn32-mips.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diffs (39 lines):
diff -r 8809ab7e1812 -r 19dad9f68d99 external/gpl3/binutils/dist/bfd/elfn32-mips.c
--- a/external/gpl3/binutils/dist/bfd/elfn32-mips.c Fri Jan 29 06:08:01 2010 +0000
+++ b/external/gpl3/binutils/dist/bfd/elfn32-mips.c Fri Jan 29 06:09:36 2010 +0000
@@ -81,6 +81,8 @@
(bfd *, Elf_Internal_Note *);
static bfd_boolean elf32_mips_grok_psinfo
(bfd *, Elf_Internal_Note *);
+static bfd_boolean mips_elf_n32_is_local_label_name
+ (bfd *, const char *);
static irix_compat_t elf_n32_mips_irix_compat
(bfd *);
@@ -2377,6 +2379,17 @@
return TRUE;
}
+/* MIPS ELF local labels start with "$L". */
+static bfd_boolean
+mips_elf_n32_is_local_label_name (bfd *abfd, const char *name)
+{
+ if (name[0] == '$' && name[1] == 'L')
+ return TRUE;
+
+ /* We accept the generic ELF local label syntax as well. */
+ return _bfd_elf_is_local_label_name (abfd, name);
+}
+
/* Depending on the target vector we generate some version of Irix
executables or "normal" MIPS ELF ABI executables. */
static irix_compat_t
@@ -2499,6 +2512,8 @@
#define elf_backend_write_section _bfd_mips_elf_write_section
#define elf_backend_mips_irix_compat elf_n32_mips_irix_compat
#define elf_backend_mips_rtype_to_howto mips_elf_n32_rtype_to_howto
+#define bfd_elf32_bfd_is_local_label_name \
+ mips_elf_n32_is_local_label_name
#define bfd_elf32_find_nearest_line _bfd_mips_elf_find_nearest_line
#define bfd_elf32_find_inliner_info _bfd_mips_elf_find_inliner_info
#define bfd_elf32_new_section_hook _bfd_mips_elf_new_section_hook
Home |
Main Index |
Thread Index |
Old Index