Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
lld/ELF/Driver.cpp
Show First 20 Lines • Show All 1,756 Lines • ▼ Show 20 Lines | llvm::erase_if(InputSections, [](InputSectionBase *S) { | ||||
} | } | ||||
// We do not want to emit debug sections if --strip-all | // We do not want to emit debug sections if --strip-all | ||||
// or -strip-debug are given. | // or -strip-debug are given. | ||||
return Config->Strip != StripPolicy::None && | return Config->Strip != StripPolicy::None && | ||||
(S->Name.startswith(".debug") || S->Name.startswith(".zdebug")); | (S->Name.startswith(".debug") || S->Name.startswith(".zdebug")); | ||||
}); | }); | ||||
// Now that the number of partitions is fixed, save a pointer to the main | |||||
// partition. | |||||
Main = &Partitions[0]; | |||||
Config->EFlags = Target->calcEFlags(); | Config->EFlags = Target->calcEFlags(); | ||||
// MaxPageSize (sometimes called abi page size) is the maximum page size that | // MaxPageSize (sometimes called abi page size) is the maximum page size that | ||||
// the output can be run on. For example if the OS can use 4k or 64k page | // the output can be run on. For example if the OS can use 4k or 64k page | ||||
// sizes then MaxPageSize must be 64 for the output to be useable on both. | // sizes then MaxPageSize must be 64 for the output to be useable on both. | ||||
// All important alignment decisions must use this value. | // All important alignment decisions must use this value. | ||||
Config->MaxPageSize = getMaxPageSize(Args); | Config->MaxPageSize = getMaxPageSize(Args); | ||||
// CommonPageSize is the most common page size that the output will be run on. | // CommonPageSize is the most common page size that the output will be run on. | ||||
// For example if an OS can use 4k or 64k page sizes and 4k is more common | // For example if an OS can use 4k or 64k page sizes and 4k is more common | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |