[all-commits] [llvm/llvm-project] d6d03d: [ELF][test] Fix some llvm-objdump RUN lines which ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Aug 24 12:18:32 PDT 2020


  Branch: refs/heads/release/11.x
  Home:   https://github.com/llvm/llvm-project
  Commit: d6d03d09e3f7498f60e2976b8cea235080f55fe7
      https://github.com/llvm/llvm-project/commit/d6d03d09e3f7498f60e2976b8cea235080f55fe7
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-08-24 (Mon, 24 Aug 2020)

  Changed paths:
    M lld/test/ELF/arm-ldrlit.s
    M lld/test/ELF/arm-thumb-interwork-ifunc.s
    M lld/test/ELF/arm-thumb2-adr.s

  Log Message:
  -----------
  [ELF][test] Fix some llvm-objdump RUN lines which don't actually test anything

(cherry picked from commit ac46bc35e98d922f1b05b451341f03dcaccd1527)


  Commit: c4e216711d001316df2313a85c8af73a85d804c0
      https://github.com/llvm/llvm-project/commit/c4e216711d001316df2313a85c8af73a85d804c0
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-08-24 (Mon, 24 Aug 2020)

  Changed paths:
    M lld/ELF/LinkerScript.cpp
    M lld/ELF/LinkerScript.h
    M lld/docs/ELF/linker_script.rst
    M lld/test/ELF/arm-thumb-interwork-ifunc.s
    M lld/test/ELF/linkerscript/common-assign.s
    A lld/test/ELF/linkerscript/symbol-assign-type.s

  Log Message:
  -----------
  [ELF] Keep st_type for symbol assignment

PR46970: for `alias = aliasee`, the alias can be used in relocation processing
and on ARM st_type does affect Thumb interworking. It is thus desirable for the
alias to get the same st_type.

Note that the st_size field should not be inherited because some tools use
st_size=0 as a heuristic to detect aliases. Retaining st_size can thwart such
heuristics and cause aliases to be preferred over the original symbols.

Differential Revision: https://reviews.llvm.org/D86263

(cherry picked from commit 9670029b6b302c75bb373fb1814f4e02790c4da8)
The test symbol-assign-type.s was rewritten to not depend on 'split-file'.


Compare: https://github.com/llvm/llvm-project/compare/dcdf2aff02a1...c4e216711d00


More information about the All-commits mailing list