This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Commit: _bfd_is_local_label_name: Include assembler local labels
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sourceware dot org
- Date: Tue, 07 Apr 2015 11:22:14 +0100
- Subject: Commit: _bfd_is_local_label_name: Include assembler local labels
- Authentication-results: sourceware.org; auth=none
Hi Guys,
I am checking in the patch below to update _bfd_is_local_label_name so
that it includes assembler generated local labels.
Cheers
Nick
bfd/ChangeLog
2015-04-07 Nick Clifton <nickc@redhat.com>
* elf.c (_bfd_elf_is_local_label_name): Treat assembler generated
local labels as local.
diff --git a/bfd/elf.c b/bfd/elf.c
index cbc0c91..bb5f1c6 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -7743,6 +7743,10 @@ _bfd_elf_is_local_label_name (bfd *abfd ATTRIBUTE_UNUSED,
if (name[0] == '_' && name[1] == '.' && name[2] == 'L' && name[3] == '_')
return TRUE;
+ /* Treat assembler generated local labels as local. */
+ if (name[0] == 'L' && name[strlen (name) - 1] < 32)
+ return TRUE;
+
return FALSE;
}