diff options
Diffstat (limited to 'libexec/ld.so/i386')
-rw-r--r-- | libexec/ld.so/i386/rtld_machine.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libexec/ld.so/i386/rtld_machine.c b/libexec/ld.so/i386/rtld_machine.c index 5740973495f..b207ae8d538 100644 --- a/libexec/ld.so/i386/rtld_machine.c +++ b/libexec/ld.so/i386/rtld_machine.c @@ -318,6 +318,9 @@ _dl_md_reloc_got(elf_object_t *object, int lazy) Elf_Rel *rel; struct load_list *llist; + if (pltgot == NULL) + return; /* it is possible to have no PLT/GOT relocations */ + pltgot[1] = (Elf_Addr)object; pltgot[2] = (Elf_Addr)&_dl_bind_start; |