| OLD | NEW |
| 1 //===- subzero/src/IceELFObjectWriter.h - ELF object writer -----*- C++ -*-===// | 1 //===- subzero/src/IceELFObjectWriter.h - ELF object writer -----*- C++ -*-===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 /// | 9 /// |
| 10 /// \file | 10 /// \file |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 template <typename UserSectionList> | 139 template <typename UserSectionList> |
| 140 void assignRelSectionNumInPairs(SizeT &CurSectionNumber, | 140 void assignRelSectionNumInPairs(SizeT &CurSectionNumber, |
| 141 UserSectionList &UserSections, | 141 UserSectionList &UserSections, |
| 142 RelSectionList &RelSections, | 142 RelSectionList &RelSections, |
| 143 SectionList &AllSections); | 143 SectionList &AllSections); |
| 144 | 144 |
| 145 /// Link the relocation sections to the symbol table. | 145 /// Link the relocation sections to the symbol table. |
| 146 void assignRelLinkNum(SizeT SymTabNumber, RelSectionList &RelSections); | 146 void assignRelLinkNum(SizeT SymTabNumber, RelSectionList &RelSections); |
| 147 | 147 |
| 148 /// Helper function for writeDataSection. Writes a data section of type | 148 /// Helper function for writeDataSection. Writes a data section of type |
| 149 /// SectionType, given the global variables Vars belonging to that SectionType
. | 149 /// SectionType, given the global variables Vars belonging to that |
| 150 /// SectionType. |
| 150 void writeDataOfType(SectionType SectionType, | 151 void writeDataOfType(SectionType SectionType, |
| 151 const VariableDeclarationList &Vars, | 152 const VariableDeclarationList &Vars, |
| 152 FixupKind RelocationKind, | 153 FixupKind RelocationKind, |
| 153 const IceString &SectionSuffix); | 154 const IceString &SectionSuffix); |
| 154 | 155 |
| 155 /// Write the final relocation sections given the final symbol table. | 156 /// Write the final relocation sections given the final symbol table. |
| 156 /// May also be able to seek around the file and resolve function calls | 157 /// May also be able to seek around the file and resolve function calls |
| 157 /// that are for functions within the same section. | 158 /// that are for functions within the same section. |
| 158 void writeAllRelocationSections(); | 159 void writeAllRelocationSections(); |
| 159 void writeRelocationSections(RelSectionList &RelSections); | 160 void writeRelocationSections(RelSectionList &RelSections); |
| 160 | 161 |
| 161 /// Write the ELF file header with the given information about sections. | 162 /// Write the ELF file header with the given information about sections. |
| 162 template <bool IsELF64> | 163 template <bool IsELF64> |
| 163 void writeELFHeaderInternal(Elf64_Off SectionHeaderOffset, | 164 void writeELFHeaderInternal(Elf64_Off SectionHeaderOffset, |
| 164 SizeT SectHeaderStrIndex, SizeT NumSections); | 165 SizeT SectHeaderStrIndex, SizeT NumSections); |
| 165 }; | 166 }; |
| 166 | 167 |
| 167 } // end of namespace Ice | 168 } // end of namespace Ice |
| 168 | 169 |
| 169 #endif // SUBZERO_SRC_ICEELFOBJECTWRITER_H | 170 #endif // SUBZERO_SRC_ICEELFOBJECTWRITER_H |
| OLD | NEW |