poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] utils: use get_section_name function


From: Indu Bhagat
Subject: [PATCH] utils: use get_section_name function
Date: Tue, 23 Feb 2021 16:29:41 -0800

2021-02-23  Indu Bhagat  <indu.bhagat@oracle.com>

        * utils/pk-elfextractor.in: use get_section_name instead of get_string
---
 utils/pk-elfextractor.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/pk-elfextractor.in b/utils/pk-elfextractor.in
index adb57b53..669e53b9 100755
--- a/utils/pk-elfextractor.in
+++ b/utils/pk-elfextractor.in
@@ -37,7 +37,7 @@ try
 
     for (shdr in elf.shdr where shdr.sh_type != 0x0)
       {
-        var sname = elf.get_string (shdr.sh_name);
+        var sname = elf.get_section_name (shdr.sh_name);
 
         if (section_name == "" || sname == section_name)
           save :ios elf'ios :file file_name + sname
-- 
2.27.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]