livoxGen1: unmangle symbols, add .sizes

This commit is contained in:
2025-11-08 11:09:09 -04:00
parent 5dbed56e38
commit 28e56653ea
3 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
__kernel void collate(__global uchar* assembly, __global uchar* collation) { __kernel void collate(__global uchar* assembly, __global uchar* collation) {
// Placeholder kernel - will be replaced with actual collation logic // Placeholder kernel - will be replaced with actual collation logic.
} }
+2 -2
View File
@@ -1,17 +1,17 @@
.section .rodata .section .rodata
.global collateKernelStart .global collateKernelStart
.global collateKernelEnd
.global collateKernelNBytes .global collateKernelNBytes
.type collateKernelStart, @object .type collateKernelStart, @object
.type collateKernelEnd, @object
.type collateKernelNBytes, @object .type collateKernelNBytes, @object
collateKernelStart: collateKernelStart:
.incbin "collateDgrams.cl" .incbin "collateDgrams.cl"
.size collateKernelStart, . - collateKernelStart
collateKernelEnd: collateKernelEnd:
.section .data .section .data
collateKernelNBytes: collateKernelNBytes:
.long collateKernelEnd - collateKernelStart .long collateKernelEnd - collateKernelStart
.size collateKernelNBytes, 4
.section .note.GNU-stack,"",@progbits .section .note.GNU-stack,"",@progbits
+7 -6
View File
@@ -3,15 +3,16 @@
#include <cstdint> #include <cstdint>
namespace smo { #ifdef __cplusplus
namespace stim_buff { extern "C" {
#endif
// External symbols for collate kernel // External symbols for collate kernel (unmangled, not namespaced)
extern const char collateKernelStart[]; extern const char collateKernelStart[];
extern const char collateKernelEnd[];
extern const uint32_t collateKernelNBytes; extern const uint32_t collateKernelNBytes;
} // namespace stim_buff #ifdef __cplusplus
} // namespace smo } // extern "C"
#endif
#endif // _LIVOX_GEN1_OPENCL_KERNELS_H #endif // _LIVOX_GEN1_OPENCL_KERNELS_H