This is an archive of the discontinued LLVM Phabricator instance.

[MC][ELF] Prevent globals with an explicit section from being mergeable by default and add a safe option to allow mergeable
Needs ReviewPublic

Authored by bd1976llvm on Sep 27 2019, 10:53 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Alternative to https://reviews.llvm.org/D68101

Prevents globals with an explicit section from being mergeable by default (as in D68101).
Adds a command line option to allow the explicit section to be mergeable; but, an error will be emitted if broken output would be created.
Users can use the command line option if the default behaviour results in a performance regression.

This is a partial fix for https://bugs.llvm.org/show_bug.cgi?id=43457.

Diff Detail

Repository
rC Clang

Event Timeline

bd1976llvm created this revision.Sep 27 2019, 10:53 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptSep 27 2019, 10:53 AM