/freebsd-current/cddl/contrib/opensolaris/tools/ctf/common/ |
H A D | symbol.c | 35 ignore_symbol(GElf_Sym *sym, const char *name) argument 37 uchar_t type = GELF_ST_TYPE(sym->st_info); 43 if (sym->st_shndx == SHN_UNDEF || sym->st_name == 0) 58 if (type == STT_OBJECT && sym->st_shndx == SHN_ABS && 59 sym->st_value == 0)
|
H A D | symbol.h | 38 int ignore_symbol(GElf_Sym *sym, const char *name);
|
/freebsd-current/sys/riscv/include/ |
H A D | asm.h | 47 #define ENTRY(sym) \ 48 .text; .globl sym; .type sym,@function; .align 4; sym: .cfi_startproc; 49 #define END(sym) .cfi_endproc; .size sym, . - sym 51 #define EENTRY(sym) \ 52 .globl sym; sym [all...] |
/freebsd-current/sys/sys/ |
H A D | linker_set.h | 66 #define __MAKE_SET_QV(set, sym, qv) \ 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) 78 #define TEXT_SET(set, sym) __MAKE_SET(set, sym) 79 #define DATA_SET(set, sym) __MAKE_SET(set, sym) 80 #define DATA_WSET(set, sym) __MAKE_SET_Q [all...] |
/freebsd-current/contrib/netbsd-tests/lib/libppath/ |
H A D | plist_to_c | 15 ${AWK:-awk} -v sym=$1 ' 16 BEGIN { printf "const char " sym "[] = \""; }
|
/freebsd-current/contrib/llvm-project/lld/ELF/ |
H A D | SymbolTable.cpp | 34 void SymbolTable::wrap(Symbol *sym, Symbol *real, Symbol *wrap) { argument 36 int &idx1 = symMap[CachedHashStringRef(sym->getName())]; 44 if (sym->isUsedInRegularObj) 47 sym->isUsedInRegularObj = true; 48 else if (!sym->isDefined()) 49 // Now that all references to sym have been redirected to wrap, if there are 50 // no references to real (which has been redirected to sym), we only need to 51 // keep sym if it was defined, otherwise it's unused and can be dropped. 52 sym->isUsedInRegularObj = false; 58 // alias for sym, bu 80 Symbol *sym = symVector[p.first->second]; local 88 Symbol *sym = reinterpret_cast<Symbol *>(make<SymbolUnion>()); local 104 Symbol *sym = insert(newSym.getName()); local 122 canBeVersioned(const Symbol &sym) argument [all...] |
H A D | Relocations.cpp | 68 static std::optional<std::string> getLinkerScriptLocation(const Symbol &sym) { argument 71 if (assign->sym == &sym) 76 static std::string getDefinedLocation(const Symbol &sym) { argument 78 if (sym.file) 79 return msg + toString(sym.file); 80 if (std::optional<std::string> loc = getLinkerScriptLocation(sym)) 90 static std::string getLocation(InputSectionBase &s, const Symbol &sym, argument 92 std::string msg = getDefinedLocation(sym) + "\n>>> referenced by "; 93 std::string src = s.getSrcMsg(sym, of 130 reportRangeError(uint8_t *loc, int64_t v, int n, const Symbol &sym, const Twine &msg) argument 192 isAbsolute(const Symbol &sym) argument 200 isAbsoluteValue(const Symbol &sym) argument 298 Symbol *sym = symtab.find(name); local 317 replaceWithDefined(Symbol &sym, SectionBase &sec, uint64_t value, uint64_t size) argument 520 maybeReportDiscarded(Undefined &sym) argument 563 Undefined *sym; member in struct:__anon17::UndefinedDiag 594 getAlternativeSpelling(const Undefined &sym, std::string &pre_hint, std::string &post_hint) argument 710 Undefined &sym = *undef.sym; local 817 maybeReportUndefined(Undefined &sym, InputSectionBase &sec, uint64_t offset) argument 869 addRelativeReloc(InputSectionBase &isec, uint64_t offsetInSec, Symbol &sym, int64_t addend, RelExpr expr, RelType type) argument 911 addPltEntry(PltSection &plt, GotPltSection &gotPlt, RelocationBaseSection &rel, RelType type, Symbol &sym) argument 921 addGotEntry(Symbol &sym) argument 940 addTpOffsetGotEntry(Symbol &sym) argument 954 canDefineSymbolInExecutable(Symbol &sym) argument 980 isStaticLinkTimeConstant(RelExpr e, RelType type, const Symbol &sym, uint64_t relOff) const argument 1051 processAux(RelExpr expr, RelType type, uint64_t offset, Symbol &sym, int64_t addend) const argument 1245 handleMipsTlsRelocation(RelType type, Symbol &sym, InputSectionBase &c, uint64_t offset, int64_t addend, RelExpr expr) argument 1268 handleTlsRelocation(RelType type, Symbol &sym, InputSectionBase &c, uint64_t offset, int64_t addend, RelExpr expr) argument 1402 Symbol &sym = sec->getFile<ELFT>()->getSymbol(symIndex); local 1613 handleNonPreemptibleIfunc(Symbol &sym, uint16_t flags) argument 2305 Symbol *sym = symtab.find("__tls_get_addr"); local [all...] |
/freebsd-current/libexec/rtld-elf/tests/ |
H A D | dlopen_test.c | 16 void *hdl, *sym; local 21 sym = dlsym(hdl, "pthread_create"); 22 ATF_REQUIRE(sym != NULL); 26 sym = dlsym(hdl, "pthread_create"); 27 ATF_REQUIRE(sym == NULL);
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/builtins/ |
H A D | apple_versioning.c | 13 #define NOT_HERE_BEFORE_10_6(sym) 14 #define NOT_HERE_IN_10_8_AND_EARLIER(sym) \ 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); \ [all...] |
/freebsd-current/sys/arm64/include/ |
H A D | asm.h | 49 #define LENTRY(sym) \ 50 .text; .align 2; .type sym,#function; sym: \ 52 #define ENTRY(sym) \ 53 .globl sym; LENTRY(sym) 54 #define EENTRY(sym) \ 55 .globl sym; .text; .align 2; .type sym,#function; sym [all...] |
/freebsd-current/tools/build/cross-build/include/mac/sys/ |
H A D | linker_set.h | 55 #define __MAKE_SET_QV(set, sym, qv) \ 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) 103 #define TEXT_SET(set, sym) __MAKE_SET(set, sym) 104 #define DATA_SET(set, sym) __MAKE_SET(set, sym) 105 #define DATA_WSET(set, sym) __MAKE_SET_Q [all...] |
/freebsd-current/sys/ddb/ |
H A D | db_main.c | 76 X_db_line_at_pc(db_symtab_t *symtab, c_db_sym_t sym, char **file, int *line, argument 86 Elf_Sym *sym; local 92 sym = (Elf_Sym *)symtab->start; 93 while ((char *)sym < symtab->end) { 94 if (sym->st_name != 0 && 96 sym->st_name, symbol)) 97 return ((c_db_sym_t)sym); 98 sym++; 109 Elf_Sym *sym, *match; local 125 for (sym 162 X_db_sym_numargs(db_symtab_t *symtab, c_db_sym_t sym, int *nargp, char **argp) argument 169 X_db_symbol_values(db_symtab_t *symtab, c_db_sym_t sym, const char **namep, db_expr_t *valp) argument [all...] |
H A D | db_sym.c | 64 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) argument 203 db_symbol_values(sym, &symname, 0); 221 c_db_sym_t sym; local 223 sym = db_lookup(name); 224 if (sym == C_DB_SYM_NULL) 226 db_symbol_values(sym, &name, valuep); 235 c_db_sym_t sym; local 243 sym 259 c_db_sym_t sym; local 344 db_symbol_is_ambiguous(c_db_sym_t sym) argument 374 c_db_sym_t ret, sym; local 406 db_symbol_values(c_db_sym_t sym, const char **namep, db_expr_t *valuep) argument 474 db_line_at_pc(c_db_sym_t sym, char **filename, int *linenum, db_expr_t pc) argument 480 db_sym_numargs(c_db_sym_t sym, int *nargp, char **argnames) argument [all...] |
/freebsd-current/sys/modules/sym/ |
H A D | Makefile | 2 .PATH: ${SRCTOP}/sys/dev/sym 4 KMOD= sym
|
/freebsd-current/sys/contrib/zlib/ |
H A D | inftrees.c | 36 unsigned sym; /* index of code symbols */ local 104 for (sym = 0; sym < codes; sym++) 105 count[lens[sym]]++; 141 for (sym = 0; sym < codes; sym++) 142 if (lens[sym] != 0) work[offs[lens[sym]] [all...] |
/freebsd-current/contrib/llvm-project/lld/COFF/ |
H A D | MinGW.cpp | 136 bool AutoExporter::shouldExport(Defined *sym) const { 137 if (!sym || !sym->getChunk()) 142 if (!isa<DefinedRegular>(sym) && !isa<DefinedCommon>(sym)) 144 if (excludeSymbols.count(sym->getName()) || manualExcludeSymbols.count(sym->getName())) 148 if (sym->getName().starts_with(prefix)) 151 if (sym->getName().ends_with(suffix)) 155 if (ctx.symtab.find(("__imp_" + sym 195 mangle(Twine sym, MachineTypes machine) argument 217 Symbol *sym = ctx.symtab.findUnderscore(name); local [all...] |
H A D | MarkLive.cpp | 47 if (auto *sym = dyn_cast<DefinedRegular>(b)) 48 enqueue(sym->getChunk()); 49 else if (auto *sym = dyn_cast<DefinedImportData>(b)) 50 sym->file->live = true; 51 else if (auto *sym = dyn_cast<DefinedImportThunk>(b)) 52 sym->wrappedSym->file->live = sym->wrappedSym->file->thunkLive = true;
|
/freebsd-current/sys/contrib/openzfs/module/lua/setjmp/ |
H A D | setjmp_rv64g.S | 35 #define ENTRY(sym) \ 36 .text; .globl sym; .type sym,@function; sym: 37 #define END(sym) .size sym, . - sym
|
H A D | setjmp_aarch64.S | 35 #define ENTRY(sym) \ 37 .globl sym; \ 39 .type sym,#function; \ 40 sym: label 42 #define END(sym) \ 43 .size sym, . - sym
|
/freebsd-current/contrib/libfido2/openbsd-compat/ |
H A D | types.h | 49 #define __warn_references(sym,msg) 59 #define __warn_references(sym,msg) \ 60 __asm__(".section .gnu.warning." __STRING(sym) \ 63 #define __warn_references(sym,msg)
|
/freebsd-current/lib/libpmcstat/ |
H A D | libpmcstat_symbol.c | 58 struct pmcstat_symbol *sym; local 88 sym = &image->pi_symbols[i]; 89 name2 = pmcstat_string_unintern(sym->ps_name); 100 pcm->ppm_lowpc + sym->ps_start); 102 pcm->ppm_lowpc + sym->ps_end); 104 return (sym); 133 struct pmcstat_symbol sym; local 138 sym.ps_name = NULL; 139 sym.ps_start = addr; 140 sym [all...] |
/freebsd-current/crypto/openssl/test/ |
H A D | simpledynamic.c | 29 int sd_sym(SD lib, const char *symname, SD_SYM *sym) argument 31 *sym = dlsym(lib, symname); 32 return *sym != NULL; 53 int sd_sym(SD lib, const char *symname, SD_SYM *sym) argument 55 *sym = (SD_SYM)GetProcAddress(lib, symname); 56 return *sym != NULL;
|
/freebsd-current/contrib/netbsd-tests/libexec/ld.elf_so/ |
H A D | t_dlvsym.c | 47 int (*sym)(void); 58 sym = dlvsym(handle, "testfunc", "V_1"); 62 result = (*sym)(); 79 int (*sym)(void); 90 sym = dlvsym(handle, "testfunc", "V_3"); 94 result = (*sym)(); 112 int (*sym)(void); 122 sym = dlvsym(handle, "symbol_nonexistent", "V_3"); 124 ATF_CHECK(sym == NULL); 142 int (*sym)(voi [all...] |
/freebsd-current/libexec/rtld-elf/ |
H A D | debug.c | 107 const Elf_Sym *sym; local 114 sym = obj->symtab + ELF_R_SYM(rel->r_info); 116 obj->strtab + sym->st_name, 118 (u_long)sym->st_value, (int)sym->st_size, 129 const Elf_Sym *sym; local 136 sym = obj->symtab + ELF_R_SYM(rela->r_info); 138 obj->strtab + sym->st_name, 140 (u_long)sym->st_value, (int)sym [all...] |
/freebsd-current/contrib/llvm-project/lld/MachO/ |
H A D | SymbolTable.cpp | 35 Symbol *sym; local 38 sym = symVector[p.first->second]; 41 sym = reinterpret_cast<Symbol *>(make<SymbolUnion>()); 42 symVector.push_back(sym); 45 sym->isUsedInRegularObj |= !file || isa<ObjFile>(file); 46 return {sym, p.second}; 54 const Symbol *sym; member in struct:__anon1326::DuplicateSymbolDiag 58 const Symbol *sym) 59 : src1(src1), src2(src2), sym(sym) {} 56 DuplicateSymbolDiag(const std::pair<std::string, std::string> src1, const std::pair<std::string, std::string> src2, const Symbol *sym) argument 293 addLazyArchive(StringRef name, ArchiveFile *file, const object::Archive::Symbol &sym) argument 348 createBoundarySymbol(const Undefined &sym) argument 354 handleSectionBoundarySymbol(const Undefined &sym, StringRef segSect, Boundary which) argument 394 handleSegmentBoundarySymbol(const Undefined &sym, StringRef segName, Boundary which) argument 405 recoverFromUndefinedSymbol(const Undefined &sym) argument 497 getAlternativeSpelling(const Undefined &sym, std::string &preHint, std::string &postHint) argument 608 reportUndefinedSymbol(const Undefined &sym, const UndefinedDiag &locations, bool correctSpelling) argument 673 treatUndefinedSymbol(const Undefined &sym, StringRef source) argument 680 treatUndefinedSymbol(const Undefined &sym, const InputSection *isec, uint64_t offset) argument [all...] |