Home | History | Annotate | Download | only in mac

Lines Matching refs:Segment

53 using mach_o::Segment;
102 const string &segment));
110 MOCK_METHOD1(SegmentCommand, bool(const Segment &));
174 reporter.SectionsMissing("segment name");
179 reporter.MisplacedSegmentData("segment name");
184 reporter.MisplacedSectionData("section name", "segment name");
576 // A SizedSection representing a segment load command.
581 // Append a segment load command header with the given characteristics.
606 // Return a label representing the size of this segment when loaded into
608 // segment, it defaults to the final size of the segment's in-file
612 // Add a section entry with the given characteristics to this segment
614 // to CONTENTS, which must be Placed in the segment's contents
648 // The number of sections that have been added to this segment so far.
651 // A label representing the final number of sections this segment will hold.
654 // The size of the contents for this segment present in the file.
657 // A label representing the size of this segment when loaded; this can be
1095 LoadedSection segment;
1096 segment.address() = 0x1891139c;
1097 segment.Append(42, '*'); // segment contents
1100 .Header("froon", segment, 0x94d6dd22, 0x8bdbc319, 0x990a16dd);
1107 .Place(&segment);
1111 Segment actual_segment;
1126 EXPECT_EQ(segment.final_size().Value(), actual_segment.contents.Size());
1131 LoadedSection segment;
1132 segment.address() = 0x4b877866;
1133 segment.Append(42, '*'); // segment contents
1136 .Header("sixteenprecisely", segment,
1144 .Place(&segment);
1148 Segment actual_segment;
1163 EXPECT_EQ(segment.final_size().Value(), actual_segment.contents.Size());
1168 LoadedSection segment;
1169 segment.address() = 0x79f484f77009e511ULL;
1170 segment.Append(42, '*'); // segment contents
1173 .Header("froon", segment, 0x42b45da5, 0x8bdbc319, 0xb2335220);
1180 .Place(&segment);
1184 Segment actual_segment;
1199 EXPECT_EQ(segment.final_size().Value(), actual_segment.contents.Size());
1204 LoadedSection segment;
1205 segment.address() = 0x50c0501dc5922d35ULL;
1206 segment.Append(42, '*'); // segment contents
1209 .Header("sixteenprecisely", segment,
1217 .Place(&segment);
1221 Segment actual_segment;
1236 EXPECT_EQ(segment.final_size().Value(), actual_segment.contents.Size());
1247 .AppendCString("too-short", 16) // segment name
1273 // Instead of letting a Place call set the segment's file offset and size,
1276 LoadedSection segment;
1277 segment.address() = 0x4db5489c;
1278 segment.start() = 0x7e189e76; // beyond end of file
1279 segment.final_size() = 0x98b9c3ab;
1282 .Header("notmerelyfifteen", segment, 0xcbab25ee, 0x359a20db, 0x68a3933f);
1333 SegmentCommand(Field(&Segment::name, "head")))
1336 SegmentCommand(Field(&Segment::name, "thorax")))
1339 SegmentCommand(Field(&Segment::name, "abdomen")))
1382 // Create a segment to hold them.
1383 LoadedSection segment;
1384 segment.address() = 0xe1d0eeec;
1385 segment.Place(&section2).Place(&section1);
1389 .Header("head", segment, 0x92c9568c, 0xa89f2627, 0x4dc7a1e2)
1397 file.Header(&commands).Place(&segment);
1401 Segment actual_segment;
1440 // The segment.
1441 LoadedSection segment;
1442 segment.address() = 0x696d83cc;
1443 segment.Append(10, '0');
1446 // we're not really going to Place them in segment; we're just going
1453 before.start() = segment.start() - 1;
1454 before.address() = segment.address() - 1;
1459 .Header("segment", segment, 0x173baa29, 0x8407275d, 0xed8f7057)
1460 .AppendSectionEntry("before", "segment", 0, 0x686c6921, before);
1466 file.Header(&commands).Place(&segment);
1470 Segment actual_segment;
1471 EXPECT_TRUE(reader.FindSegment("segment", &actual_segment));
1473 EXPECT_CALL(reporter, MisplacedSectionData("before", "segment"))
1481 // The segment.
1482 LoadedSection segment;
1483 segment.address() = 0x696d83cc;
1484 segment.Append(10, '0');
1487 // we're not really going to Place them in segment; we're just going
1494 after.start() = segment.start() + 11;
1495 after.address() = segment.address() + 11;
1500 .Header("segment", segment, 0x173baa29, 0x8407275d, 0xed8f7057)
1501 .AppendSectionEntry("after", "segment", 0, 0x2ee50124, after);
1507 file.Header(&commands).Place(&segment);
1511 Segment actual_segment;
1512 EXPECT_TRUE(reader.FindSegment("segment", &actual_segment));
1514 EXPECT_CALL(reporter, MisplacedSectionData("after", "segment"))
1522 // The segment.
1523 LoadedSection segment;
1524 segment.address() = 0x696d83cc;
1525 segment.Append(10, '0');
1528 // we're not really going to Place them in segment; we're just going
1535 too_big.start() = segment.start() + 1;
1536 too_big.address() = segment.address() + 1;
1541 .Header("segment", segment, 0x173baa29, 0x8407275d, 0xed8f7057)
1542 .AppendSectionEntry("too big", "segment", 0, 0x8b53ae5c, too_big);
1548 file.Header(&commands).Place(&segment);
1552 Segment actual_segment;
1553 EXPECT_TRUE(reader.FindSegment("segment", &actual_segment));
1555 EXPECT_CALL(reporter, MisplacedSectionData("too big", "segment"))
1567 // The segment.
1568 LoadedSection segment;
1569 segment.address() = 0x696d83cc;
1570 segment.start() = 0;
1571 segment.final_size() = 0;
1575 section.address() = segment.address();
1577 section.final_size() = 1000; // extends beyond its segment
1581 .Header("zapped", segment, 0x0861a5cb, 0x68ccff67, 0x0b66255c)
1592 Segment actual_segment;
1645 Segment segment;
1648 EXPECT_FALSE(reader.FindSegment("smoot", &segment));
1650 ASSERT_TRUE(reader.FindSegment("thorax", &segment));
1651 ASSERT_TRUE(reader.MapSegmentSections(segment, &section_map));
1667 ASSERT_TRUE(reader.FindSegment("head", &segment));
1668 ASSERT_TRUE(reader.MapSegmentSections(segment, &section_map));
1702 Segment actual_segment;