/aosp12/build/soong/cc/ |
H A D | linker.go | 234 linker.Properties.Ldflags = append(linker.Properties.Ldflags, flags...) 240 linker.dynamicProperties.RunPaths = append(linker.dynamicProperties.RunPaths, "../lib64", "lib64") 242 linker.dynamicProperties.RunPaths = append(linker.dynamicProperties.RunPaths, "../lib", "lib") 247 return []interface{}{&linker.Properties, &linker.dynamicProperties} 277 if Bool(linker.Properties.Use_version_lib) { 404 if linker.Properties.Use_clang_lld != nil { 405 return Bool(linker.Properties.Use_clang_lld) 437 if linker.useClangLld(ctx) { 468 if linker.useClangLld(ctx) { 527 if Bool(linker.Properties.Group_static_libs) { [all …]
|
H A D | cc.go | 793 linker linker member 843 if c.linker != nil { 852 if c.linker != nil { 861 if c.linker != nil { 870 if c.linker != nil { 918 if linker, ok := c.linker.(*objectLinker); ok { 929 if c.linker != nil { 952 if c.linker != nil { 962 if c.linker != nil { 1267 return c.linker != nil && c.linker.nativeCoverage() [all …]
|
H A D | test.go | 207 if test, ok := m.linker.(testPerSrc); ok { 229 allTests.(*Module).linker.(testPerSrc).unsetSrc() 235 tests[i].(*Module).linker.(testPerSrc).setSrc(testNames[i], src) 246 linker *baseLinker member 310 linker.dynamicProperties.RunPaths = append(linker.dynamicProperties.RunPaths, runpath) 314 linker.dynamicProperties.RunPaths = append(linker.dynamicProperties.RunPaths, "") 469 linker: binary.baseLinker, 475 module.linker = test 511 linker: library.baseLinker, 515 module.linker = test [all …]
|
H A D | binary_sdk_member.go | 129 binaryLinker := ccModule.linker.(*binaryDecorator) 133 if ccModule.linker != nil { 135 specifiedDeps = ccModule.linker.linkerSpecifiedDeps(specifiedDeps)
|
/aosp12/frameworks/compile/mclinker/unittests/ |
H A D | LinkerTest.cpp | 53 Linker linker; in TEST_F() local 54 linker.emulate(script, config); in TEST_F() 60 if (linker.link(module, builder)) in TEST_F() 76 Linker linker; in TEST_F() local 89 linker.emulate(script, config); in TEST_F() 134 Linker linker; in TEST_F() local 184 linker.reset(); in TEST_F() 232 Linker linker; in TEST_F() local 287 linker.reset(); in TEST_F() 337 Linker linker; in TEST_F() local [all …]
|
/aosp12/bionic/linker/ |
H A D | Android.bp | 77 // linker default configuration 136 // linker components 171 // template for the linker binary 178 "linker.cpp", 295 // looking up symbols in the linker by mistake. 313 // Ensure that if the linker needs __gnu_Unwind_Find_exidx, then the linker will have a 317 // non-relative dynamic relocation in the linker binary, which complicates linker startup. 331 // linker[_asan][64] binary 335 name: "linker", 497 name: "linker-unit-tests", [all …]
|
/aosp12/art/compiler/driver/ |
H A D | compiled_method_storage_test.cc | 48 const linker::LinkerPatch raw_patches1[] = { in TEST() 49 linker::LinkerPatch::IntrinsicReferencePatch(0u, 0u, 0u), in TEST() 50 linker::LinkerPatch::RelativeMethodPatch(4u, nullptr, 0u, 1u), in TEST() 52 const linker::LinkerPatch raw_patches2[] = { in TEST() 53 linker::LinkerPatch::IntrinsicReferencePatch(0u, 0u, 0u), in TEST() 54 linker::LinkerPatch::RelativeMethodPatch(4u, nullptr, 0u, 2u), in TEST() 56 ArrayRef<const linker::LinkerPatch> patches[] = { in TEST() 57 ArrayRef<const linker::LinkerPatch>(raw_patches1), in TEST() 58 ArrayRef<const linker::LinkerPatch>(raw_patches2), in TEST()
|
H A D | compiled_method_storage.h | 32 namespace linker { 63 const LengthPrefixedArray<linker::LinkerPatch>* DeduplicateLinkerPatches( 64 const ArrayRef<const linker::LinkerPatch>& linker_patches); 65 void ReleaseLinkerPatches(const LengthPrefixedArray<linker::LinkerPatch>* linker_patches); 70 ArrayRef<const uint8_t> GetThunkCode(const linker::LinkerPatch& linker_patch, 74 void SetThunkCode(const linker::LinkerPatch& linker_patch, 88 static ThunkMapKey GetThunkMapKey(const linker::LinkerPatch& linker_patch); 121 ArrayDedupeSet<linker::LinkerPatch> dedupe_linker_patches_;
|
H A D | compiled_method_storage.cc | 109 ThunkMapKey(linker::LinkerPatch::Type type, uint32_t custom_value1, uint32_t custom_value2) in ThunkMapKey() 123 linker::LinkerPatch::Type type_; 155 LengthPrefixedArrayAlloc<linker::LinkerPatch>(swap_space_.get())), in CompiledMethodStorage() 204 const LengthPrefixedArray<linker::LinkerPatch>* CompiledMethodStorage::DeduplicateLinkerPatches( in DeduplicateLinkerPatches() 205 const ArrayRef<const linker::LinkerPatch>& linker_patches) { in DeduplicateLinkerPatches() 210 const LengthPrefixedArray<linker::LinkerPatch>* linker_patches) { in ReleaseLinkerPatches() 215 const linker::LinkerPatch& linker_patch) { in GetThunkMapKey() 219 case linker::LinkerPatch::Type::kCallEntrypoint: in GetThunkMapKey() 222 case linker::LinkerPatch::Type::kBakerReadBarrierBranch: in GetThunkMapKey() 226 case linker::LinkerPatch::Type::kCallRelative: in GetThunkMapKey() [all …]
|
/aosp12/bionic/benchmarks/linker_relocation/ |
H A D | run_bench_with_ninja.sh | 40 --linker LINKER Run the benchmark using a specific dynamic linker 116 work_dir=$tmp_dir/linker-reloc-bench 122 target_dir=/data/local/tmp/linker-reloc-bench 124 (cd $tmp_dir; tar -c linker-reloc-bench/linker_reloc_bench_main linker-reloc-bench/*.so \ 133 if [ "$linker" != "" ]; then 134 main_cmd+=( $linker )
|
H A D | README.md | 3 This benchmark measures the time spent in the dynamic linker to load a large set 9 To run the benchmark, build the `linker-reloc-bench` target, sync `data`, and 10 run the benchmark from `/data/benchmarktest[64]/linker-reloc-bench`. 14 experimentation. The `--cc` and `--linker` flags allow swapping out different
|
/aosp12/frameworks/libs/native_bridge_support/linker/ |
H A D | Android.bp | 30 overrides: ["linker"], 31 stem: "linker", 40 "bionic/linker", 52 version_script: "linker.arm.map", 56 version_script: "linker.generic.map", 62 … // See https://android-review.googlesource.com/c/platform/bionic/+/954353/7/linker/linker.cpp#1165
|
/aosp12/art/dex2oat/ |
H A D | Android.bp | 33 "linker/elf_writer.cc", 34 "linker/elf_writer_quick.cc", 35 "linker/image_writer.cc", 36 "linker/multi_oat_relative_patcher.cc", 37 "linker/oat_writer.cc", 38 "linker/relative_patcher.cc", 93 "linker/image_writer.h", 488 "linker/elf_writer_test.cc", 489 "linker/image_test.cc", 490 "linker/image_write_read_test.cc", [all …]
|
/aosp12/system/linkerconfig/ |
H A D | README.md | 5 Linkerconfig is a program to generate linker configuration based on the runtime 16 ### linker.config.json 19 creates linker configuration with the module. This module can be defined as 23 A linker configuration file(linker.config.json) is compiled into a protobuf at build time 24 by `conv_linker_config`. You can find the compiled file under `<base>/etc/linker.config.pb`. 25 For example, `/apex/com.android.art/etc/linker.config.pb` is a configuration for the `com.android.a… 28 `/system/etc/linker.config.pb`(or its source module `system_linker_config`) is special because 33 linker.config.json file is in json format which can contain properties as below. 67 [ld.config.format.md](https://android.googlesource.com/platform/bionic/+/master/linker/ld.config.fo…
|
/aosp12/system/linkerconfig/testdata/ |
H A D | prepare_root.sh | 96 if test -f $ROOT_OUT/system/etc/linker.config.json; then 97 …conv_linker_config proto -s $ROOT_OUT/system/etc/linker.config.json -o $ROOT_OUT/system/etc/linker… 114 if test -f $dst/etc/linker.config.json; then 115 conv_linker_config proto -s $dst/etc/linker.config.json -o $dst/etc/linker.config.pb
|
/aosp12/frameworks/base/tools/aapt2/link/ |
H A D | ReferenceLinker_test.cpp | 55 ReferenceLinker linker; in TEST() local 56 ASSERT_TRUE(linker.Consume(context.get(), table.get())); in TEST() 117 ReferenceLinker linker; in TEST() local 118 ASSERT_TRUE(linker.Consume(context.get(), table.get())); in TEST() 163 ReferenceLinker linker; in TEST() local 164 ASSERT_TRUE(linker.Consume(context.get(), table.get())); in TEST() 193 ReferenceLinker linker; in TEST() local 194 ASSERT_FALSE(linker.Consume(context.get(), table.get())); in TEST() 220 ReferenceLinker linker; in TEST() local 250 ReferenceLinker linker; in TEST() local [all …]
|
/aosp12/art/libnativeloader/ |
H A D | README.md | 14 library finds the linker namespace (named `classloader-namespace`) that is 17 is performed by the dynamic linker. 19 The linker namespace is created when an APK is loaded into the process, and is 20 associated with the classloader that loaded the APK. The linker namespace is 25 The linker namespace is also configured differently depending on other 36 have their own linker namespaces. For example, ICU libraries `libicuuc.so` and 55 dynamic linker interface: `libdl.so` and `libnativebridge.so`. The former is 73 linker namespaces and finding an already created linker namespace for a given 77 models a linker namespace. Its main job is to abstract the two types of the 78 dynamic linker interface so that other parts of this library do not have to know
|
/aosp12/bionic/apex/ |
H A D | Android.bp | 51 "linker", 58 "bionic-linker-config", 100 native_binaries: ["linker"], 106 name: "bionic-linker-config", 107 src: "linker.config.json",
|
/aosp12/build/soong/cmd/host_bionic_inject/ |
H A D | host_bionic_inject.go | 55 linker, err := elf.Open(linkerFile) 61 startAddr, err := parseElf(r, linker) 82 func parseElf(r io.ReaderAt, linker *elf.File) (uint64, error) { 106 err = checkLinker(file, linker, symbols) 130 func checkLinker(file, linker *elf.File, fileSyms []elf.Symbol) error { 136 for i, lprog := range linker.Progs {
|
H A D | host_bionic_inject_test.go | 107 linker func() *elf.File 112 linker: linkerGold, 117 linker: linkerLld, 128 linker: linkerLld, 134 err := checkLinker(tc.file(), tc.linker(), linkerOffset())
|
/aosp12/art/compiler/ |
H A D | compiled_method.h | 34 namespace linker { 116 const ArrayRef<const linker::LinkerPatch>& patches); 126 const ArrayRef<const linker::LinkerPatch>& patches); 146 ArrayRef<const linker::LinkerPatch> GetPatches() const; 162 const LengthPrefixedArray<linker::LinkerPatch>* const patches_;
|
/aosp12/build/soong/ |
H A D | Android.bp | 90 srcs: [":linker"], 91 out: ["linker.s"], 111 srcs: [":linker"], 112 out: ["linker.flags"],
|
/aosp12/art/runtime/ |
H A D | class_root-inl.h | 48 inline ObjPtr<mirror::Class> GetClassRoot(ClassRoot class_root, ClassLinker* linker) in GetClassRoot() argument 50 return GetClassRoot<kReadBarrierOption>(class_root, linker->GetClassRoots<kReadBarrierOption>()); in GetClassRoot() 87 inline ObjPtr<mirror::Class> GetClassRoot(ClassLinker* linker) in GetClassRoot() argument 89 return GetClassRoot<kReadBarrierOption>(detail::ClassRootSelector<MirrorType>::value, linker); in GetClassRoot()
|
/aosp12/bionic/ |
H A D | android-changes-for-ndk-developers.md | 1 # Android linker changes for NDK developers 24 Our general practice with dynamic linker behavior changes is that they 45 on the dynamic linker's search path. This meant that apps 71 linker divides other libraries into the global group and the local 109 The dynamic linker now understands the difference 160 rule is enforced by the dynamic linker, so non-public libraries 273 because the Android dynamic linker trusts the entry/flag. 277 linker has issued warnings about text relocations since Android K 295 linker. 349 the -soname linker option). [all …]
|
/aosp12/system/core/libvndksupport/tests/ |
H A D | linker_test.cpp | 44 TEST(linker, load_existing_lib) { in TEST() argument 52 TEST(linker, load_nonexisting_lib) { in TEST() argument
|