From 8554fb21bb34329201b38c2ae4387fb6f00645cc Mon Sep 17 00:00:00 2001 From: Mark Salter Date: Tue, 22 May 2012 10:53:29 -0400 Subject: Clean up DSBT support The existing DSBT support relies on the kernel to provide DSBT info as part of the load maps passed to user space. The problem with this approach is that the DSBT info is in the dynamic section, so the kernel must access a userspace mapping of the dynamic section (or separately read a copy for the kernel) in order to retrieve the information needed by userspace. This patch reworks the DSBT support to remove the reliance on DSBT info coming from the kernel. Instead, ldso reads the info itself from the dynamic section. One other benefit of this is that it allows the existing kernel FDPIC loader to also load DSBT binaries. Signed-off-by: Mark Salter Signed-off-by: Bernhard Reutner-Fischer --- ldso/include/ldso.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ldso/include/ldso.h') diff --git a/ldso/include/ldso.h b/ldso/include/ldso.h index 6f3b728c3..cb7b12218 100644 --- a/ldso/include/ldso.h +++ b/ldso/include/ldso.h @@ -84,6 +84,9 @@ extern struct elf_resolve *_dl_trace_prelink_map; /* Library map for prelinking #else #define _dl_trace_prelink 0 #endif +#ifdef __DSBT__ +extern void **_dl_ldso_dsbt; +#endif #if defined(USE_TLS) && USE_TLS extern void _dl_add_to_slotinfo (struct link_map *l); -- cgit v1.2.3