mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:17:34 +08:00
Move a function to a file where it is used.
llvm-svn: 256410
This commit is contained in:
@@ -604,6 +604,15 @@ template <class ELFT> static bool includeInSymtab(const SymbolBody &B) {
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool includeInDynamicSymtab(const SymbolBody &B) {
|
||||
uint8_t V = B.getVisibility();
|
||||
if (V != STV_DEFAULT && V != STV_PROTECTED)
|
||||
return false;
|
||||
if (Config->ExportDynamic || Config->Shared)
|
||||
return true;
|
||||
return B.isUsedInDynamicReloc();
|
||||
}
|
||||
|
||||
// Create output section objects and add them to OutputSections.
|
||||
template <class ELFT> void Writer<ELFT>::createSections() {
|
||||
// .interp needs to be on the first page in the output file.
|
||||
|
||||
Reference in New Issue
Block a user