| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "crazy_linker_shared_library.h" | 5 #include "crazy_linker_shared_library.h" |
| 6 | 6 |
| 7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <sys/mman.h> | 9 #include <sys/mman.h> |
| 10 #include <elf.h> | 10 #include <elf.h> |
| 11 #include <sys/exec_elf.h> | |
| 12 | 11 |
| 13 #include "crazy_linker_ashmem.h" | 12 #include "crazy_linker_ashmem.h" |
| 14 #include "crazy_linker_debug.h" | 13 #include "crazy_linker_debug.h" |
| 15 #include "crazy_linker_elf_loader.h" | 14 #include "crazy_linker_elf_loader.h" |
| 16 #include "crazy_linker_elf_relocations.h" | 15 #include "crazy_linker_elf_relocations.h" |
| 17 #include "crazy_linker_library_list.h" | 16 #include "crazy_linker_library_list.h" |
| 18 #include "crazy_linker_library_view.h" | 17 #include "crazy_linker_library_view.h" |
| 19 #include "crazy_linker_globals.h" | 18 #include "crazy_linker_globals.h" |
| 20 #include "crazy_linker_memory_mapping.h" | 19 #include "crazy_linker_memory_mapping.h" |
| 21 #include "crazy_linker_thread.h" | 20 #include "crazy_linker_thread.h" |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 if (iter_.GetTag() == DT_NEEDED) { | 441 if (iter_.GetTag() == DT_NEEDED) { |
| 443 dep_name_ = symbols_->GetStringById(iter_.GetValue()); | 442 dep_name_ = symbols_->GetStringById(iter_.GetValue()); |
| 444 iter_.GetNext(); | 443 iter_.GetNext(); |
| 445 return true; | 444 return true; |
| 446 } | 445 } |
| 447 } | 446 } |
| 448 return false; | 447 return false; |
| 449 } | 448 } |
| 450 | 449 |
| 451 } // namespace crazy | 450 } // namespace crazy |
| OLD | NEW |