Commit 745b26a7 authored by Dmitry Safonov's avatar Dmitry Safonov Committed by Andrei Vagin

compel: abort PIE generation on undefined/external symbols

  As we meet this before, I think, we should abort generation here.
No point for making PIE with external symbols for us (at least, yet),
so let's break build than find the problem at runtime.

Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 693f56fd
...@@ -319,7 +319,8 @@ int __handle_elf(void *mem, size_t size) ...@@ -319,7 +319,8 @@ int __handle_elf(void *mem, size_t size)
goto err; goto err;
} }
#else #else
continue; pr_err("Unexpected undefined symbol: `%s'. External symbol in PIE?\n", name);
goto err;
#endif #endif
} }
......
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