Lines Matching refs:relocations

16                    std::vector<ELF::Rela>* relocations) {
21 relocations->push_back(relocation);
38 std::vector<ELF::Rela> relocations;
44 codec.Encode(relocations, &packed);
49 AddRelocation(0xf00d0000, 10000, &relocations);
52 codec.Encode(relocations, &packed);
62 AddRelocation(0xf00d0004, 10012, &relocations);
65 codec.Encode(relocations, &packed);
78 AddRelocation(0xf00d0008, 10024, &relocations);
80 // Add three more relocations, 8 byte offset deltas, -24 byte addend deltas.
81 AddRelocation(0xf00d0010, 10000, &relocations);
82 AddRelocation(0xf00d0018, 9976, &relocations);
83 AddRelocation(0xf00d0020, 9952, &relocations);
86 codec.Encode(relocations, &packed);
94 // Two relocations, 4 byte offset deltas, 12 byte addend deltas.
99 // Three relocations, 8 byte offset deltas, -24 byte addend deltas.
110 std::vector<ELF::Rela> relocations;
113 codec.Decode(packed, &relocations);
115 EXPECT_EQ(0, relocations.size());
122 // Two relocations, 4 byte offset deltas, 12 byte addend deltas.
127 // Three relocations, 8 byte offset deltas, -24 byte addend deltas.
135 relocations.clear();
136 codec.Decode(packed, &relocations);
138 EXPECT_EQ(6, relocations.size());
140 EXPECT_TRUE(CheckRelocation(0xc0de0000, 10000, relocations[0]));
141 // Two relocations, 4 byte offset deltas, 12 byte addend deltas.
142 EXPECT_TRUE(CheckRelocation(0xc0de0004, 10012, relocations[1]));
143 EXPECT_TRUE(CheckRelocation(0xc0de0008, 10024, relocations[2]));
144 // Three relocations, 8 byte offset deltas, -24 byte addend deltas.
145 EXPECT_TRUE(CheckRelocation(0xc0de0010, 10000, relocations[3]));
146 EXPECT_TRUE(CheckRelocation(0xc0de0018, 9976, relocations[4]));
147 EXPECT_TRUE(CheckRelocation(0xc0de0020, 9952, relocations[5]));