diff options
author | jhb <jhb@FreeBSD.org> | 2017-09-21 20:59:36 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2017-09-21 20:59:36 +0000 |
commit | af2751ed9fdfb8d9efe2f9b32ccb402ab5f94756 (patch) | |
tree | e81f825b7b0258f53aad92a0fc103aa841cd716e /libexec/rtld-elf | |
parent | c5d73cb5c385612d2cc3b239336ccda5b8b2c4ef (diff) | |
download | FreeBSD-src-af2751ed9fdfb8d9efe2f9b32ccb402ab5f94756.zip FreeBSD-src-af2751ed9fdfb8d9efe2f9b32ccb402ab5f94756.tar.gz |
MFC 323025: Read max_stack_flags from correct object.
'obj' is not initialized here.
Sponsored by: DARPA / AFRL
Diffstat (limited to 'libexec/rtld-elf')
-rw-r--r-- | libexec/rtld-elf/rtld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index 6899a20..c13caac 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -470,7 +470,7 @@ _rtld(Elf_Addr *sp, func_ptr_type *exit_proc, Obj_Entry **objp) close(fd); if (obj_main == NULL) rtld_die(); - max_stack_flags = obj->stack_flags; + max_stack_flags = obj_main->stack_flags; } else { /* Main program already loaded. */ const Elf_Phdr *phdr; int phnum; |