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

enable link-time section-gc for linux to remove unused code

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: infrastructure
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b08
    • CPU:
      generic
    • OS:
      linux

      Description

      gcc and ld support enabling "garbage collection" of unused input sections.
      This can be used to eliminate unused coding from native libraries (especially when already compiling the objects with compiler flags -ffunction-sections -fdata-sections .
      See for details the --gc-sections and --print-gc-sections parts of the ld documentation :

      https://linux.die.net/man/1/ld

      The change will enable link-time section-gc for linux , except linux s390x which has been enabled already with JDK-8234525 ..

        Attachments

          Activity

            People

            • Assignee:
              mbaesken Matthias Baesken
              Reporter:
              mbaesken Matthias Baesken
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: