vfs: more regions for coredumps
This commit is contained in:
		
							parent
							
								
									e83f7ba2c9
								
							
						
					
					
						commit
						1e2b3f4326
					
				@ -35,13 +35,15 @@ void write_elf_core_file(struct filp *f, int csig, char *proc_name)
 | 
				
			|||||||
/* First, fill in all the required headers, second, adjust the offsets,
 | 
					/* First, fill in all the required headers, second, adjust the offsets,
 | 
				
			||||||
 * third, dump everything into the core file
 | 
					 * third, dump everything into the core file
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
#define MAX_REGIONS 20
 | 
					#define MAX_REGIONS 100
 | 
				
			||||||
#define NR_NOTE_ENTRIES 2
 | 
					#define NR_NOTE_ENTRIES 2
 | 
				
			||||||
  Elf_Ehdr elf_header;
 | 
					  Elf_Ehdr elf_header;
 | 
				
			||||||
  Elf_Phdr phdrs[MAX_REGIONS + 1];
 | 
					  Elf_Phdr phdrs[MAX_REGIONS + 1];
 | 
				
			||||||
  Elf_Nhdr nhdrs[NR_NOTE_ENTRIES];
 | 
					  Elf_Nhdr nhdrs[NR_NOTE_ENTRIES];
 | 
				
			||||||
  int phnum;
 | 
					  int phnum;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  memset(phdrs, 0, sizeof(phdrs));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* Fill in the NOTE Program Header - at phdrs[0] - and
 | 
					  /* Fill in the NOTE Program Header - at phdrs[0] - and
 | 
				
			||||||
   * note entries' headers
 | 
					   * note entries' headers
 | 
				
			||||||
   */
 | 
					   */
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user