[PATCH] D71794: [ELF] Don't special case weak symbols for pie with no shared objects

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 20 22:17:13 PST 2019


MaskRay marked an inline comment as done.
MaskRay added inline comments.


================
Comment at: lld/test/ELF/ppc32-weak-undef-call.s:15
+## With -pie or -shared, create a call stub. ld.bfd produces bl .+0
+# PIC: bl .+4
+# PIC: 00000000.plt_pic32.foo:
----------------
This behavior change does not affect anything. I added this file just to check our behavior regarding the glibc weak undefined symbol `__gmon_start__`. The instruction will not be called when it is undefined, so we don't care the target  of the branch.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D71794





More information about the llvm-commits mailing list