[all-commits] [llvm/llvm-project] 5d1c72: [ELF][test] Rewrite st_value=0 copy relocation tests

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Dec 12 16:54:31 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d1c723b73aff4a33c4653b9f675cf18dea8c7d6
      https://github.com/llvm/llvm-project/commit/5d1c723b73aff4a33c4653b9f675cf18dea8c7d6
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-12-12 (Sat, 12 Dec 2020)

  Changed paths:
    R lld/test/ELF/Inputs/copy-relocation-zero-abs-addr.s
    R lld/test/ELF/Inputs/copy-relocation-zero-nonabs-addr.s
    R lld/test/ELF/Inputs/copy-relocation-zero-nonabs-addr.script
    R lld/test/ELF/copy-relocation-zero-abs-addr.s
    A lld/test/ELF/copy-relocation-zero-addr.s
    R lld/test/ELF/copy-relocation-zero-nonabs-addr.s

  Log Message:
  -----------
  [ELF][test] Rewrite st_value=0 copy relocation tests

The original tests have unneeded symbols and copy-relocation-zero-abs-addr.s
does not actually test anything.

Rewrite them and add copy-relocation-zero-addr.s instead.

Add --soname=b so that the address 0x203400 will be stable.  (When linking an
executable with %t.so, the path %t.so will be recorded in the DT_NEEDED entry if
%t.so doesn't have DT_SONAME. .dynstr will have varying lengths on different
systems.)




More information about the All-commits mailing list