Home | History | Annotate | Download | only in src

Lines Matching defs:relocations

13 void AddRelocation(Elf32_Addr addr, std::vector<Elf32_Rel>* relocations) {
15 relocations->push_back(relocation);
27 std::vector<Elf32_Rel> relocations;
33 AddRelocation(0xd1ce0000, &relocations);
34 // Two more relocations, 4 byte deltas.
35 AddRelocation(0xd1ce0004, &relocations);
36 AddRelocation(0xd1ce0008, &relocations);
37 // Three more relocations, 8 byte deltas.
38 AddRelocation(0xd1ce0010, &relocations);
39 AddRelocation(0xd1ce0018, &relocations);
40 AddRelocation(0xd1ce0020, &relocations);
43 packer.PackRelativeRelocations(relocations, &packed);
59 // Run of two relocations, 4 byte deltas.
62 // Run of three relocations, 8 byte deltas.
72 std::vector<Elf32_Rel> relocations;
89 // Run of two relocations, 4 byte deltas.
92 // Run of three relocations, 8 byte deltas.
99 relocations.clear();
100 packer.UnpackRelativeRelocations(packed, &relocations);
102 EXPECT_EQ(6u, relocations.size());
104 EXPECT_TRUE(CheckRelocation(0xd1ce0000, relocations[0]));
105 // Two relocations, 4 byte deltas.
106 EXPECT_TRUE(CheckRelocation(0xd1ce0004, relocations[1]));
107 EXPECT_TRUE(CheckRelocation(0xd1ce0008, relocations[2]));
108 // Three relocations, 8 byte deltas.
109 EXPECT_TRUE(CheckRelocation(0xd1ce0010, relocations[3]));
110 EXPECT_TRUE(CheckRelocation(0xd1ce0018, relocations[4]));
111 EXPECT_TRUE(CheckRelocation(0xd1ce0020, relocations[5]));