This is an archive of the discontinued LLVM Phabricator instance.

Change default relocation model for hexagon when triple includes musl
AbandonedPublic

Authored by sidneym on Feb 7 2020, 3:26 PM.

Details

Summary

Right now if the triple includes musl, saying something like: "--target=x86_64--linux-musl" then the default relocation model is pic. When the target is hexagon I want the default relocation model to be static.

Diff Detail

Event Timeline

sidneym created this revision.Feb 7 2020, 3:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 7 2020, 3:26 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
bcain added inline comments.Feb 11 2020, 7:39 AM
clang/lib/Driver/ToolChains/Linux.cpp
923

But if

getSanitizerArgs().requiresPIE() && getTriple().getArch() == llvm::Triple::hexagon

.... then the != hexagon takes precedence? Seems like "sanitizer requires PIE" should, right?

sidneym abandoned this revision.Feb 19 2020, 1:12 PM