diff options
author | Nick Clifton <nickc@redhat.com> | 2015-04-07 11:22:32 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-04-07 11:22:32 +0100 |
commit | ffa547701bec5b3fb92acf049e5442cbbfc95b2c (patch) | |
tree | a6622ba0c25e56003a79b64bd8c39c717be16094 /bfd/elf.c | |
parent | 122bbfb52a7990dbed5f5da79cf8d9eb305ca7e3 (diff) | |
download | gdb-ffa547701bec5b3fb92acf049e5442cbbfc95b2c.zip gdb-ffa547701bec5b3fb92acf049e5442cbbfc95b2c.tar.gz gdb-ffa547701bec5b3fb92acf049e5442cbbfc95b2c.tar.bz2 |
Treat assembler generated local labels as local.
* elf.c (_bfd_elf_is_local_label_name): Treat assembler generated
local labels as local.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; } |