Enable support for roc-obj tools on Windows

SWDEV-301785 - roc-obj - support for Windows COFF

Change-Id: I20d53196e2d126391934351cb824b7bc926fb1ce
This commit is contained in:
David Salinas
2023-12-14 19:11:52 +00:00
parent 411bccff5b
commit 9fa8dcd1d1
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -0,0 +1,2 @@
@set ROC_OBJ_EXTRACT="%~dp0roc-obj-extract"
@perl %ROC_OBJ_EXTRACT% %*
+1 -1
View File
@@ -81,7 +81,7 @@ foreach my $executable_file(@ARGV) {
# kernel section information
my $escaped_name=quotemeta($executable_file);
my $bundle_section_name = ".hip_fatbin";
my $bundle_section_name = ".hip_fat";
my $bundle_section_size = hex(`$objdump -h $escaped_name | grep $bundle_section_name | awk '{print \$3}'`);
my $bundle_section_offset = hex(`$objdump -h $escaped_name | grep $bundle_section_name | awk '{print \$6}'`);
+2
View File
@@ -0,0 +1,2 @@
@set ROC_OBJ_LS="%~dp0roc-obj-ls"
@perl %ROC_OBJ_LS% %*