loader: Protect preloader against ELF file without loadable segments (clang).

This commit is contained in:
Eric Pouech 2011-03-26 12:16:51 +01:00 committed by Alexandre Julliard
parent 6a60266575
commit 7b544af170
1 changed files with 2 additions and 0 deletions

View File

@ -788,6 +788,8 @@ static void map_so_lib( const char *name, struct wld_link_map *l)
}
/* Now process the load commands and map segments into memory. */
if (!nloadcmds)
fatal_error( "%s: no segments to load\n", name );
c = loadcmds;
/* Length of the sections to be loaded. */