[PATCH] D84360: [LLD][PowerPC] Implement GOT to PC-Rel relaxation

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 29 22:19:36 PDT 2020


MaskRay added inline comments.


================
Comment at: lld/test/ELF/ppc64-got-to-pcrel-relaxation.s:4
+# RUN: llvm-mc -filetype=obj -triple=powerpc64le %p/Inputs/ppc64-got-to-pcrel-relaxation-def.s -o %t2.o
+# RUN: ld.lld --shared %t2.o -o %t2.so
+# RUN: ld.lld %t1.o %t2.o -o %t
----------------
If a linked shared object is used to link another file, the shared object needs to specify `--soname=t2` or another fixed string. Otherwise the DT_SONAME field of the other file is dependent on the full path of `%t2.so`, which can vary on different test machines.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84360/new/

https://reviews.llvm.org/D84360



More information about the llvm-commits mailing list