Treat assembler generated local labels as local.
authorNick Clifton <nickc@redhat.com>
Tue, 7 Apr 2015 10:22:32 +0000 (11:22 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 7 Apr 2015 10:22:32 +0000 (11:22 +0100)
* elf.c (_bfd_elf_is_local_label_name): Treat assembler generated
local labels as local.

bfd/ChangeLog
bfd/elf.c

index 4291fc7da246d044a536adfae18e3df814a3a7aa..84fbc0b7e4ff99fc06623fd22ef959ceac2031a8 100644 (file)
@@ -1,3 +1,8 @@
+2015-04-07  Nick Clifton  <nickc@redhat.com>
+
+       * elf.c (_bfd_elf_is_local_label_name): Treat assembler generated
+       local labels as local.
+
 2015-04-06  H.J. Lu  <hongjiu.lu@intel.com>
 
        * compress.c (get_uncompressed_size): Removed.
index cbc0c918f8809bd0d75ef53b771c2c70dbd96511..bb5f1c6852da23466afba9068c3a77c247990c6b 100644 (file)
--- 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;
 }