[all-commits] [llvm/llvm-project] dfb751: [MC] Set SHF_INFO_LINK on SHT_REL/SHT_RELA sections

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Sep 2 01:01:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dfb7518df18ad420984f965ef5ccfb4e126d839b
      https://github.com/llvm/llvm-project/commit/dfb7518df18ad420984f965ef5ccfb4e126d839b
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-09-02 (Thu, 02 Sep 2021)

  Changed paths:
    M llvm/lib/MC/ELFObjectWriter.cpp
    M llvm/test/ExecutionEngine/RuntimeDyld/SystemZ/cfi-relo-pc64.s
    M llvm/test/MC/ELF/cfi-adjust-cfa-offset.s
    M llvm/test/MC/ELF/cfi-advance-loc2.s
    M llvm/test/MC/ELF/cfi-def-cfa-offset.s
    M llvm/test/MC/ELF/cfi-def-cfa-register.s
    M llvm/test/MC/ELF/cfi-def-cfa.s
    M llvm/test/MC/ELF/cfi-escape.s
    M llvm/test/MC/ELF/cfi-offset.s
    M llvm/test/MC/ELF/cfi-register.s
    M llvm/test/MC/ELF/cfi-rel-offset.s
    M llvm/test/MC/ELF/cfi-rel-offset2.s
    M llvm/test/MC/ELF/cfi-remember.s
    M llvm/test/MC/ELF/cfi-restore.s
    M llvm/test/MC/ELF/cfi-same-value.s
    M llvm/test/MC/ELF/cfi-undefined.s
    M llvm/test/MC/ELF/cfi-window-save.s
    M llvm/test/MC/ELF/cfi-zero-addr-delta.s
    M llvm/test/MC/ELF/cfi.s
    M llvm/test/MC/ELF/cgprofile.s
    M llvm/test/MC/ELF/relocation-pc.s
    M llvm/test/MC/ELF/rename.s
    M llvm/test/MC/PowerPC/ppc64-initial-cfa.s

  Log Message:
  -----------
  [MC] Set SHF_INFO_LINK on SHT_REL/SHT_RELA sections

sh_info links to a section, therefore SHF_INFO_LINK should be set as GNU as
does. The issue has been benign because linkers kindly combines relocation
sections w/ and w/o the flag.




More information about the All-commits mailing list