Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-36305

Implement --section-ordering-file in the BFD linker

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-10.0.beta
    • rhel-10.0.beta
    • binutils
    • None
    • binutils-2.41-38.el10
    • FutureFeature
    • 1
    • rhel-sst-pt-gcc
    • ssg_platform_tools
    • 13
    • 18
    • 1
    • False
    • Hide

      None

      Show
      None
    • Yes
    • GCC Sprint 6
    • Enhancement
    • Hide
      .The `ld` linker of `binutils` supports the `--section-ordering-file` option

      You can now use the new `--section-ordering-file` command-line option with `ld.bfd`, the default system linker, to group sections of code or data that can benefit from being in proximity to each other.

      This feature improves performance of programs by reducing cache misses. You can use profiling tools to analyze use of your program's code over time, and then improve code grouping in the executable image. As a result, you have more control over the layout of your programs in memory.

      The `--section-ordering-file` option also enhances compatibility with the `gold` and `lld` linkers, which already provide this feature.

      For details, see the blog post link:https://developers.redhat.com/articles/2024/06/13/practical-guide-linker-section-ordering[A practical guide to linker section ordering].
      Show
      .The `ld` linker of `binutils` supports the `--section-ordering-file` option You can now use the new `--section-ordering-file` command-line option with `ld.bfd`, the default system linker, to group sections of code or data that can benefit from being in proximity to each other. This feature improves performance of programs by reducing cache misses. You can use profiling tools to analyze use of your program's code over time, and then improve code grouping in the executable image. As a result, you have more control over the layout of your programs in memory. The `--section-ordering-file` option also enhances compatibility with the `gold` and `lld` linkers, which already provide this feature. For details, see the blog post link: https://developers.redhat.com/articles/2024/06/13/practical-guide-linker-section-ordering [A practical guide to linker section ordering].
    • Done
    • None

      The --section-ordering-file option in the gold linker is useful in ordering sections in a binary to improve icache performance of the resulting binary. Implement this in the bfd linker so that one doesn't have to use the gold linker to get this performance improvement.

              mprchlik@redhat.com Milos Prchlik
              nickc@redhat.com Nick Clifton
              Milos Prchlik Milos Prchlik
              Tomas Capek Tomas Capek
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: