Peter Stuge wrote:
- for(i = 0, entry = (void *)0; ;i++) {
char filename[64];
void *newentry;
sprintf(filename, "normal/payload%d", i);
archive.len = *(u32 *)0xfffffff4;
archive.start =(void *)(0UL-archive.len);
Is 0UL good also on 64bit? (Even if it's truncated and "saved" when assigned to archive.start I'd prefer having the size explicitly.)
There will not be a 64bit version of the above code within the next decade. But who says never ;)
The size is explicit btw. The start address is not.
The above code would break on sc520, but that seems dead ;)