Commit 7b544af1 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

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

parent 6a602665
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment