SUNW_CTF is defined in exec_elf.h now as ELF_CTF
authorJasper Lievisse Adriaanse <jasper@humppa.nl>
Sat, 17 Sep 2016 17:53:28 +0000 (19:53 +0200)
committerJasper Lievisse Adriaanse <jasper@humppa.nl>
Sat, 17 Sep 2016 17:53:28 +0000 (19:53 +0200)
ctfdump.c

index 1c7f345641caa5b46336e4f96d7dc2deb7eafdcd..b661d02220f63626994ff12a58ff2fdacab20788 100644 (file)
--- a/ctfdump.c
+++ b/ctfdump.c
@@ -39,8 +39,6 @@
 #define nitems(_a)     (sizeof((_a)) / sizeof((_a)[0]))
 #endif
 
-#define SUNW_CTF       ".SUNW_ctf"
-
 #define DUMP_OBJECT    (1 << 0)
 #define DUMP_FUNCTION  (1 << 1)
 #define DUMP_HEADER    (1 << 2)
@@ -214,7 +212,7 @@ elf_dump(const char *p, size_t filesize, uint8_t flags)
                    (sh->sh_name >= shstrtabsize))
                        continue;
 
-               if (strncmp(shstrtab + sh->sh_name, SUNW_CTF, strlen(SUNW_CTF)))
+               if (strncmp(shstrtab + sh->sh_name, ELF_CTF, strlen(ELF_CTF)))
                        continue;
 
                if (!isctf(p + sh->sh_offset, sh->sh_size))
@@ -223,7 +221,7 @@ elf_dump(const char *p, size_t filesize, uint8_t flags)
                return ctf_dump(p + sh->sh_offset, sh->sh_size, flags);
        }
 
-       warnx("%s section not found", SUNW_CTF);
+       warnx("%s section not found", ELF_CTF);
        return 1;
 }