[PATCH] D21100: [Linker/Mover] Implement merging of PIC flags

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 7 13:38:52 PDT 2016


davide created this revision.
davide added a reviewer: rafael.
davide added a subscriber: llvm-commits.
Herald added a subscriber: emaste.

We always pick the smallest. I think the ordering is Small < Default < Large, but I might have gotten that wrong, so .. comments welcome.
This fixes an LTO issue found while linking the FreeBSD base system.

http://reviews.llvm.org/D21100

Files:
  lib/IR/Module.cpp
  lib/Linker/IRMover.cpp
  test/Linker/Inputs/module-flags-pic-2-b.ll
  test/Linker/module-flags-pic-1-a.ll
  test/Linker/module-flags-pic-2-a.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21100.59944.patch
Type: text/x-patch
Size: 3353 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160607/d2c21947/attachment.bin>


More information about the llvm-commits mailing list