Bug 4863 - MIPS/Linux: ld.so.cache unusable for (n)64/n32
Summary: MIPS/Linux: ld.so.cache unusable for (n)64/n32
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: ports (show other bugs)
Version: 2.4
: P2 normal
Target Milestone: ---
Assignee: Roland McGrath
URL:
Keywords:
Depends on: 7074
Blocks:
  Show dependency tree / graph
 
Reported: 2007-07-30 13:26 UTC by Maciej W. Rozycki
Modified: 2014-07-04 16:08 UTC (History)
1 user (show)

See Also:
Host: mips64el-unknown-linux-gnu
Target: mips64el-unknown-linux-gnu
Build: mips64el-unknown-linux-gnu
Last reconfirmed:
Project(s) to access:
ssh public key:
fweimer: security-


Attachments
glibc-2.4-mips-dl-cache-id.patch (606 bytes, patch)
2007-07-30 13:27 UTC, Maciej W. Rozycki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej W. Rozycki 2007-07-30 13:26:28 UTC
Hello,

 The "libc-ports" list does not seem to attract anyone, so I am putting
the solution for the problem here so that it does not get lost in the
long term.

 It has been the case with glibc 2.4 and it appears to me that it still
is.  When built for the (n)64 or presumably the n32 ABI, ld.so is unable
to use the cache as it checks for the wrong o32 ID.  Here is a fix.
Tested for (n)64.

2007-07-23  Maciej W. Rozycki  <macro@linux-mips.org>

        * sysdeps/unix/sysv/linux/mips/dl-cache.h (_DL_CACHE_DEFAULT_ID):
        New macros for the (n)64 and n32 ABIs.
        (_dl_cache_check_flags): Define if _DL_CACHE_DEFAULT_ID has been.

 Please apply.

  Maciej
Comment 1 Maciej W. Rozycki 2007-07-30 13:27:56 UTC
Created attachment 1938 [details]
glibc-2.4-mips-dl-cache-id.patch
Comment 2 Andreas Jaeger 2007-10-27 15:39:01 UTC
This patch has been added to CVS already.