Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BOLT] Fix order of R_*_IRELATIVE in .rela.plt #106515

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Aug 29, 2024

  1. [BOLT] Fix order of R_*_IRELATIVE in .rela.plt

    GNU ld might place R_*_IRELATIVE in .rela.plt, and have a layout like
    
    Relocation section '.rela.plt' ...
      Offset       Type
      cc9040       R_X86_64_JUMP_SLOT
      cc9048       R_X86_64_JUMP_SLOT
      cc9060       R_X86_64_JUMP_SLOT
      cc9050       R_X86_64_IRELATIVE
    
    R_*_IRELATIVE entries all come after JUMP_SLOT entries. This patch will
    change the allocatable rela patching order to keep this layout if we
    find R_*_IRELATIVE is in .rela.plt section.
    linsinan1995 committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    7d731c2 View commit details
    Browse the repository at this point in the history