/* Mach-O object file format
- Copyright (C) 2009-2020 Free Software Foundation, Inc.
+ Copyright (C) 2009-2021 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
{
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;
}