* bfd-in.h (STRING_AND_COMMA): New macro. Takes one constant string as its
[deliverable/binutils-gdb.git] / ld / emultempl / pe.em
index 0e75e182c54dd69aff2b8fe62bc51061d12a8e38..fa4cafe8880d04d95d166de41f06da7a875c01ad 100644 (file)
@@ -925,8 +925,7 @@ pe_find_data_imports (void)
 
              for (i = 0; i < nsyms; i++)
                {
-                 if (memcmp (symbols[i]->name, "__head_",
-                             sizeof ("__head_") - 1))
+                 if (! CONST_STRNEQ (symbols[i]->name, "__head_"))
                    continue;
 
                  if (pe_dll_extra_pe_debug)
@@ -1060,7 +1059,7 @@ gld_${EMULATION_NAME}_after_open (void)
              {
                if (strcmp (sec->name, ".idata\$2") == 0)
                  idata2 = 1;
-               if (strncmp (sec->name, ".idata\$", 7) == 0)
+               if (CONST_STRNEQ (sec->name, ".idata\$"))
                  is_imp = 1;
                reloc_count += sec->reloc_count;
              }
This page took 0.023016 seconds and 4 git commands to generate.