aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-macho.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/obj-macho.c')
-rw-r--r--gas/config/obj-macho.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/obj-macho.c b/gas/config/obj-macho.c
index 1380707..77442810 100644
--- a/gas/config/obj-macho.c
+++ b/gas/config/obj-macho.c
@@ -1907,8 +1907,8 @@ obj_mach_o_is_frame_section (segT sec)
{
int l;
l = strlen (segment_name (sec));
- if ((l == 9 && strncmp (".eh_frame", segment_name (sec), 9) == 0)
- || (l == 12 && strncmp (".debug_frame", segment_name (sec), 12) == 0))
+ if ((l == 9 && startswith (segment_name (sec), ".eh_frame"))
+ || (l == 12 && startswith (segment_name (sec), ".debug_frame")))
return 1;
return 0;
}