elf_object.cc (11392:5967db4cff04) | elf_object.cc (11559:3210a0b99c88) |
---|---|
1/* 2 * Copyright (c) 2011-2013 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 369 unchanged lines hidden (view full) --- 378 extra.baseAddr = phdr.p_paddr; 379 extra.size = phdr.p_filesz; 380 extra.fileImage = fileData + phdr.p_offset; 381 extraSegments.push_back(extra); 382 } 383 } 384 385 // should have found at least one loadable segment | 1/* 2 * Copyright (c) 2011-2013 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 369 unchanged lines hidden (view full) --- 378 extra.baseAddr = phdr.p_paddr; 379 extra.size = phdr.p_filesz; 380 extra.fileImage = fileData + phdr.p_offset; 381 extraSegments.push_back(extra); 382 } 383 } 384 385 // should have found at least one loadable segment |
386 assert(text.size != 0); | 386 warn_if(text.size != 0, 387 "Empty .text segment in '%s'. ELF file corrupted?\n", 388 filename); |
387 388 DPRINTFR(Loader, "text: 0x%x %d\ndata: 0x%x %d\nbss: 0x%x %d\n", 389 text.baseAddr, text.size, data.baseAddr, data.size, 390 bss.baseAddr, bss.size); 391 392 elf_end(elf); 393 394 // We will actually read the sections when we need to load them --- 177 unchanged lines hidden --- | 389 390 DPRINTFR(Loader, "text: 0x%x %d\ndata: 0x%x %d\nbss: 0x%x %d\n", 391 text.baseAddr, text.size, data.baseAddr, data.size, 392 bss.baseAddr, bss.size); 393 394 elf_end(elf); 395 396 // We will actually read the sections when we need to load them --- 177 unchanged lines hidden --- |