Home
last modified time | relevance | path

Searched refs:RE (Results 1 – 25 of 251) sorted by relevance

1234567891011

/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldCOFFThumb.h126 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef()
127 addRelocationForSymbol(RE, TargetName); in processRelocationRef()
140 RelocationEntry RE = in processRelocationRef() local
143 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
147 RelocationEntry RE = in processRelocationRef() local
150 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
154 RelocationEntry RE = in processRelocationRef() local
156 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
160 RelocationEntry RE = in processRelocationRef() local
162 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
[all …]
H A DRuntimeDyldMachOAArch64.h34 Expected<int64_t> decodeAddend(const RelocationEntry &RE) const { in decodeAddend() argument
35 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend()
36 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); in decodeAddend()
37 unsigned NumBytes = 1 << RE.Size; in decodeAddend()
40 switch (RE.RelType) { in decodeAddend()
46 << getRelocName(RE.RelType); in decodeAddend()
58 << getRelocName(RE.RelType); in decodeAddend()
76 switch (RE.RelType) { in decodeAddend()
305 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
307 if (RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) { in processRelocationRef()
[all …]
H A DRuntimeDyldCOFFI386.h105 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef()
106 addRelocationForSymbol(RE, TargetName); in processRelocationRef()
116 RelocationEntry RE = in processRelocationRef() local
119 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
123 RelocationEntry RE = in processRelocationRef() local
125 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
129 RelocationEntry RE = in processRelocationRef() local
131 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
142 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument
143 const auto Section = Sections[RE.SectionID]; in resolveRelocation()
[all …]
H A DRuntimeDyldMachOARM.h63 Expected<int64_t> decodeAddend(const RelocationEntry &RE) const { in decodeAddend() argument
64 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend()
65 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); in decodeAddend()
67 switch (RE.RelType) { in decodeAddend()
69 return memcpyAddend(RE); in decodeAddend()
160 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
161 if (auto AddendOrErr = decodeAddend(RE)) in processRelocationRef()
162 RE.Addend = *AddendOrErr; in processRelocationRef()
165 RE.IsTargetThumbFunc = TargetIsLocalThumbFunc; in processRelocationRef()
168 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef()
[all …]
H A DRuntimeDyldMachOX86_64.h50 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
51 RE.Addend = memcpyAddend(RE); in processRelocationRef()
53 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef()
59 if (!IsExtern && RE.IsPCRel) in processRelocationRef()
60 makeValueAddendPCRel(Value, RelI, 1 << RE.Size); in processRelocationRef()
72 if (RE.RelType == MachO::X86_64_RELOC_GOT || in processRelocationRef()
73 RE.RelType == MachO::X86_64_RELOC_GOT_LOAD) in processRelocationRef()
74 processGOTRelocation(RE, Value, Stubs); in processRelocationRef()
76 RE.Addend = Value.Offset; in processRelocationRef()
78 addRelocationForSymbol(RE, Value.SymbolName); in processRelocationRef()
[all …]
H A DRuntimeDyldMachOI386.h67 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
68 RE.Addend = memcpyAddend(RE); in processRelocationRef()
70 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef()
85 if (RE.IsPCRel) in processRelocationRef()
86 makeValueAddendPCRel(Value, RelI, 1 << RE.Size); in processRelocationRef()
88 RE.Addend = Value.Offset; in processRelocationRef()
91 addRelocationForSymbol(RE, Value.SymbolName); in processRelocationRef()
93 addRelocationForSection(RE, Value.SectionID); in processRelocationRef()
98 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument
99 LLVM_DEBUG(dumpRelocationToResolve(RE, Value)); in resolveRelocation()
[all …]
H A DRuntimeDyldCOFFAArch64.h128 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub()
129 resolveRelocation(RE, Section.getLoadAddressWithOffset(StubOffset)); in generateRelocationStub()
247 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef()
248 addRelocationForSymbol(RE, TargetName); in processRelocationRef()
250 RelocationEntry RE(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
251 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
256 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument
257 const auto Section = Sections[RE.SectionID]; in resolveRelocation()
258 uint8_t *Target = Section.getAddressWithOffset(RE.Offset); in resolveRelocation()
259 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE.Offset); in resolveRelocation()
[all …]
H A DRuntimeDyldELFMips.cpp14 void RuntimeDyldELFMips::resolveRelocation(const RelocationEntry &RE, in resolveRelocation() argument
16 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
18 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation()
20 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
21 RE.SymOffset, RE.SectionID); in resolveRelocation()
23 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
24 RE.SymOffset, RE.SectionID); in resolveRelocation()
29 uint64_t RuntimeDyldELFMips::evaluateRelocation(const RelocationEntry &RE, in evaluateRelocation() argument
33 const SectionEntry &Section = Sections[RE.SectionID]; in evaluateRelocation()
34 Value = evaluateMIPS64Relocation(Section, RE.Offset, Value, RE.RelType, in evaluateRelocation()
[all …]
H A DRuntimeDyldCOFFX86_64.h87 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument
88 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
89 uint8_t *Target = Section.getAddressWithOffset(RE.Offset); in resolveRelocation()
91 switch (RE.RelType) { in resolveRelocation()
99 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE.Offset); in resolveRelocation()
102 uint64_t Delta = 4 + (RE.RelType - COFF::IMAGE_REL_AMD64_REL32); in resolveRelocation()
104 uint64_t Result = Value + RE.Addend; in resolveRelocation()
120 write32BitOffset(Target, RE.Addend, Value - ImageBase); in resolveRelocation()
126 writeBytesUnaligned(Value + RE.Addend, Target, 8); in resolveRelocation()
131 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && "Relocation overflow"); in resolveRelocation()
[all …]
/netbsd-src/external/bsd/atf/dist/atf-c/detail/
H A Dlist_test.c57 RE(atf_list_init(&list)); in ATF_TC_BODY()
78 RE(atf_list_init(&list)); in ATF_TC_BODY()
79 RE(atf_list_append(&list, &i1, false)); in ATF_TC_BODY()
80 RE(atf_list_append(&list, &i2, false)); in ATF_TC_BODY()
81 RE(atf_list_append(&list, &i3, false)); in ATF_TC_BODY()
102 RE(atf_list_init(&list)); in ATF_TC_BODY()
103 RE(atf_list_append(&list, &i1, false)); in ATF_TC_BODY()
104 RE(atf_list_append(&list, &i2, false)); in ATF_TC_BODY()
105 RE(atf_list_append(&list, &i3, false)); in ATF_TC_BODY()
120 RE(atf_list_init(&list)); in ATF_TC_BODY()
[all …]
H A Ddynstr_test.c58 RE(atf_dynstr_init(&str)); in ATF_TC_BODY()
71 RE(atf_dynstr_init_ap(str, fmt, ap)); in init_fmt()
115 RE(atf_dynstr_init_fmt(&str, "String 1")); in ATF_TC_BODY()
119 RE(atf_dynstr_init_fmt(&str, "String %d", 2)); in ATF_TC_BODY()
123 RE(atf_dynstr_init_fmt(&str, "%s %d", "String", 3)); in ATF_TC_BODY()
127 RE(atf_dynstr_init_fmt(&str, "%s%s%s%s%s%s%s", "This ", "should ", in ATF_TC_BODY()
147 RE(atf_dynstr_init_raw(&str, src, 0)); in ATF_TC_BODY()
151 RE(atf_dynstr_init_raw(&str, src, 8)); in ATF_TC_BODY()
155 RE(atf_dynstr_init_raw(&str, src + 10, 8)); in ATF_TC_BODY()
159 RE(atf_dynstr_init_raw(&str, "String\0Lost", 11)); in ATF_TC_BODY()
[all …]
H A Dfs_test.c136 RE(atf_fs_path_init_fmt(&p, "%s", t->in)); in ATF_TC_BODY()
154 RE(atf_fs_path_init_fmt(&str, "foo")); in ATF_TC_BODY()
155 RE(atf_fs_path_copy(&str2, &str)); in ATF_TC_BODY()
159 RE(atf_fs_path_append_fmt(&str2, "bar")); in ATF_TC_BODY()
194 RE(atf_fs_path_init_fmt(&p, "%s", t->in)); in ATF_TC_BODY()
234 RE(atf_fs_path_init_fmt(&p, "%s", t->in)); in ATF_TC_BODY()
274 RE(atf_fs_path_init_fmt(&p, "%s", t->in)); in ATF_TC_BODY()
275 RE(atf_fs_path_branch_path(&p, &bp)); in ATF_TC_BODY()
313 RE(atf_fs_path_init_fmt(&p, "%s", t->in)); in ATF_TC_BODY()
314 RE(atf_fs_path_leaf_name(&p, &ln)); in ATF_TC_BODY()
[all …]
H A Dmap_test.c57 RE(atf_map_init(&map)); in ATF_TC_BODY()
67 RE(atf_map_init_charpp(&map, NULL)); in ATF_TC_BODY()
78 RE(atf_map_init_charpp(&map, array)); in ATF_TC_BODY()
90 RE(atf_map_init_charpp(&map, array)); in ATF_TC_BODY()
133 RE(atf_map_init(&map)); in ATF_TC_BODY()
134 RE(atf_map_insert(&map, "K1", val1, false)); in ATF_TC_BODY()
135 RE(atf_map_insert(&map, "K2", val2, false)); in ATF_TC_BODY()
171 RE(atf_map_init(&map)); in ATF_TC_BODY()
172 RE(atf_map_insert(&map, "K1", val1, false)); in ATF_TC_BODY()
173 RE(atf_map_insert(&map, "K2", val2, false)); in ATF_TC_BODY()
[all …]
H A Dtest_helpers.c53 RE(atf_dynstr_init_fmt(&iflag, "-I%s", atf_config_get("atf_includedir"))); in build_check_c_o()
60 RE(atf_check_build_c_o(path, "test.o", optargs, &success)); in build_check_c_o()
72 RE(atf_fs_path_init_fmt(&path, "%s/%s", in build_check_c_o_srcdir()
101 RE(atf_fs_path_init_fmt(path, "%s/%sprocess_helpers", in get_process_helpers_path()
117 RE(atf_tc_run(data->m_tc, data->m_resname)); in run_h_tc_child()
132 RE(atf_fs_path_init_fmt(&outpath, "%s", outname)); in run_h_tc()
133 RE(atf_fs_path_init_fmt(&errpath, "%s", errname)); in run_h_tc()
137 RE(atf_process_stream_init_redirect_path(&outb, &outpath)); in run_h_tc()
138 RE(atf_process_stream_init_redirect_path(&errb, &errpath)); in run_h_tc()
139 RE(atf_process_fork(&child, run_h_tc_child, &outb, &errb, &data)); in run_h_tc()
[all …]
H A Dtext_test.c148 RE(atf_text_for_each_word("1 2 3", " ", word_count, &cnt)); in ATF_TC_BODY()
149 RE(atf_text_for_each_word("1 2 3", " ", word_acum, acum)); in ATF_TC_BODY()
155 RE(atf_text_for_each_word("1 2 3", ".", word_count, &cnt)); in ATF_TC_BODY()
156 RE(atf_text_for_each_word("1 2 3", ".", word_acum, acum)); in ATF_TC_BODY()
162 RE(atf_text_for_each_word("1 2 3 4 5", " ", word_count, &cnt)); in ATF_TC_BODY()
163 RE(atf_text_for_each_word("1 2 3 4 5", " ", word_acum, acum)); in ATF_TC_BODY()
169 RE(atf_text_for_each_word("1 2.3.4 5", " .", word_count, &cnt)); in ATF_TC_BODY()
170 RE(atf_text_for_each_word("1 2.3.4 5", " .", word_acum, acum)); in ATF_TC_BODY()
340 RE(atf_text_to_bool("true", &b)); ATF_REQUIRE(b); in ATF_TC_BODY()
341 RE(atf_text_to_bool("TRUE", &b)); ATF_REQUIRE(b); in ATF_TC_BODY()
[all …]
H A Dprocess_test.c128 RE(atf_process_stream_init_capture(&s->m_base.m_sb)); in capture_stream_init()
207 RE(atf_process_stream_init_connect(&s->m_base.m_sb, src_fd, s->m_fd)); in connect_stream_init()
243 RE(atf_process_stream_init_inherit(&s->m_base.m_sb)); in inherit_stream_init()
334 RE(atf_process_stream_init_redirect_fd(&s->m_base.m_sb, s->m_fd)); in redirect_fd_stream_init()
369 RE(atf_fs_path_init_fmt(&s->m_path, "stdout")); in redirect_path_stream_init()
372 RE(atf_fs_path_init_fmt(&s->m_path, "stderr")); in redirect_path_stream_init()
379 RE(atf_process_stream_init_redirect_path(&s->m_base.m_sb, &s->m_path)); in redirect_path_stream_init()
425 RE(atf_process_fork(&child, child_print, outfs->m_sb_ptr, in do_fork()
431 RE(atf_process_child_wait(&child, &status)); in do_fork()
453 RE(atf_process_stream_init_capture(&sb)); in ATF_TC_BODY()
[all …]
H A Denv_test.c80 RE(atf_text_format(&oldval, "%s", atf_env_get("PATH"))); in ATF_TC_BODY()
81 RE(atf_env_set("PATH", "foo-bar")); in ATF_TC_BODY()
87 RE(atf_env_set("_UNDEFINED_VARIABLE_", "foo2-bar2")); in ATF_TC_BODY()
100 RE(atf_env_unset("PATH")); in ATF_TC_BODY()
H A Dsanity_test.c104 RE(atf_process_stream_init_inherit(&outsb)); in do_test()
105 RE(atf_process_stream_init_capture(&errsb)); in do_test()
106 RE(atf_process_fork(&child, do_test_child, &outsb, &errsb, &td)); in do_test()
117 RE(atf_process_child_wait(&child, &status)); in do_test()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldMachO.cpp46 int64_t RuntimeDyldMachO::memcpyAddend(const RelocationEntry &RE) const { in memcpyAddend()
47 unsigned NumBytes = 1 << RE.Size; in memcpyAddend()
48 uint8_t *Src = Sections[RE.SectionID].getAddress() + RE.Offset; in memcpyAddend()
61 MachO::any_relocation_info RE = in processScatteredVANILLA() local
65 uint32_t RelocType = Obj.getAnyRelocationType(RE); in processScatteredVANILLA()
66 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processScatteredVANILLA()
67 unsigned Size = Obj.getAnyRelocationLength(RE); in processScatteredVANILLA()
73 unsigned SymbolBaseAddr = Obj.getScatteredRelocationValue(RE); in processScatteredVANILLA()
99 const RelocationEntry &RE, ObjSectionToIDMap &ObjSectionToID) { in getRelocationValueRef() argument
120 Value.Offset = SymInfo.getOffset() + RE.Addend; in getRelocationValueRef()
[all …]
H A DRuntimeDyldELF.cpp992 void RuntimeDyldELF::resolveRelocation(const RelocationEntry &RE, in resolveRelocation() argument
994 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
995 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
996 RE.SymOffset, RE.SectionID); in resolveRelocation()
1047 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processSimpleRelocation() local
1049 addRelocationForSymbol(RE, Value.SymbolName); in processSimpleRelocation()
1051 addRelocationForSection(RE, Value.SectionID); in processSimpleRelocation()
1311 RelocationEntry RE(SectionID, StubTargetAddr - Section.getAddress(), in processRelocationRef() local
1314 addRelocationForSymbol(RE, Value.SymbolName); in processRelocationRef()
1316 addRelocationForSection(RE, Value.SectionID); in processRelocationRef()
[all …]
/netbsd-src/external/bsd/kyua-testers/dist/
H A Drun_test.c59 #define RE(expr) ATF_REQUIRE(!kyua_error_is_set(expr)) macro
565 RE(kyua_fs_make_absolute("worktest", &tmpdir)); in ATF_TC_BODY()
567 RE(kyua_env_unset("TMPDIR")); in ATF_TC_BODY()
571 RE(kyua_run_work_directory_enter("template.XXXXXX", getuid(), getgid(), in ATF_TC_BODY()
576 RE(kyua_fs_concat(&template_test, atf_tc_get_config_var(tc, "srcdir"), in ATF_TC_BODY()
585 RE(kyua_run_work_directory_leave(&work_directory)); in ATF_TC_BODY()
595 RE(kyua_fs_make_absolute("worktest", &tmpdir)); in ATF_TC_BODY()
597 RE(kyua_env_set("TMPDIR", tmpdir)); in ATF_TC_BODY()
600 RE(kyua_run_work_directory_enter("template.XXXXXX", getuid(), getgid(), in ATF_TC_BODY()
605 RE(kyua_fs_concat(&template_test, atf_tc_get_config_var(tc, "srcdir"), in ATF_TC_BODY()
[all …]
H A Dstacktrace_test.c51 #define RE(expr) ATF_REQUIRE(!kyua_error_is_set(expr)) macro
86 RE(kyua_fs_concat(&src_helper, srcdir, "stacktrace_helper", NULL)); in generate_core_aux()
101 RE(error); in generate_core_aux()
146 RE(kyua_text_printf(&copy_to, "%s/%s", work_directory, program_name)); in generate_core()
147 RE(kyua_text_printf(&exec_path, "./%s", program_name)); in generate_core()
236 RE(kyua_env_set("PATH", ".")); in ATF_TC_BODY()
272 RE(kyua_env_set("PATH", ".")); in ATF_TC_BODY()
284 RE(kyua_env_set("PATH", ".")); in ATF_TC_BODY()
300 RE(kyua_env_set("PATH", ".")); in ATF_TC_BODY()
/netbsd-src/external/bsd/atf/dist/atf-c/
H A Dcheck_test.c64 RE(atf_check_exec_array(argv, r)); in do_exec()
84 RE(atf_check_exec_array(argv, r)); in do_exec_with_arg()
117 RE(atf_check_build_c_o("test.c", "test.o", NULL, &success)); in ATF_TC_BODY()
135 RE(atf_check_build_c_o("test.c", "test.o", NULL, &success)); in ATF_TC_BODY()
150 RE(atf_fs_path_init_fmt(&test_p, "test.p")); in ATF_TC_BODY()
158 RE(atf_check_build_cpp("test.c", atf_fs_path_cstring(&test_p), NULL, in ATF_TC_BODY()
179 RE(atf_check_build_cpp("test.c", "test.p", NULL, &success)); in ATF_TC_BODY()
197 RE(atf_check_build_cxx_o("test.cpp", "test.o", NULL, &success)); in ATF_TC_BODY()
215 RE(atf_check_build_cxx_o("test.cpp", "test.o", NULL, &success)); in ATF_TC_BODY()
230 RE(atf_tc_init_pack(tc, tcpack, config)); in init_and_run_h_tc()
[all …]
H A Dtc_test.c67 RE(atf_tc_init(&tc, "test1", ATF_TC_HEAD_NAME(empty), in ATF_TC_BODY()
73 RE(atf_tc_init(&tc, "test2", ATF_TC_HEAD_NAME(test_var), in ATF_TC_BODY()
101 RE(atf_tc_init_pack(&tc, &tcp1, NULL)); in ATF_TC_BODY()
106 RE(atf_tc_init_pack(&tc, &tcp2, NULL)); in ATF_TC_BODY()
122 RE(atf_tc_init(&tc, "test1", ATF_TC_HEAD_NAME(empty), in ATF_TC_BODY()
125 RE(atf_tc_set_md_var(&tc, "test-var", "Test value")); in ATF_TC_BODY()
143 RE(atf_tc_init(&tc, "test1", ATF_TC_HEAD_NAME(empty), in ATF_TC_BODY()
149 RE(atf_tc_init(&tc, "test1", ATF_TC_HEAD_NAME(empty), in ATF_TC_BODY()
H A Dbuild_test.c105 RE(atf_env_set(var, val)); in verbose_set_env()
175 RE(atf_build_c_o(test->sfile, test->ofile, test->optargs, in ATF_TC_BODY()
178 RE(atf_build_c_o(test->sfile, test->ofile, NULL, &argv)); in ATF_TC_BODY()
204 RE(atf_build_cpp(test->sfile, test->ofile, test->optargs, in ATF_TC_BODY()
207 RE(atf_build_cpp(test->sfile, test->ofile, NULL, &argv)); in ATF_TC_BODY()
234 RE(atf_build_cxx_o(test->sfile, test->ofile, test->optargs, in ATF_TC_BODY()
237 RE(atf_build_cxx_o(test->sfile, test->ofile, NULL, &argv)); in ATF_TC_BODY()

1234567891011