Re: backwards compatible ld.so patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



And, of course, the actual patch....:)

-- 
Ryan Murray, Debian Developer (rmurray@cyberhqz.com, rmurray@debian.org)
The opinions expressed here are my own.
--- sysdeps/mips/dl-machine.h	Sun May 13 22:25:35 2001
+++ sysdeps/mips/dl-machine.h	Sun May 13 22:28:14 2001
@@ -71,12 +71,7 @@
  * libraries have their base address at 0x5ffe0000.  This needs to be
  * fixed before we can safely get rid of this MIPSism.
  */
-#if 0
-#define MAP_BASE_ADDR(l) ((l)->l_info[DT_MIPS(BASE_ADDRESS)] ? \
-			  (l)->l_info[DT_MIPS(BASE_ADDRESS)]->d_un.d_ptr : 0)
-#else
-#define MAP_BASE_ADDR(l) 0x5ffe0000
-#endif
+#define MAP_BASE_ADDR(l) ((l)->l_addr >= 0x5ffe0000 ? 0x5ffe0000 : 0)
 
 /* If there is a DT_MIPS_RLD_MAP entry in the dynamic section, fill it in
    with the run-time address of the r_debug structure  */

PGP signature


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux