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) {
// 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
.global collateKernelStart
.global collateKernelEnd
.global collateKernelNBytes
.type collateKernelStart, @object
.type collateKernelEnd, @object
.type collateKernelNBytes, @object
collateKernelStart:
.incbin "collateDgrams.cl"
.size collateKernelStart, . - collateKernelStart
collateKernelEnd:
.section .data
collateKernelNBytes:
.long collateKernelEnd - collateKernelStart
.size collateKernelNBytes, 4
.section .note.GNU-stack,"",@progbits
+7 -6
View File
@@ -3,15 +3,16 @@
#include <cstdint>
namespace smo {
namespace stim_buff {
#ifdef __cplusplus
extern "C" {
#endif
// External symbols for collate kernel
// External symbols for collate kernel (unmangled, not namespaced)
extern const char collateKernelStart[];
extern const char collateKernelEnd[];
extern const uint32_t collateKernelNBytes;
} // namespace stim_buff
} // namespace smo
#ifdef __cplusplus
} // extern "C"
#endif
#endif // _LIVOX_GEN1_OPENCL_KERNELS_H