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, ...).
This commit is contained in:
parent
542562e6e1
commit
cb435fa919
@ -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)();
|
||||
|
Loading…
Reference in New Issue
Block a user