diff options
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/pdp11.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 688ffad..6159d3a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2020-06-11 Alan Modra <amodra@gmail.com> + + PR 26107 + * pdp11.c (is_stab): Replace legacy "index" function with "strchr". + 2020-06-10 H.J. Lu <hongjiu.lu@intel.com> * elfnn-ia64.c (elfNN_ia64_link_hash_table): Remove reltext. diff --git a/bfd/pdp11.c b/bfd/pdp11.c index fecaa21..c9b26c2 100644 --- a/bfd/pdp11.c +++ b/bfd/pdp11.c @@ -336,8 +336,8 @@ static int is_stab (int type, const char *name) { if (type == N_GSYM || type == N_FUN) - return (index(name, ':') != NULL); - return (type > N_FUN); + return strchr (name, ':') != NULL; + return type > N_FUN; } static int |