pull raddbg byte attachment aside into standalone section - this guarantees byte placement, does not rely on ordering, and does not require symbols

This commit is contained in:
Ryan Fleury
2025-07-31 13:15:37 -07:00
parent 9ef87e9d56
commit ad735dab5e
2 changed files with 12 additions and 5 deletions
+3 -2
View File
@@ -98,8 +98,9 @@ void raddbg_annotate_vaddr_range__impl(void *ptr, unsigned __int64 size, char *f
#include <stdio.h>
#endif
//- first byte of exe data section -> is attached
raddbg_exe_data unsigned char raddbg_is_attached_byte_marker[1] = {0};
//- special section gets "is attached" byte
#pragma section(".rdbgia", read, write)
__declspec(allocate(".rdbgia")) unsigned char raddbg_is_attached_byte_marker[1] = {0};
//- types