summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-elf
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1999-07-14 04:09:11 +0000
committerjdp <jdp@FreeBSD.org>1999-07-14 04:09:11 +0000
commit564861ba7c78bd06e527c27022b1d2a0790c2f2c (patch)
treed2e196786248184b5ac18f3cf3242b5eb3e1bff6 /libexec/rtld-elf
parentb361865fdd3a9eeef37ad66fdb497d7ecda65ef1 (diff)
downloadFreeBSD-src-564861ba7c78bd06e527c27022b1d2a0790c2f2c.zip
FreeBSD-src-564861ba7c78bd06e527c27022b1d2a0790c2f2c.tar.gz
Change the symbol used to find the end of an object's address space
from "end" to "_end". The former does not exist in most shared libraries. This fixes problems in dladdr() and dlsym(RTLD_NEXT, ...).
Diffstat (limited to 'libexec/rtld-elf')
-rw-r--r--libexec/rtld-elf/rtld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
index 8a69de1..313e8ef 100644
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -22,7 +22,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: rtld.c,v 1.26 1999/07/03 23:54:02 jdp Exp $
+ * $Id: rtld.c,v 1.27 1999/07/09 16:22:55 jdp Exp $
*/
/*
@@ -60,7 +60,7 @@
#define msg(s) (write(1, s, strlen(s)))
#define trace() msg("trace: " __XSTRING(__LINE__) "\n");
-#define END_SYM "end"
+#define END_SYM "_end"
/* Types. */
typedef void (*func_ptr_type)();
OpenPOWER on IntegriCloud