__DATA,__data section may be empty (MacOS X 10.4.4 for Intel)

This commit is contained in:
gbeauche 2006-01-22 00:07:22 +00:00
parent 100a3e1abd
commit 1f195045a1

View File

@ -1475,7 +1475,8 @@ int load_object(const char *filename, FILE *outfile)
data_sec_hdr = find_mach_sec_hdr(section_hdr, segment->nsects, SEG_DATA, SECT_DATA);
i = find_mach_sec_index(section_hdr, segment->nsects, SEG_DATA, SECT_DATA);
if (i == -1 || !data_sec_hdr)
error("could not find __DATA,__data section");
data = NULL;
else
data = sdata[i];
/* text section */