Lines Matching +defs:load +defs:file
9 // This file contains the parser/evaluator of the linker script.
405 bool InputSectionDescription::matchesFile(const InputFile &file) const {
409 if (!matchesFileCache || matchesFileCache->first != &file) {
411 matchesFileCache.emplace(&file, filePat.match(file.archiveName));
413 if (matchType == MatchType::ArchivesExcluded && !file.archiveName.empty())
414 matchesFileCache.emplace(&file, false);
416 matchesFileCache.emplace(&file, filePat.match(file.getNameForScript()));
423 bool SectionPattern::excludesFile(const InputFile &file) const {
427 if (!excludesFileCache || excludesFileCache->first != &file)
428 excludesFileCache.emplace(&file,
429 excludedFilePat.match(file.getNameForScript()));
436 if (id->matchesFile(*s->file))
565 if (!cmd->matchesFile(*sec->file) || pat.excludesFile(*sec->file) ||
936 // reason is that if one file has
941 // file has
1142 static OutputSection *findFirstSection(Ctx &ctx, PhdrEntry *load) {
1144 if (sec->ptLoad == load)
1429 // then we simply assign section to the very first load segment.
1447 // When the SECTIONS command is used, try to find an address for the file and