[PATCH] D91510: [ELF] Fix interaction between --unresolved-symbols= and --[no-]allow-shlib-undefined

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 15 14:45:22 PST 2020


MaskRay created this revision.
MaskRay added reviewers: grimar, psmith, ruiu.
Herald added subscribers: llvm-commits, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
MaskRay requested review of this revision.

As mentioned in https://reviews.llvm.org/D67479#1667256 ,
`--unresolved-symbols=` sets `--[no-]allow-shlib-undefined` and `-z [un]defs` simultaneously.
In addition, --warn-unresolved-symbols affects --no-allow-shlib-undefined.

This patch makes the behavior match GNU ld.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91510

Files:
  lld/ELF/Config.h
  lld/ELF/Driver.cpp
  lld/ELF/Writer.cpp
  lld/test/ELF/allow-shlib-undefined.s
  lld/test/ELF/unresolved-symbols.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91510.305391.patch
Type: text/x-patch
Size: 9387 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201115/83b5dd87/attachment.bin>


More information about the llvm-commits mailing list