HomePhabricator

Implement -fsemantic-interposition

Authored by serge-sans-paille on Jan 16 2020, 2:56 AM.

Description

Implement -fsemantic-interposition

First attempt at implementing -fsemantic-interposition.

Rely on GlobalValue::isInterposable that already captures most of the expected
behavior.

Rely on a ModuleFlag to state whether we should respect SemanticInterposition or
not. The default remains no.

So this should be a no-op if -fsemantic-interposition isn't used, and if it is,
isInterposable being already used in most optimisation, they should honor it
properly.

Note that it only impacts architecture compiled with -fPIC and no pie.

Differential Revision: https://reviews.llvm.org/D72829

Details

Committed
serge-sans-pailleJan 31 2020, 5:02 AM
Differential Revision
D72829: Implement -fsemantic-interposition
Parents
rG24f0b6b6d8e7: [llvm-objdump] avoid crash disassembling unknown instruction
Branches
Unknown
Tags
Unknown