mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	initial draft of PPCMachObjectWriter.cpp
this records relocation entries in the mach-o object file for PIC code generation. tested on powerpc-darwin8, validated against darwin otool -rvV git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188004 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -425,6 +425,25 @@ namespace macho { | ||||
|  | ||||
|   }; | ||||
|  | ||||
|   /// PPC relocation types from <mach-o/ppc/reloc.h> | ||||
|   enum RelocationInfoTypePPC { | ||||
|     RIT_PPC_BR14 = RIT_Pair +1, | ||||
|     RIT_PPC_BR24, | ||||
|     RIT_PPC_HI16, | ||||
|     RIT_PPC_LO16, | ||||
|     RIT_PPC_HA16, | ||||
|     RIT_PPC_LO14, | ||||
|     RIT_PPC_SECTDIFF, | ||||
|     RIT_PPC_PB_LA_PTR, | ||||
|     RIT_PPC_HI16_SECTDIFF, | ||||
|     RIT_PPC_LO16_SECTDIFF, | ||||
|     RIT_PPC_HA16_SECTDIFF, | ||||
|     RIT_PPC_JBSR, | ||||
|     RIT_PPC_LO14_SECTDIFF, | ||||
|     RIT_PPC_LOCAL_SECTDIFF, | ||||
|     RIT_PPC_TLV | ||||
|   }; | ||||
|  | ||||
| } // end namespace macho | ||||
|  | ||||
| } // end namespace object | ||||
|   | ||||
		Reference in New Issue
	
	Block a user