debug print added again to runmem2

This commit is contained in:
Nicolas 2025-09-30 23:12:56 +02:00
parent aafdb3c0d2
commit f44771e5c6
1 changed files with 2 additions and 2 deletions

View File

@ -119,8 +119,8 @@ int parse_commands(uint8_t *bytes){
reloc_type = *(uint32_t*)bytes; bytes += 4; reloc_type = *(uint32_t*)bytes; bytes += 4;
value = *(int32_t*)bytes; bytes += 4; value = *(int32_t*)bytes; bytes += 4;
data_offs = (int32_t)(data_memory - executable_memory); data_offs = (int32_t)(data_memory - executable_memory);
//printf("PATCH_OBJECT patch_offs=%i reloc_type=%i value=%i data_offs=%i\n", printf("PATCH_OBJECT patch_offs=%i reloc_type=%i value=%i data_offs=%i\n",
// offs, reloc_type, value, data_offs); offs, reloc_type, value, data_offs);
if (abs(data_offs) > 0x7FFFFFFF) { if (abs(data_offs) > 0x7FFFFFFF) {
perror("code and data memory to far apart"); perror("code and data memory to far apart");
return EXIT_FAILURE; return EXIT_FAILURE;