This is an archive of the discontinued LLVM Phabricator instance.

Rename --icf-data and add a corresponding flag for functions
ClosedPublic

Authored by espindola on Dec 30 2017, 7:42 PM.

Details

Reviewers
ruiu
emaste
rnk
dim
Summary

This is a replacement to https://reviews.llvm.org/D41207. I could not figure out how to update it with my new phab account.

When we have --icf=safe we should be able to define --icf=all as a shorthand for --icf=safe --ignore-function-address-equality.

For now --ignore-function-address-equality is used only to control access to non preemptable symbols in shared libraries.

Diff Detail

Event Timeline

espindola created this revision.Dec 30 2017, 7:42 PM

Rafael, is the @rafael account stale now, or are you keeping both? (In other words, which one should I be adding to reviews?)

I don't know of a way to delete it, but a Phabricator admin might be able to help you mark it as disabled (similar to the even older @rafael.espindola account).

grimar added a subscriber: grimar.Dec 31 2017, 2:46 AM
grimar added inline comments.
ELF/Relocations.cpp
575

Not a big deal but may be just

return (Sym.isFunc() && Config->IgnoreFunctionAddressEquality) ||
       (Sym.isObject() && Config->IgnoreDataAddressEquality);
test/ELF/protected-data-access.s
13

capy -> copy

Address review comments.

ruiu accepted this revision.Jan 9 2018, 1:40 PM

LGTM

ELF/Options.td
149

LLD -> lld

This revision is now accepted and ready to land.Jan 9 2018, 1:40 PM