57 Commits

Author SHA1 Message Date
Download-Fritz
c814d82ef1 OcMachoLib: Introduce GetSymbolbyExternReloc API. 2019-03-26 17:18:02 +01:00
Download-Fritz
b5ccf1f93b OcMachoLib: Support local relocations when getting a symbol by offset. 2019-03-26 15:34:33 +01:00
Download-Fritz
01c867ad8e OcMachoLib: Remove unsafe VTable API. 2019-03-25 20:25:27 +01:00
vit9696
2a72e67ac0 Move command stripping to Mach-O lib 2019-03-24 11:52:10 +03:00
vit9696
e169a7aa7e Ensure 1:1 disk:vm mach-o matching requirement during kext inject 2019-03-24 01:50:57 +03:00
Download-Fritz
95e6d1cc58 OcMachoLib: Introduce GetFilePointerByAddress API. 2019-03-23 21:03:09 +01:00
Download-Fritz
a9c1f22db3 OcMachoLib: Optionally return MaxSize parameter for GetFileOffset.
OcAppleKernelLib: Adapt calls for security.
2019-03-23 17:36:40 +01:00
Download-Fritz
0ce7e1ec99 OcMachoLib: Update GetSymbolByRelocOffset interface to report Relocation existance. 2019-03-23 11:51:15 +01:00
vit9696
30fb879941 Add internal symbol table stubs 2019-03-20 16:07:18 +03:00
vit9696
cba5bac94a Start importing prelinker 2019-03-19 22:31:15 +03:00
vit9696
da708a8427 Implement virtual fs support 2019-03-13 02:22:28 +03:00
vit9696
a471bd6c61 Late touches on OcMachoLib 2019-01-17 10:01:26 +03:00
vit9696
caabf0b2ab Continue fixing and refactoring OcMachoLib 2019-01-16 17:46:10 +03:00
vit9696
aca4a620ac Fix sanity of symbol retrieval code 2019-01-16 13:15:22 +03:00
vit9696
69f441b5ec Restore OcMachoLib interfaces for convenience resons 2019-01-15 23:34:01 +03:00
vit9696
a43cb1386e Start cleaning up OcMachoLib 2019-01-15 18:23:29 +03:00
Download-Fritz
793b78d103 OcMachoLib: Revise several function prorotypes and checks as part of security considerations. 2019-01-12 22:57:57 +01:00
Download-Fritz
dde6882ba3 OcMachoLib: Drop inconvenient CONST qualifiers. 2019-01-05 15:37:14 +01:00
Download-Fritz
62c681dd9f OcMachoLib: Fix function prototype from last commit. 2018-11-10 10:57:46 +01:00
Download-Fritz
51c63ec135 OcMachoLib: Introduce MachoSymbolGetFileOffset64() API. 2018-11-10 10:53:11 +01:00
Download-Fritz
619e30c5ba OcMachoLib: Retrieve symbol type by name. 2018-11-09 18:50:20 +01:00
Download-Fritz
97da06f663 OcMachoLib: use UINT32 for FileSize and all offsets. 2018-11-06 09:08:46 +01:00
Download-Fritz
ff6a9b83eb OcMachoLib: Ensure string index sanity when retrieving an indirect symbol's name. 2018-11-04 10:30:33 +01:00
Download-Fritz
524732e0ef OcMachoLib: Use UINT32 variables to refer to UINT32 Mach-O structure data. 2018-11-04 09:14:20 +01:00
Download-Fritz
4241912574 OcMachoLib: Publish updated Context struct to support static allocations. 2018-11-04 09:06:50 +01:00
Download-Fritz
df54805a92 OcMachoLib: Always return Mach-O memory as CONST. 2018-11-04 08:42:04 +01:00
Download-Fritz
8ddbd9fdd4 OcMachoLib: Introduce MachoGetFileSize() API. 2018-11-04 08:21:17 +01:00
Download-Fritz
3b9ad05f71 OcMachoLib: Generically take VOID * for file data in Context init. 2018-11-04 08:19:27 +01:00
Download-Fritz
edbfcdaecb OcMachoLib: Reorder MachoInitializeContext() arguments to match OOP. 2018-11-03 19:45:51 +01:00
Download-Fritz
2cf8e08118 OcMachoLib: Introduce MachoGetMachHeader64(). 2018-10-21 21:57:35 +02:00
Download-Fritz
c1fe60e115 OcMachoLib: Remove orphaned function declaration. 2018-10-21 21:54:46 +02:00
Download-Fritz
c3d4298326 OcMachoLib: Introduce symbol name retrieval functions. 2018-10-21 21:54:31 +02:00
Download-Fritz
92bbf6d606 OcMachoLib: Use incomplete type completed within the library as Context. 2018-10-21 17:19:40 +02:00
Download-Fritz
563e61ebcf OcMachoLib: Import MachoIsSymbolValueSane64(). 2018-10-21 15:10:56 +02:00
Download-Fritz
d6636d80ba OcMachoLib: Return non-CONST pointers. 2018-10-21 15:08:23 +02:00
Download-Fritz
4265923609 OcMachoLib: No longer expose GetExternalRelocationByOffset(). 2018-10-21 14:55:01 +02:00
Download-Fritz
bcdddbd9ae OcMachoLib: Update MachoGetMetaclassSymbolFromSmcpSymbol64() to use the new public APIs. Removes MachoGetCxxSymbolByExternRelocation64(). 2018-10-21 14:53:18 +02:00
Download-Fritz
48ea3b19f1 OcMachoLib: Get C++ symbols via relocations only from the extern ones. 2018-10-21 14:39:04 +02:00
Download-Fritz
38a311d72d OcMachoLib: Introduce MachoGetSymbolByExternRelocationOffset64(). 2018-10-21 14:19:25 +02:00
Download-Fritz
bb4650c47a OcMachoLib: Introduce MachoGetSymbolByIndex64(). 2018-10-21 14:00:37 +02:00
Download-Fritz
3299b3e158 OcMachoLib: Mark Context as IN OUT non-CONST. 2018-10-21 05:35:21 +02:00
Download-Fritz
2071d6643d OcMachoLib: Retrieve SYMTAB and DYSYMTAB via Context. Do not expose SYMTAB and DYSYMTAB directly. 2018-10-21 05:16:22 +02:00
Download-Fritz
339b36686b OcMachoLib: Turn GetSymbolByName into a private API. Different subsections shall be accessed by dedicated APIs. 2018-10-20 14:51:21 +02:00
Download-Fritz
5b67566e6f OcMachoLib: Fix "Mach-O" stylization. 2018-10-20 02:13:15 +02:00
Download-Fritz
53178770a0 OcMachoLib/Header: Introduce more sanity checks. 2018-10-20 02:10:41 +02:00
Download-Fritz
6015bce8d7 OcMachoLib: Update Get*Symtab naming scheme. 2018-10-20 01:32:44 +02:00
Download-Fritz
2c26827077 OcMachoLib: Make OC_MACHO_CONTEXT struct private. Provide MachoGetContextSize(). 2018-10-19 18:17:12 +02:00
Download-Fritz
0247641371 OcMachoLib: Deprecate GetFirstSegment/Section to simplify the future control flow. 2018-10-19 15:27:11 +02:00
Download-Fritz
a3241dbde4 OcMachoLib: Deprecate Get*Command in favor of specific retrieval functions. 2018-10-19 14:56:38 +02:00
Download-Fritz
b1bc2328ad OcMachoLib: Introduce Symtab and DySymtab retrieval functions. 2018-10-19 14:54:09 +02:00