Home
last modified time | relevance | path

Searched refs:sym (Results 1 – 25 of 402) sorted by relevance

12345678910>>...17

/freebsd/contrib/llvm-project/lld/ELF/
H A DSymbolTable.cpp34 void SymbolTable::wrap(Symbol *sym, Symbol *real, Symbol *wrap) { in wrap() argument
36 int &idx1 = symMap[CachedHashStringRef(sym->getName())]; in wrap()
44 if (sym->isUsedInRegularObj) in wrap()
47 sym->isUsedInRegularObj = true; in wrap()
48 else if (!sym->isDefined()) in wrap()
52 sym->isUsedInRegularObj = false; in wrap()
61 memcpy(real, sym, sizeof(SymbolUnion)); in wrap()
80 Symbol *sym = symVector[p.first->second]; in insert() local
82 sym->setName(name); in insert()
83 sym->hasVersionSuffix = true; in insert()
[all …]
H A DRelocations.cpp68 static std::optional<std::string> getLinkerScriptLocation(const Symbol &sym) { in getLinkerScriptLocation() argument
71 if (assign->sym == &sym) in getLinkerScriptLocation()
76 static std::string getDefinedLocation(const Symbol &sym) { in getDefinedLocation() argument
78 if (sym.file) in getDefinedLocation()
79 return msg + toString(sym.file); in getDefinedLocation()
80 if (std::optional<std::string> loc = getLinkerScriptLocation(sym)) in getDefinedLocation()
90 static std::string getLocation(InputSectionBase &s, const Symbol &sym, in getLocation() argument
92 std::string msg = getDefinedLocation(sym) + "\n>>> referenced by "; in getLocation()
93 std::string src = s.getSrcMsg(sym, off); in getLocation()
103 if (rel.sym) { in reportRangeError()
[all …]
H A DSymbols.cpp51 std::string lld::toString(const elf::Symbol &sym) { in toString() argument
52 StringRef name = sym.getName(); in toString()
55 const char *suffix = sym.getVersionSuffix(); in toString()
78 static uint64_t getSymVA(const Symbol &sym, int64_t addend) { in getSymVA() argument
79 switch (sym.kind()) { in getSymVA()
81 auto &d = cast<Defined>(sym); in getSymVA()
130 ((sym.stOther & STO_MIPS_MICROMIPS) || sym.hasFlag(NEEDS_COPY))) in getSymVA()
294 void elf::printTraceSymbol(const Symbol &sym, StringRef name) { in printTraceSymbol() argument
296 if (sym.isUndefined()) in printTraceSymbol()
298 else if (sym.isLazy()) in printTraceSymbol()
[all …]
H A DInputSection.cpp316 std::string InputSectionBase::getSrcMsg(const Symbol &sym, in getSrcMsg() argument
318 return file->getSrcMsg(sym, *this, offset); in getSrcMsg()
444 Symbol &sym = *rel.sym; in copyRelocations() local
455 p->setSymbolAndType(in.symTab->getSymbolIndex(sym), type, in copyRelocations()
458 if (sym.type == STT_SECTION) { in copyRelocations()
471 auto *d = dyn_cast<Defined>(&sym); in copyRelocations()
476 uint32_t secIdx = cast<Undefined>(sym).discardedSecIdx; in copyRelocations()
494 target.getRelExpr(type, sym, bufLoc) == R_MIPS_GOTREL) { in copyRelocations()
510 p->r_addend = sym.getVA(addend) - section->getOutputSection()->addr; in copyRelocations()
518 sec->addReloc({R_ABS, type, rel.offset, addend, &sym}); in copyRelocations()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/
H A Dapple_versioning.c13 #define NOT_HERE_BEFORE_10_6(sym) argument
14 #define NOT_HERE_IN_10_8_AND_EARLIER(sym) \ argument
15 extern const char sym##_tmp61 __asm("$ld$hide$os6.1$_" #sym); \
16 __attribute__((visibility("default"))) const char sym##_tmp61 = 0; \
17 extern const char sym##_tmp60 __asm("$ld$hide$os6.0$_" #sym); \
18 __attribute__((visibility("default"))) const char sym##_tmp60 = 0; \
19 extern const char sym##_tmp51 __asm("$ld$hide$os5.1$_" #sym); \
20 __attribute__((visibility("default"))) const char sym##_tmp51 = 0; \
21 extern const char sym##_tmp50 __asm("$ld$hide$os5.0$_" #sym); \
22 __attribute__((visibility("default"))) const char sym##_tmp50 = 0;
[all …]
/freebsd/sys/ddb/
H A Ddb_main.c76 X_db_line_at_pc(db_symtab_t *symtab, c_db_sym_t sym, char **file, int *line, in X_db_line_at_pc() argument
86 Elf_Sym *sym; in X_db_lookup() local
92 sym = (Elf_Sym *)symtab->start; in X_db_lookup()
93 while ((char *)sym < symtab->end) { in X_db_lookup()
94 if (sym->st_name != 0 && in X_db_lookup()
96 sym->st_name, symbol)) in X_db_lookup()
97 return ((c_db_sym_t)sym); in X_db_lookup()
98 sym++; in X_db_lookup()
109 Elf_Sym *sym, *match; in X_db_search_symbol() local
125 for (sym = (Elf_Sym*)symtab->start; (char*)sym < symtab->end; sym++) { in X_db_search_symbol()
[all …]
H A Ddb_sym.c64 static char *db_qualify(c_db_sym_t sym, char *symtabname);
65 static bool db_symbol_is_ambiguous(c_db_sym_t sym);
198 db_qualify(c_db_sym_t sym, char *symtabname) in db_qualify() argument
203 db_symbol_values(sym, &symname, 0); in db_qualify()
221 c_db_sym_t sym; in db_value_of_name() local
223 sym = db_lookup(name); in db_value_of_name()
224 if (sym == C_DB_SYM_NULL) in db_value_of_name()
226 db_symbol_values(sym, &name, valuep); in db_value_of_name()
235 c_db_sym_t sym; in db_value_of_name_pcpu() local
243 sym = db_lookup(tmp); in db_value_of_name_pcpu()
[all …]
/freebsd/contrib/llvm-project/lld/COFF/
H A DMinGW.cpp135 bool AutoExporter::shouldExport(Defined *sym) const { in shouldExport()
136 if (!sym || !sym->getChunk()) in shouldExport()
141 if (!isa<DefinedRegular>(sym) && !isa<DefinedCommon>(sym)) in shouldExport()
143 if (excludeSymbols.count(sym->getName()) || manualExcludeSymbols.count(sym->getName())) in shouldExport()
147 if (sym->getName().starts_with(prefix)) in shouldExport()
150 if (sym->getName().ends_with(suffix)) in shouldExport()
154 if (ctx.symtab.find(("__imp_" + sym->getName()).str())) in shouldExport()
159 if (!sym->getFile()) in shouldExport()
162 StringRef libName = sys::path::filename(sym->getFile()->parentName); in shouldExport()
169 StringRef fileName = sys::path::filename(sym->getFile()->getName()); in shouldExport()
[all …]
H A DInputFiles.cpp104 for (const Archive::Symbol &sym : file->symbols()) in parse() local
105 ctx.symtab.addLazyArchive(this, sym); in parse()
109 void ArchiveFile::addMember(const Archive::Symbol &sym) { in addMember() argument
111 CHECK(sym.getMember(), in addMember()
112 "could not get the member for symbol " + toCOFFString(ctx, sym)); in addMember()
118 ctx.driver.enqueueArchiveMember(c, sym, getName()); in addMember()
321 COFFSymbolRef sym, const coff_aux_section_definition *def) { in readAssociativeDefinition() argument
322 readAssociativeDefinition(sym, def, def->getNumber(sym.isBigObj())); in readAssociativeDefinition()
325 void ObjFile::readAssociativeDefinition(COFFSymbolRef sym, in readAssociativeDefinition() argument
329 int32_t sectionNumber = sym.getSectionNumber(); in readAssociativeDefinition()
[all …]
H A DSymbolTable.cpp100 l->file->addMember(l->sym); in forceLazy()
110 l->file->makeImport(l->sym); in forceLazy()
179 Symbol *sym; in getSymbolLocations() member
198 Symbol *sym = getSymbol(sc, r.VirtualAddress); in getSymbolLocations() local
200 locations.push_back({sym, *fileLine}); in getSymbolLocations()
201 else if (sym) in getSymbolLocations()
202 locations.push_back({sym, {"", 0}}); in getSymbolLocations()
222 if (loc.sym) in getSymbolLocations()
223 os << ":(" << toString(file->ctx, *loc.sym) << ')'; in getSymbolLocations()
250 Symbol *sym; member
[all …]
/freebsd/sys/sys/
H A Dlinker_set.h66 #define __MAKE_SET_QV(set, sym, qv) \ argument
71 __set_##set##_sym_##sym __section("set_" #set) \
72 __used = &(sym)
73 #define __MAKE_SET(set, sym) __MAKE_SET_QV(set, sym, __MAKE_SET_CONST) argument
78 #define TEXT_SET(set, sym) __MAKE_SET(set, sym) argument
79 #define DATA_SET(set, sym) __MAKE_SET(set, sym) argument
80 #define DATA_WSET(set, sym) __MAKE_SET_QV(set, sym, ) argument
81 #define BSS_SET(set, sym) __MAKE_SET(set, sym) argument
82 #define ABS_SET(set, sym) __MAKE_SET(set, sym) argument
83 #define SET_ENTRY(set, sym) __MAKE_SET(set, sym) argument
/freebsd/sys/arm64/include/
H A Dasm.h49 #define LENTRY(sym) \ argument
50 .text; .align 2; .type sym,#function; sym: \
52 #define ENTRY(sym) \ argument
53 .globl sym; LENTRY(sym)
54 #define EENTRY(sym) \ argument
55 .globl sym; .text; .align 2; .type sym,#function; sym:
56 #define LEND(sym) .ltorg; .cfi_endproc; .size sym, . - sym argument
57 #define END(sym) LEND(sym) argument
58 #define EEND(sym) argument
60 #define WEAK_REFERENCE(sym, alias) \ argument
[all …]
/freebsd/tools/build/cross-build/include/mac/sys/
H A Dlinker_set.h55 #define __MAKE_SET_QV(set, sym, qv) \ argument
58 __set_##set##_sym_##sym __section("__DATA,set_" #set) \
59 __used = &(sym)
60 #define __MAKE_SET(set, sym) __MAKE_SET_QV(set, sym, __MAKE_SET_CONST) argument
103 #define TEXT_SET(set, sym) __MAKE_SET(set, sym) argument
104 #define DATA_SET(set, sym) __MAKE_SET(set, sym) argument
105 #define DATA_WSET(set, sym) __MAKE_SET_QV(set, sym, ) argument
106 #define BSS_SET(set, sym) __MAKE_SET(set, sym) argument
107 #define ABS_SET(set, sym) __MAKE_SET(set, sym) argument
108 #define SET_ENTRY(set, sym) __MAKE_SET(set, sym) argument
/freebsd/contrib/elftoolchain/nm/
H A Dnm.c62 GElf_Sym *sym; member
345 assert(l->sym != NULL); in cmp_size()
348 assert(r->sym != NULL); in cmp_size()
350 if (l->sym->st_size == r->sym->st_size) in cmp_size()
353 return (l->sym->st_size - r->sym->st_size); in cmp_size()
372 assert(l->sym != NULL); in cmp_value()
375 assert(r->sym != NULL); in cmp_value()
378 l_is_undef = IS_UNDEF_SYM_TYPE(get_sym_type(l->sym, ttable)) ? 1 : 0; in cmp_value()
379 r_is_undef = IS_UNDEF_SYM_TYPE(get_sym_type(r->sym, ttable)) ? 1 : 0; in cmp_value()
387 if (l->sym->st_value == r->sym->st_value) in cmp_value()
[all …]
/freebsd/usr.sbin/ypldap/
H A Dparse.y77 TAILQ_HEAD(symhead, sym) symhead = TAILQ_HEAD_INITIALIZER(symhead);
78 struct sym { struct
79 TAILQ_ENTRY(sym) entry;
727 struct sym *sym, *next; in parse_config() local
753 for (sym = TAILQ_FIRST(&symhead); sym != NULL; sym = next) { in parse_config()
754 next = TAILQ_NEXT(sym, entry); in parse_config()
755 if ((opts & YPLDAP_OPT_VERBOSE) && !sym->used) in parse_config()
757 "used\n", sym->nam); in parse_config()
758 if (!sym->persist) { in parse_config()
759 free(sym->nam); in parse_config()
[all …]
/freebsd/contrib/llvm-project/lld/MachO/
H A DSymbolTable.cpp35 Symbol *sym; in insert() local
38 sym = symVector[p.first->second]; in insert()
41 sym = reinterpret_cast<Symbol *>(make<SymbolUnion>()); in insert()
42 symVector.push_back(sym); in insert()
45 sym->isUsedInRegularObj |= !file || isa<ObjFile>(file); in insert()
46 return {sym, p.second}; in insert()
54 const Symbol *sym; member
58 const Symbol *sym) in DuplicateSymbolDiag()
59 : src1(src1), src2(src2), sym(sym) {} in DuplicateSymbolDiag()
294 const object::Archive::Symbol &sym) { in addLazyArchive() argument
[all …]
H A DMapFile.cpp75 for (Symbol *sym : file->symbols) { in gatherMapInfo()
76 if (auto *d = dyn_cast_or_null<Defined>(sym)) in gatherMapInfo()
139 for (const Symbol *sym : in.stubs->getEntries()) in printStubsEntries() local
141 osec->addr + sym->stubsIndex * entrySize, entrySize, in printStubsEntries()
142 readerToFileOrdinal.lookup(sym->getFile()), in printStubsEntries()
143 sym->getName().str().data()); in printStubsEntries()
152 for (const Symbol *sym : osec->getEntries()) in printNonLazyPointerSection() local
154 osec->addr + sym->gotIndex * target->wordSize, in printNonLazyPointerSection()
155 target->wordSize, sym->getName().str().data()); in printNonLazyPointerSection()
158 static uint64_t getSymSizeForMap(Defined *sym) { in getSymSizeForMap() argument
[all …]
H A DSyntheticSections.cpp308 void macho::addNonLazyBindingEntries(const Symbol *sym, in addNonLazyBindingEntries() argument
312 if (needsBinding(sym)) in addNonLazyBindingEntries()
313 in.chainedFixups->addBinding(sym, isec, offset, addend); in addNonLazyBindingEntries()
314 else if (isa<Defined>(sym)) in addNonLazyBindingEntries()
321 if (const auto *dysym = dyn_cast<DylibSymbol>(sym)) { in addNonLazyBindingEntries()
324 in.weakBinding->addEntry(sym, isec, offset, addend); in addNonLazyBindingEntries()
325 } else if (const auto *defined = dyn_cast<Defined>(sym)) { in addNonLazyBindingEntries()
328 in.weakBinding->addEntry(sym, isec, offset, addend); in addNonLazyBindingEntries()
330 in.binding->addEntry(sym, isec, offset, addend); in addNonLazyBindingEntries()
338 void NonLazyPointerSectionBase::addEntry(Symbol *sym) { in addEntry() argument
[all …]
/freebsd/sys/riscv/include/
H A Dasm.h47 #define ENTRY(sym) \ argument
48 .text; .globl sym; .type sym,@function; .align 4; sym: .cfi_startproc;
49 #define END(sym) .cfi_endproc; .size sym, . - sym argument
51 #define EENTRY(sym) \ argument
52 .globl sym; sym:
53 #define EEND(sym) argument
55 #define WEAK_REFERENCE(sym, alias) \ argument
57 .set alias,sym
/freebsd/sys/contrib/zlib/
H A Dinftrees.c36 unsigned sym; /* index of code symbols */ in inflate_table() local
104 for (sym = 0; sym < codes; sym++) in inflate_table()
105 count[lens[sym]]++; in inflate_table()
141 for (sym = 0; sym < codes; sym++) in inflate_table()
142 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym; in inflate_table()
194 sym = 0; /* starting code symbol */ in inflate_table()
212 if (work[sym] + 1U < match) { in inflate_table()
214 here.val = work[sym]; in inflate_table()
216 else if (work[sym] >= match) { in inflate_table()
217 here.op = (unsigned char)(extra[work[sym] - match]); in inflate_table()
[all …]
/freebsd/contrib/netbsd-tests/libexec/ld.elf_so/
H A Dt_dlvsym.c47 int (*sym)(void); in ATF_TC_BODY() local
58 sym = dlvsym(handle, "testfunc", "V_1"); in ATF_TC_BODY()
62 result = (*sym)(); in ATF_TC_BODY()
79 int (*sym)(void); in ATF_TC_BODY() local
90 sym = dlvsym(handle, "testfunc", "V_3"); in ATF_TC_BODY()
94 result = (*sym)(); in ATF_TC_BODY()
112 int (*sym)(void); in ATF_TC_BODY() local
122 sym = dlvsym(handle, "symbol_nonexistent", "V_3"); in ATF_TC_BODY()
124 ATF_CHECK(sym == NULL); in ATF_TC_BODY()
142 int (*sym)(void); in ATF_TC_BODY() local
[all …]
/freebsd/sys/modules/qat/qat_api/
H A DMakefile34 SRCS+= common/crypto/sym/lac_sym_api.c
35 SRCS+= common/crypto/sym/lac_sym_cb.c
36 SRCS+= common/crypto/sym/lac_sym_queue.c
37 SRCS+= common/crypto/sym/lac_sym_cipher.c
38 SRCS+= common/crypto/sym/lac_sym_alg_chain.c
39 SRCS+= common/crypto/sym/lac_sym_auth_enc.c
40 SRCS+= common/crypto/sym/lac_sym_hash.c
41 SRCS+= common/crypto/sym/lac_sym_hash_sw_precomputes.c
42 SRCS+= common/crypto/sym/lac_sym_stats.c
43 SRCS+= common/crypto/sym/lac_sym_compile_check.c
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbUtil.cpp311 bool lldb_private::npdb::SymbolHasAddress(const CVSymbol &sym) { in SymbolHasAddress() argument
312 switch (sym.kind()) { in SymbolHasAddress()
338 bool lldb_private::npdb::SymbolIsCode(const CVSymbol &sym) { in SymbolIsCode() argument
339 switch (sym.kind()) { in SymbolIsCode()
356 template <typename RecordT> RecordT createRecord(const CVSymbol &sym) { in createRecord() argument
357 RecordT record(static_cast<SymbolRecordKind>(sym.kind())); in createRecord()
358 cantFail(SymbolDeserializer::deserializeAs<RecordT>(sym, record)); in createRecord()
363 static SegmentOffset GetSegmentAndOffset(const CVSymbol &sym) { in GetSegmentAndOffset() argument
364 RecordT record = createRecord<RecordT>(sym); in GetSegmentAndOffset()
369 SegmentOffset GetSegmentAndOffset<TrampolineSym>(const CVSymbol &sym) { in GetSegmentAndOffset() argument
[all …]
/freebsd/contrib/llvm-project/lld/ELF/Arch/
H A DARM.cpp40 void writePlt(uint8_t *buf, const Symbol &sym,
321 void ARM::writePlt(uint8_t *buf, const Symbol &sym, in writePlt() argument
325 uint64_t offset = sym.getGotPltVA() - pltEntryAddr - 8; in writePlt()
339 writePltLong(buf, sym.getGotPltVA(), pltEntryAddr); in writePlt()
347 uint64_t offset = sym.getGotPltVA() - pltEntryAddr - 12; in writePlt()
565 if (rel.sym->isFunc()) in encodeLdrGroup()
583 if (rel.sym->isFunc()) in encodeLdrsGroup()
627 assert(rel.sym); // R_ARM_CALL is always reached via relocate(). in relocate()
632 if (!rel.sym->isFunc() && isBlx != bit0Thumb) in relocate()
633 stateChangeWarning(loc, rel.type, *rel.sym); in relocate()
[all …]
/freebsd/lib/libpmcstat/
H A Dlibpmcstat_symbol.c58 struct pmcstat_symbol *sym; in pmcstat_symbol_search_by_name() local
88 sym = &image->pi_symbols[i]; in pmcstat_symbol_search_by_name()
89 name2 = pmcstat_string_unintern(sym->ps_name); in pmcstat_symbol_search_by_name()
100 pcm->ppm_lowpc + sym->ps_start); in pmcstat_symbol_search_by_name()
102 pcm->ppm_lowpc + sym->ps_end); in pmcstat_symbol_search_by_name()
104 return (sym); in pmcstat_symbol_search_by_name()
133 struct pmcstat_symbol sym; in pmcstat_symbol_search() local
138 sym.ps_name = NULL; in pmcstat_symbol_search()
139 sym.ps_start = addr; in pmcstat_symbol_search()
140 sym.ps_end = addr + 1; in pmcstat_symbol_search()
[all …]

12345678910>>...17