Resource: Handle AM65xx case correctly
authorSam Nelson <sam.nelson@ti.com>
Mon, 20 Aug 2018 20:06:32 +0000 (16:06 -0400)
committerSam Nelson <sam.nelson@ti.com>
Tue, 21 Aug 2018 20:26:32 +0000 (16:26 -0400)
The previous modification handled addressed the backward compatibility
concern, but reverted fix for am65xx

Signed-off-by: Sam Nelson <sam.nelson@ti.com>]
packages/ti/ipc/remoteproc/Resource.xs

index 8037c54534c21ada16372880a468634a09f4626e..6354a6a00434e04503604f4089a2d9c1fb421cb1 100644 (file)
@@ -59,10 +59,12 @@ function module$use()
         addr = segment.base;
     }
 
-    /* The .resource_table section should always be at the segment base */
-    Program.sectMap[".resource_table"] = new Program.SectionSpec();
-    Program.sectMap[".resource_table"].type = "NOINIT";
-    Program.sectMap[".resource_table"].loadAddress = addr;
+    if ( Resource.loadSymbol == undefined) {
+        /* The .resource_table section should always be at the segment base */
+        Program.sectMap[".resource_table"] = new Program.SectionSpec();
+        Program.sectMap[".resource_table"].type = "NOINIT";
+        Program.sectMap[".resource_table"].loadAddress = addr;
+    }
 }
 
 function module$static$init(obj, params)