/art/dex2oat/linker/ |
D | image_test.cc | 69 uint32_t image_size_ = kElfSegmentAlignment; in TEST_F() 72 uint32_t oat_file_begin = ART_BASE_ADDRESS + (kElfSegmentAlignment); in TEST_F() 73 uint32_t oat_data_begin = ART_BASE_ADDRESS + (2 * kElfSegmentAlignment); in TEST_F() 74 uint32_t oat_data_end = ART_BASE_ADDRESS + (2 * kElfSegmentAlignment + 1 * KB); in TEST_F() 75 uint32_t oat_file_end = ART_BASE_ADDRESS + (2 * kElfSegmentAlignment + 2 * KB); in TEST_F() 77 uint32_t image_reservation_size = RoundUp(oat_file_end - image_begin, kElfSegmentAlignment); in TEST_F() 226 sections[ImageHeader::kSectionImageBitmap] = ImageSection(0, kElfSegmentAlignment); in TEST_F() 227 ImageHeader image_header(/*image_reservation_size=*/ kElfSegmentAlignment, in TEST_F() 250 std::unique_ptr<uint8_t> bitmap(new uint8_t[kElfSegmentAlignment]); in TEST_F() 251 memset(bitmap.get(), 0, kElfSegmentAlignment); in TEST_F()
|
D | multi_oat_relative_patcher_test.cc | 149 uint32_t adjustment1 = kElfSegmentAlignment; in TEST_F() 159 uint32_t adjustment2 = 0x30 * kElfSegmentAlignment; in TEST_F() 169 uint32_t adjustment3 = 0x78 * kElfSegmentAlignment; in TEST_F() 182 uint32_t adjustment1 = kElfSegmentAlignment; in TEST_F() 205 uint32_t adjustment2 = 0xd * kElfSegmentAlignment; in TEST_F() 227 uint32_t adjustment1 = kElfSegmentAlignment; in TEST_F() 250 uint32_t adjustment2 = 0xd * kElfSegmentAlignment; in TEST_F() 281 uint32_t adjustment1 = kElfSegmentAlignment; in TEST_F() 303 uint32_t adjustment2 = 0xd * kElfSegmentAlignment; in TEST_F()
|
D | multi_oat_relative_patcher.cc | 53 DCHECK_ALIGNED(adjustment, kElfSegmentAlignment); in StartOatFile()
|
D | image_write_read_test.cc | 105 } else if (image_file_size > 4 * kElfSegmentAlignment) { in TestWriteRead() 111 image_space->GetImageHeader().GetImageSize() - kElfSegmentAlignment); in TestWriteRead()
|
D | image_writer.cc | 885 const size_t length = RoundUp(image_info.CreateImageSections().first, kElfSegmentAlignment); in AllocMemory() 2635 image_info.image_size_ = RoundUp(image_info.CreateImageSections().first, kElfSegmentAlignment); in CalculateNewObjectOffsets() 2785 DCHECK_ALIGNED(image_reservation_size, kElfSegmentAlignment); in CreateHeader() 2796 DCHECK_ALIGNED(image_info.image_begin_, kElfSegmentAlignment); in CreateHeader() 2798 RoundUp(end - image_info.image_begin_, kElfSegmentAlignment)); in CreateHeader() 2834 *bitmap_section = ImageSection(RoundUp(image_end, kElfSegmentAlignment), bitmap_bytes); in CreateHeader()
|
D | oat_writer.cc | 647 bss_start_ = (bss_size_ != 0u) ? RoundUp(oat_size_, kElfSegmentAlignment) : 0u; in PrepareLayout() 2265 offset = RoundUp(offset, kElfSegmentAlignment); in InitOatCode() 2379 data_img_rel_ro_start_ = RoundUp(offset, kElfSegmentAlignment); in InitDataImgRelRoLayout() 2601 DCHECK_EQ(RoundUp(code_end, kElfSegmentAlignment), relative_offset); in WriteDataImgRelRo()
|
/art/runtime/gc/collector/ |
D | immune_spaces_test.cc | 88 DCHECK_LE(MemMap::GetPageSize(), kElfSegmentAlignment); in ReserveImage() 89 if (MemMap::GetPageSize() == kElfSegmentAlignment) { in ReserveImage() 100 kElfSegmentAlignment, in ReserveImage() 214 constexpr size_t kImageSize = 123 * kElfSegmentAlignment; in TEST_F() 215 constexpr size_t kImageOatSize = 321 * kElfSegmentAlignment; in TEST_F() 216 constexpr size_t kOtherSpaceSize = 100 * kElfSegmentAlignment; in TEST_F() 269 constexpr size_t kImage1Size = kElfSegmentAlignment * 17; in TEST_F() 270 constexpr size_t kImage2Size = kElfSegmentAlignment * 13; in TEST_F() 271 constexpr size_t kImage3Size = kElfSegmentAlignment * 3; in TEST_F() 272 constexpr size_t kImage1OatSize = kElfSegmentAlignment * 5; in TEST_F() [all …]
|
D | immune_spaces.cc | 54 kElfSegmentAlignment); in CreateLargestImmuneRegion()
|
/art/runtime/oat/ |
D | image.cc | 72 CHECK_EQ(image_begin, RoundUp(image_begin, kElfSegmentAlignment)); in ImageHeader() 74 CHECK_EQ(oat_file_begin, RoundUp(oat_file_begin, kElfSegmentAlignment)); in ImageHeader() 75 CHECK_EQ(oat_data_begin, RoundUp(oat_data_begin, kElfSegmentAlignment)); in ImageHeader() 119 CHECK_ALIGNED(delta, kElfSegmentAlignment) << "relocation delta must be Elf segment aligned"; in RelocateBootImageReferences() 133 return image_reservation_size_ == RoundUp(image_size_, kElfSegmentAlignment); in IsAppImage() 151 if (!IsAligned<kElfSegmentAlignment>(image_reservation_size_)) { in IsValid() 428 out_offset = RoundUp(out_offset, kElfSegmentAlignment); in WriteData()
|
D | oat.cc | 103 if (!IsAligned<kElfSegmentAlignment>(executable_offset_)) { in IsValid() 125 if (!IsAligned<kElfSegmentAlignment>(executable_offset_)) { in GetValidationErrorMessage() 202 DCHECK_ALIGNED(executable_offset_, kElfSegmentAlignment); in GetExecutableOffset() 208 DCHECK_ALIGNED(executable_offset, kElfSegmentAlignment); in SetExecutableOffset()
|
D | elf_file.cc | 1073 min_vaddr = RoundDown(min_vaddr, kElfSegmentAlignment); in GetLoadedAddressRange() 1074 max_vaddr = RoundUp(max_vaddr, kElfSegmentAlignment); in GetLoadedAddressRange() 1224 !IsAligned<kElfSegmentAlignment>(program_header->p_filesz)) { in Load()
|
D | oat_file.cc | 1396 CondRoundUp<kPageSizeAgnostic>(context.max_size, kElfSegmentAlignment))); in Dlopen()
|
/art/libelffile/elf/ |
D | elf_builder.h | 205 header_.sh_addralign = kElfSegmentAlignment; // Page-align if R/W/X flags changed. in AddSection() 463 rodata_(this, ".rodata", SHT_PROGBITS, SHF_ALLOC, nullptr, 0, kElfSegmentAlignment, 0), in ElfBuilder() 465 kElfSegmentAlignment, 0), in ElfBuilder() 467 kElfSegmentAlignment, 0), in ElfBuilder() 468 bss_(this, ".bss", SHT_NOBITS, SHF_ALLOC, nullptr, 0, kElfSegmentAlignment, 0), in ElfBuilder() 469 dex_(this, ".dex", SHT_NOBITS, SHF_ALLOC, nullptr, 0, kElfSegmentAlignment, 0), in ElfBuilder() 470 dynstr_(this, ".dynstr", SHF_ALLOC, kElfSegmentAlignment), in ElfBuilder() 473 dynamic_(this, ".dynamic", SHT_DYNAMIC, SHF_ALLOC, &dynstr_, 0, kElfSegmentAlignment, in ElfBuilder() 545 CHECK(loaded_size_ == 0 || loaded_size_ == RoundUp(virtual_address_, kElfSegmentAlignment)) in End() 620 DCHECK_LE(section->header_.sh_offset, end + kElfSegmentAlignment) in Strip() [all …]
|
/art/runtime/ |
D | runtime_test.cc | 109 EXPECT_EQ(kElfSegmentAlignment, elf_file->GetElfSegmentAlignmentFromFile()); in TEST_F()
|
D | runtime_image.cc | 135 *bitmap_section = ImageSection(RoundUp(sections_end, kElfSegmentAlignment), bitmap_bytes); in Generate() 152 /* image_reservation_size= */ RoundUp(sections_end, kElfSegmentAlignment), in Generate()
|
/art/libartbase/base/ |
D | globals.h | 56 static constexpr size_t kElfSegmentAlignment = kMaxPageSize; variable
|
/art/runtime/gc/space/ |
D | image_space.cc | 108 CHECK_ALIGNED(min_delta, kElfSegmentAlignment); in ChooseRelocationOffsetDelta() 109 CHECK_ALIGNED(max_delta, kElfSegmentAlignment); in ChooseRelocationOffsetDelta() 114 r = RoundUp(r, kElfSegmentAlignment); in ChooseRelocationOffsetDelta() 116 r = RoundDown(r, kElfSegmentAlignment); in ChooseRelocationOffsetDelta() 120 CHECK_ALIGNED(r, kElfSegmentAlignment); in ChooseRelocationOffsetDelta() 599 kElfSegmentAlignment); in InitAppImage() 734 RoundUp(sizeof(ImageHeader) + image_header.GetDataSize(), kElfSegmentAlignment); in Init() 1009 CondRoundUp<kPageSizeAgnostic>(image_header.GetImageSize(), kElfSegmentAlignment), in LoadImageFile() 1031 kElfSegmentAlignment), in LoadImageFile() 3176 DCHECK_ALIGNED(reservation_size, kElfSegmentAlignment); in ReserveBootImageMemory() [all …]
|
/art/dex2oat/ |
D | dex2oat_image_test.cc | 116 static_assert(IsAligned<kElfSegmentAlignment>(ART_BASE_ADDRESS_MIN_DELTA)); in ReserveCoreImageAddressSpace() 117 static_assert(IsAligned<kElfSegmentAlignment>(ART_BASE_ADDRESS_MAX_DELTA)); in ReserveCoreImageAddressSpace()
|
/art/oatdump/ |
D | oatdump.cc | 1965 CHECK_ALIGNED(image_header_.GetImageBitmapSection().Offset(), kElfSegmentAlignment); in Dump()
|
/art/runtime/gc/ |
D | heap.cc | 260 current_heap += RoundUp(current_header.GetImageSize(), kElfSegmentAlignment); in VerifyBootImagesContiguity()
|