awgh
dd7757eeb3
Add relocation editing support across ELF/Mach-O/PE with tests
...
- implement relocation add/replace APIs and serialization updates per format
- generate dyld rebase/bind info from Mach-O relocs with optional ordinals
- update ELF dynamic relocation tags and safe relayout handling
- add/extend relocation tests and stabilize existing test suite
2026-01-23 20:55:41 -08:00
awgh
db623b874a
Commenting out debug prints. Need a debug/warning/error log scheme in here.
2020-06-20 10:23:50 -07:00
awgh
03ddc00e7a
Added the ability to insert shellcode for Mach-O's. Untested, needs unit tests.
2019-03-29 23:21:54 -07:00
ahhh
247eb13f12
clone works, although an offset is not quite right, feels like 4 bytes off somewhere. cloned binaries still run
2019-02-20 23:26:37 -08:00
ahhh
37e08f3b00
Got fat header cloned, time to add fat files at proper offsets
2019-02-20 20:52:00 -08:00
ahhh
c245e95876
Adding some of the fat / universalmacho cloning functionality
2019-02-20 20:10:20 -08:00
dborges
40b8d11c14
refactoring macho's write.go to use WriteFile and Bytes, such that the files can be constructed without being written to disk
2019-02-03 18:22:15 -08:00
ahhh
ee21b37c19
update to macho write
2019-01-30 19:54:40 -08:00
ahhh
daa4766242
cleaning up comments a bit
2019-01-29 19:38:44 -08:00
ahhh
4dc14f1dad
Finished parsing the Dynlinker Info blocks and associated data structures. Can properly parse and write signed apple macho binaries now
2019-01-27 15:03:06 -08:00
ahhh
cbf3116125
more parsing
2019-01-27 00:44:55 -08:00
ahhh
50e8551ad8
properly parses and writes the 'Function Starts' and 'Data in Code Entrie' blocks now
2019-01-27 00:17:27 -08:00
ahhh
38bfa0a76e
more work on parsing / writing signature block
2019-01-24 23:44:14 -08:00
awgh
1af8ff55cc
Removed buggy alignment code from debug/macho Write. It now clones (unsigned) machos perfectly!
2019-01-24 00:10:50 -08:00
ahhh
1a45d0ded9
notes + direction
2019-01-21 02:19:09 -08:00
ahhh
a9082f21ec
Parsing file length properly now, means things like otool work, although files still dont run
2019-01-21 02:05:32 -08:00
ahhh
23659355cb
more of the macho file done
2019-01-21 01:52:53 -08:00
ahhh
ab441c8924
I think symbols come next in the binaries, but having trouble writing them
2019-01-18 17:28:27 -08:00
Dan Borges
d0bba96460
Adding a write function to write macho bins
2019-01-16 20:50:39 -08:00