rtld.c (38efd4df23cff3e5722e7fc9094276fcdcff1824) rtld.c (f940929d411102d6925e158de90d8d23b3774df6)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause
3 *
4 * Copyright 1996, 1997, 1998, 1999, 2000 John D. Polstra.
5 * Copyright 2003 Alexander Kabaev <kan@FreeBSD.ORG>.
6 * Copyright 2009-2013 Konstantin Belousov <kib@FreeBSD.ORG>.
7 * Copyright 2012 John Marino <draco@marino.st>.
8 * Copyright 2014-2017 The FreeBSD Foundation

--- 790 unchanged lines hidden (view full) ---

799 }
800 dbg("obj_main path %s", obj_main->path);
801 obj_main->mainprog = true;
802
803 if (aux_info[AT_STACKPROT] != NULL &&
804 aux_info[AT_STACKPROT]->a_un.a_val != 0)
805 stack_prot = aux_info[AT_STACKPROT]->a_un.a_val;
806
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause
3 *
4 * Copyright 1996, 1997, 1998, 1999, 2000 John D. Polstra.
5 * Copyright 2003 Alexander Kabaev <kan@FreeBSD.ORG>.
6 * Copyright 2009-2013 Konstantin Belousov <kib@FreeBSD.ORG>.
7 * Copyright 2012 John Marino <draco@marino.st>.
8 * Copyright 2014-2017 The FreeBSD Foundation

--- 790 unchanged lines hidden (view full) ---

799 }
800 dbg("obj_main path %s", obj_main->path);
801 obj_main->mainprog = true;
802
803 if (aux_info[AT_STACKPROT] != NULL &&
804 aux_info[AT_STACKPROT]->a_un.a_val != 0)
805 stack_prot = aux_info[AT_STACKPROT]->a_un.a_val;
806
807#ifndef COMPAT_32BIT
807#ifndef COMPAT_libcompat
808 /*
809 * Get the actual dynamic linker pathname from the executable if
810 * possible. (It should always be possible.) That ensures that
811 * gdb will find the right dynamic linker even if a non-standard
812 * one is being used.
813 */
814 if (obj_main->interp != NULL &&
815 strcmp(obj_main->interp, obj_rtld.path) != 0) {

--- 5516 unchanged lines hidden ---
808 /*
809 * Get the actual dynamic linker pathname from the executable if
810 * possible. (It should always be possible.) That ensures that
811 * gdb will find the right dynamic linker even if a non-standard
812 * one is being used.
813 */
814 if (obj_main->interp != NULL &&
815 strcmp(obj_main->interp, obj_rtld.path) != 0) {

--- 5516 unchanged lines hidden ---