scripts: update target_debug_path 34/295834/1
authorDongkyun Son <dongkyun.s@samsung.com>
Fri, 14 Jul 2023 08:14:31 +0000 (17:14 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Fri, 14 Jul 2023 08:28:35 +0000 (17:28 +0900)
Change-Id: I953f603f8a1023a668e57849307be536ef935099
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
scripts/gen_linker_header.sh

index 0b0817e..2377bb9 100755 (executable)
@@ -10,7 +10,7 @@ rtld_name=$(basename $(readlink -f $(readelf --program-headers /usr/bin/gcc | se
 if [ "$__tizen_product_tv__" == "1" ]; then
         target_debug_path="/lib/${rtld_name}"
 else
-        target_debug_path=$(rpm -ql tizen-debug | grep "so\.debug$" | grep "ld\-")
+        target_debug_path=$(rpm -ql tizen-debug | grep "so\.[[:digit:]]\.debug$" | grep "ld\-")
 fi
 fixup_function="_dl_fixup"
 reloc_function="_dl_relocate_object"