Lines Matching defs:app

590 // app.module_id is always zero, so assignments start with 1.
1778 static struct dso app;
1799 zx_status_t status = map_library(exec_vmo, &app);
1807 app.l_map.l_name = argv[0];
1809 if (app.tls.size) {
1810 libc.tls_head = tls_tail = &app.tls;
1811 app.tls_id = tls_cnt = 1;
1813 app.tls.offset = (tls_offset + app.tls.align - 1) & -app.tls.align;
1814 tls_offset = app.tls.offset + app.tls.size;
1816 tls_offset = app.tls.offset =
1817 app.tls.size + (-((uintptr_t)app.tls.image + app.tls.size) & (app.tls.align - 1));
1819 tls_align = MAXP2(tls_align, app.tls.align);
1822 app.global = 1;
1823 decode_dyn(&app);
1828 allocate_and_format_build_id_log(&app);
1830 /* Initial dso chain consists only of the app. */
1831 head = tail = &app;
1844 load_deps(&app);
1846 app.global = 1;
1847 for (struct dso* p = dso_next(&app); p != NULL; p = dso_next(p)) {
1852 for (size_t i = 0; app.l_map.l_ld[i].d_tag; i++) {
1853 if (!DT_DEBUG_INDIRECT && app.l_map.l_ld[i].d_tag == DT_DEBUG)
1854 app.l_map.l_ld[i].d_un.d_ptr = (size_t)&debug;
1855 if (DT_DEBUG_INDIRECT && app.l_map.l_ld[i].d_tag == DT_DEBUG_INDIRECT) {
1856 size_t* ptr = (size_t*)app.l_map.l_ld[i].d_un.d_ptr;
1863 reloc_all(dso_next(&app));
1864 reloc_all(&app);
1919 for (struct dso* p = &app; p != NULL; p = dso_next(p)) {
1926 app.l_map.l_name = (char*)"";
1930 for (size_t i = 0; i < app.phnum; i++) {
1931 if (app.phdr[i].p_type == PT_GNU_STACK) {
1932 size_t size = app.phdr[i].p_memsz;
1939 const Ehdr* ehdr = (void*)app.map;
1940 return laddr(&app, ehdr->e_entry);