projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use startswith more for strncmp function calls.
[deliverable/binutils-gdb.git]
/
bfd
/
elf32-m32r.c
diff --git
a/bfd/elf32-m32r.c
b/bfd/elf32-m32r.c
index 783632b65186dcd5f1d8b8988075d8954520c8eb..6a732585f5f42bcd9926182e1ab7a8edafde9d77 100644
(file)
--- a/
bfd/elf32-m32r.c
+++ b/
bfd/elf32-m32r.c
@@
-3615,8
+3615,8
@@
m32r_elf_section_flags (const Elf_Internal_Shdr *hdr)
{
const char *name = hdr->bfd_section->name;
- if (st
rncmp (name, ".sbss", 5) == 0
- || st
rncmp (name, ".sdata", 6) == 0
)
+ if (st
artswith (name, ".sbss")
+ || st
artswith (name, ".sdata")
)
hdr->bfd_section->flags |= SEC_SMALL_DATA;
return true;
This page took
0.025739 seconds
and
4
git commands to generate.