Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6194279

j2se workspace built libraries on Linux 64bit and Linux X86 debug need mapfiles/version-scripts

XMLWordPrintable

    • 1.5
    • 5.0
    • b17
    • generic
    • generic

      The j2se workspace file make/common/Mapfile-vers.gmk is responsible for
      setting up the 'ld' mapfile or version-script options so that native libraries
      only export specific externs. If a native library specifies a mapfile,
      it is used on Solaris opt and debug builds, but on Linux only the X86 opt
      build uses mapfiles. The Linux 64bit and debug builds do not use mapfiles.

      There may have been a valid reason for this early on, but it seems like a
      flaw to me. Exposing unnecessary externs in our libraries can cause
      problems as the runtime linker goes to resolve missing externs.
      It's unlikely we have a problem now, but an accidental new function in
      one of these libraries could cause problems.

      All shared libraries should use mapfiles and only expose the externs
      that are spec'd, or needed.

      ###@###.### 2004-11-11 22:03:51 GMT
      ###@###.### 2004-12-15 16:40:19 GMT

            ohair Kelly Ohair (Inactive)
            ohair Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: