reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryReader.cpp
  310           appendRelocations(section.relocations, mb->getBuffer(), isBig,
  354           appendRelocations(section.relocations, mb->getBuffer(), isBig,
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
  296       relocCount += sect.relocations.size();
  655     sout->reloff = sin.relocations.empty() ? 0 : relOffset;
  656     sout->nreloc = sin.relocations.size();
  660     relOffset += sin.relocations.size() * sizeof(any_relocation_info);
 1038     for (Relocation r : sect.relocations) {
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
 1329                                               normSect.relocations);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
  600   for (auto it=section.relocations.begin(), e=section.relocations.end();
  600   for (auto it=section.relocations.begin(), e=section.relocations.end();
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp
  316     io.mapOptional("relocations",     sect.relocations);
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp
  285   EXPECT_EQ(text.relocations.size(), 2UL);
  286   const Relocation& call = text.relocations[0];
  292   const Relocation& str = text.relocations[1];
  311   EXPECT_TRUE(cstring.relocations.empty());
  410   EXPECT_EQ(text.relocations.size(), 3UL);
  411   const Relocation& call = text.relocations[0];
  419   const Relocation& sectDiff = text.relocations[1];
  426   const Relocation& pair = text.relocations[2];
  446   EXPECT_TRUE(cstring.relocations.empty());
  542   EXPECT_EQ(text.relocations.size(), 5UL);
  543   const Relocation& call = text.relocations[0];
  550   const Relocation& movt = text.relocations[1];
  556   const Relocation& movtPair = text.relocations[2];
  562   const Relocation& movw = text.relocations[3];
  568   const Relocation& movwPair = text.relocations[4];
  587   EXPECT_TRUE(cstring.relocations.empty());
  686   EXPECT_EQ(text.relocations.size(), 5UL);
  687   const Relocation& bl = text.relocations[0];
  693   const Relocation& lo = text.relocations[1];
  699   const Relocation& loPair = text.relocations[2];
  705   const Relocation& ha = text.relocations[3];
  711   const Relocation& haPair = text.relocations[4];
  730   EXPECT_TRUE(cstring.relocations.empty());
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryWriterTests.cpp
  136     text.relocations.push_back(makeReloc(0x01, false, true, X86_64_RELOC_BRANCH, 1));
  137     text.relocations.push_back(makeReloc(0x08, false, true, X86_64_RELOC_GOT_LOAD, 1));
  138     text.relocations.push_back(makeReloc(0x0E, false, true, X86_64_RELOC_GOT, 1));
  139     text.relocations.push_back(makeReloc(0x14, false, true, X86_64_RELOC_SIGNED, 1));
  140     text.relocations.push_back(makeReloc(0x1A, false, true, X86_64_RELOC_SIGNED_1, 1));
  141     text.relocations.push_back(makeReloc(0x21, false, true, X86_64_RELOC_SIGNED_4, 1));
  142     text.relocations.push_back(makeReloc(0x2C, false, true, X86_64_RELOC_TLV, 2));
  184   const Relocation& call = text.relocations[0];
  190   const Relocation& gotLoad = text.relocations[1];
  196   const Relocation& gotUse = text.relocations[2];
  202   const Relocation& signed0 = text.relocations[3];
  208   const Relocation& signed1 = text.relocations[4];
  214   const Relocation& signed4 = text.relocations[5];
  251     text.relocations.push_back(makeReloc(0x01, true, true, GENERIC_RELOC_VANILLA, 0));
  252     text.relocations.push_back(makeReloc(0x06, false, true, GENERIC_RELOC_VANILLA, 0));
  253     text.relocations.push_back(makeScatReloc(0x0c, GENERIC_RELOC_LOCAL_SECTDIFF, 0));
  254     text.relocations.push_back(makeScatReloc(0x0, GENERIC_RELOC_PAIR, 5));
  255     text.relocations.push_back(makeReloc(0x12, true, true, GENERIC_RELOC_TLV, 1));
  296   const Relocation& call = text.relocations[0];
  304   const Relocation& absLoad = text.relocations[1];
  312   const Relocation& pic1 = text.relocations[2];
  318   const Relocation& pic2 = text.relocations[3];
  324   const Relocation& tlv = text.relocations[4];
  362     text.relocations.push_back(makeReloc(0x00, true, true,
  364     text.relocations.push_back(makeScatReloc(0x04,
  366     text.relocations.push_back(makeScatReloc(0x00,
  368     text.relocations.push_back(makeScatReloc(0x08,
  370     text.relocations.push_back(makeScatReloc(0x00,
  372     text.relocations.push_back(makeReloc(0x0C, false, true,
  422   const Relocation& blx = text.relocations[0];
  430   const Relocation& movw1 = text.relocations[1];
  436   const Relocation& movw2 = text.relocations[2];
  442    const Relocation& movt1 = text.relocations[3];
  448   const Relocation& movt2 = text.relocations[4];
  454  const Relocation& absPointer = text.relocations[5];
  495     text.relocations.push_back(makeReloc(0x00, true, true,
  497     text.relocations.push_back(makeReloc(0x04, true, true,
  499     text.relocations.push_back(makeScatReloc(0x08,
  501     text.relocations.push_back(makeScatReloc(0x24,
  503     text.relocations.push_back(makeScatReloc(0x0C,
  505     text.relocations.push_back(makeScatReloc(0x24,
  507     text.relocations.push_back(makeScatReloc(0x10,
  509     text.relocations.push_back(makeScatReloc(0x00,
  511     text.relocations.push_back(makeScatReloc(0x14,
  513     text.relocations.push_back(makeScatReloc(0x00,
  515     text.relocations.push_back(makeReloc(0x18, false, false,
  517     text.relocations.push_back(makeReloc(0x28, false, false,
  519     text.relocations.push_back(makeReloc(0x1C, false, false,
  521     text.relocations.push_back(makeReloc(0x28, false, false,
  523     text.relocations.push_back(makeReloc(0x20, false, false,
  525     text.relocations.push_back(makeReloc(0x00, false, false,
  527     text.relocations.push_back(makeReloc(0x24, false, false,
  529     text.relocations.push_back(makeReloc(0x00, false, false,
  579   const Relocation& br24 = text.relocations[0];
  587   const Relocation& br14 = text.relocations[1];
  595   const Relocation& pichi1 = text.relocations[2];
  601   const Relocation& pichi2 = text.relocations[3];
  607   const Relocation& picha1 = text.relocations[4];
  613   const Relocation& picha2 = text.relocations[5];
  619   const Relocation& piclo1 = text.relocations[6];
  625   const Relocation& piclo2 = text.relocations[7];
  631   const Relocation& picloa1 = text.relocations[8];
  637   const Relocation& picloa2 = text.relocations[9];
  643   const Relocation& abshi1 = text.relocations[10];
  649   const Relocation& abshi2 = text.relocations[11];
  655   const Relocation& absha1 = text.relocations[12];
  661   const Relocation& absha2 = text.relocations[13];
  667   const Relocation& abslo1 = text.relocations[14];
  673   const Relocation& abslo2 = text.relocations[15];
  679   const Relocation& absloa1 = text.relocations[16];
  685   const Relocation& absloa2 = text.relocations[17];
tools/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp
  293   EXPECT_EQ(sect1.relocations.size(), 2UL);
  294   const Relocation& reloc1 = sect1.relocations[0];
  303   const Relocation& reloc2 = sect1.relocations[1];
  423   EXPECT_EQ(sect1.relocations.size(), 3UL);
  424   const Relocation& reloc1 = sect1.relocations[0];
  433   const Relocation& reloc2 = sect1.relocations[1];
  441   const Relocation& reloc3 = sect1.relocations[2];
  551   EXPECT_EQ(sect1.relocations.size(), 3UL);
  552   const Relocation& reloc1 = sect1.relocations[0];
  560   const Relocation& reloc2 = sect1.relocations[1];
  568   const Relocation& reloc3 = sect1.relocations[2];
  691   EXPECT_EQ(sect1.relocations.size(), 5UL);
  692   const Relocation& reloc1 = sect1.relocations[0];
  701   const Relocation& reloc2 = sect1.relocations[1];
  709   const Relocation& reloc3 = sect1.relocations[2];
  717    const Relocation& reloc4 = sect1.relocations[3];
  725   const Relocation& reloc5 = sect1.relocations[4];