Revision 4118a970 linux-user/elfload.c
b/linux-user/elfload.c | ||
---|---|---|
517 | 517 |
* |
518 | 518 |
*/ |
519 | 519 |
static unsigned long copy_elf_strings(int argc,char ** argv, void **page, |
520 |
unsigned long p)
|
|
520 |
target_ulong p)
|
|
521 | 521 |
{ |
522 | 522 |
char *tmp, *tmp1, *pag = NULL; |
523 | 523 |
int len, offset = 0; |
... | ... | |
544 | 544 |
pag = (char *)page[p/TARGET_PAGE_SIZE]; |
545 | 545 |
if (!pag) { |
546 | 546 |
pag = (char *)malloc(TARGET_PAGE_SIZE); |
547 |
memset(pag, 0, TARGET_PAGE_SIZE); |
|
547 | 548 |
page[p/TARGET_PAGE_SIZE] = pag; |
548 | 549 |
if (!pag) |
549 | 550 |
return 0; |
Also available in: Unified diff