The ifdef check for AT_SYSINFO_EHDR is no longer needed

AT_SYSINFO_EHDR is present in all architectures

Test: make
Change-Id: I0f4c115bb48e47ea156e7fca936960f5f10c618e
This commit is contained in:
dimitry 2017-07-06 12:17:14 +02:00
parent f45bc14d54
commit f9abbf6983
1 changed files with 1 additions and 3 deletions

View File

@ -138,8 +138,7 @@ static void parse_LD_PRELOAD(const char* path) {
// An empty list of soinfos
static soinfo_list_t g_empty_list;
static void add_vdso(KernelArgumentBlock& args __unused) {
#if defined(AT_SYSINFO_EHDR)
static void add_vdso(KernelArgumentBlock& args) {
ElfW(Ehdr)* ehdr_vdso = reinterpret_cast<ElfW(Ehdr)*>(args.getauxval(AT_SYSINFO_EHDR));
if (ehdr_vdso == nullptr) {
return;
@ -155,7 +154,6 @@ static void add_vdso(KernelArgumentBlock& args __unused) {
si->prelink_image();
si->link_image(g_empty_list, soinfo_list_t::make_list(si), nullptr);
#endif
}
/* gdb expects the linker to be in the debug shared object list.