Commit Graph

  • 40b8d11c14 refactoring macho's write.go to use WriteFile and Bytes, such that the files can be constructed without being written to disk macho_write dborges 2019-02-03 18:22:15 -08:00
  • 900b9af30e Merge pull request #5 from Binject/macho-cleanup Dan Borges 2019-01-30 22:52:43 -08:00
  • ee21b37c19 update to macho write ahhh 2019-01-30 19:54:40 -08:00
  • c914c9d515 Added Virtual Memory Segment Protection flag constants for Mach-O. awgh 2019-01-29 23:52:49 -08:00
  • daa4766242 cleaning up comments a bit ahhh 2019-01-29 19:38:44 -08:00
  • 2f826f277d Small optimization to only write PE cert info if it changed Andrew LeFevre 2019-01-28 18:05:24 -05:00
  • ac54a07fc1 Separate PE writing logic into two functions, fix cert writing (again) Andrew LeFevre 2019-01-28 17:15:04 -05:00
  • 564c67b7e0 More refactoring/fixing Andrew LeFevre 2019-01-28 15:53:11 -05:00
  • b8a29f67bf Refactored and improved cert writing code Andrew LeFevre 2019-01-28 14:47:04 -05:00
  • a9b465661b Small tweak to correctly write certain files that don't have a Rich header Andrew LeFevre 2019-01-28 13:55:48 -05:00
  • 8fcbc6782c Added comments Andrew LeFevre 2019-01-27 23:41:40 -05:00
  • e3d3d8509f PE parsing and writing Rich header working Andrew LeFevre 2019-01-27 23:36:30 -05:00
  • 247614b64c Merge pull request #4 from Binject/moreloadcmds Dan Borges 2019-01-27 15:04:17 -08:00
  • 4dc14f1dad Finished parsing the Dynlinker Info blocks and associated data structures. Can properly parse and write signed apple macho binaries now ahhh 2019-01-27 15:03:06 -08:00
  • cbf3116125 more parsing ahhh 2019-01-27 00:44:55 -08:00
  • 50e8551ad8 properly parses and writes the 'Function Starts' and 'Data in Code Entrie' blocks now ahhh 2019-01-27 00:17:27 -08:00
  • af93ba4ec8 updating parsed structures ahhh 2019-01-26 23:53:06 -08:00
  • 6b99be8ca5 defining more macho load commands ahhh 2019-01-26 23:25:31 -08:00
  • 322fabcdd3 Merge pull request #3 from Binject/macho_sig Dan Borges 2019-01-25 00:13:30 -08:00
  • 38bfa0a76e more work on parsing / writing signature block ahhh 2019-01-24 23:44:14 -08:00
  • dcafd9279a Adding some basic parsing of the signature block data for macho files ahhh 2019-01-24 22:42:08 -08:00
  • 1af8ff55cc Removed buggy alignment code from debug/macho Write. It now clones (unsigned) machos perfectly! awgh 2019-01-24 00:10:50 -08:00
  • eca0043cb0 Merge pull request #2 from Binject/breaking_newz awgh 2019-01-21 13:27:21 -08:00
  • 1a45d0ded9 notes + direction ahhh 2019-01-21 02:19:09 -08:00
  • a9082f21ec Parsing file length properly now, means things like otool work, although files still dont run ahhh 2019-01-21 02:05:32 -08:00
  • 23659355cb more of the macho file done ahhh 2019-01-21 01:52:53 -08:00
  • ab441c8924 I think symbols come next in the binaries, but having trouble writing them ahhh 2019-01-18 17:28:27 -08:00
  • ad93c6b189 pe.Write now working with certs Andrew LeFevre 2019-01-17 23:06:18 -05:00
  • 85680fcd79 pe.Write mostly complete, produces files that execute but with different hashes... Andrew LeFevre 2019-01-17 21:59:53 -05:00
  • 6bb96c4eba File header writing working for PEs Andrew LeFevre 2019-01-17 19:22:38 -05:00
  • 66129e3cc8 Added parsing of Dos Header and Stub to debug/pe, cleaned up NewFile Andrew LeFevre 2019-01-17 19:21:01 -05:00
  • 44dc575a7b Merge pull request #1 from Binject/macho-dev Dan Borges 2019-01-16 20:56:45 -08:00
  • d0bba96460 Adding a write function to write macho bins Dan Borges 2019-01-16 20:50:39 -08:00
  • dac374cdaa Added the ability to insert additional bytes at the end of a section and removed a debug print statement. awgh 2019-01-15 02:19:09 -08:00
  • f9c5d4cc10 Initial check-in of Elf format Write() method, which write a file to disk from an elf.File. awgh 2019-01-14 22:19:02 -08:00
  • 9fb31bd0d1 Added the Shared Header Table offset and Shared String Table Index vars to the File header and NewFile. awgh 2019-01-14 19:07:00 -08:00
  • 4fb3b4b067 debug/gosym: remove outdated comment LE Manh Cuong 2019-01-09 09:27:54 +07:00
  • 44fa21c17b all: use "reports whether" consistently instead of "returns whether" Tobias Klauser 2018-11-22 11:46:44 +01:00
  • 497d114ce9 debug/pe: use ws2_32.dll in TestImportTableInUnknownSection Alex Brainman 2018-11-28 19:57:13 +11:00
  • e7eabeb4ba debug/pe: correct TestImportTableInUnknownSection error message Alex Brainman 2018-11-27 20:01:50 +11:00
  • 0d87393ea3 debug/pe: use kernel32.dll in TestImportTableInUnknownSection Alex Brainman 2018-11-24 16:54:01 +11:00
  • c1e9d59d56 debug/gosym: use "go build" instead of hand-running asm and link Austin Clements 2018-11-01 14:34:21 -04:00
  • 459c209f8a all: skip unsupported tests on AIX Clément Chigot 2018-11-02 10:09:30 +01:00
  • b37ab1976e debug/plan9obj: simplify s[:] to s where OlgaVlPetrova 2018-10-13 14:06:30 +03:00
  • 14138f7f43 debug/pe: fix TestDWARF to work with relocations Jordan Rhee 2018-10-05 13:12:18 -07:00
  • ce3af89ba5 debug/pe: skip a test on windows/arm Brad Fitzpatrick 2018-10-04 17:06:21 +00:00
  • 1d7dd79e52 debug/elf: add R_RISCV_32_PCREL relocation Tobias Klauser 2018-09-07 12:45:49 +02:00
  • 8e3116e065 debug/pe: support windows/arm Jordan Rhee 2018-07-24 15:17:54 -07:00
  • 8dd880aa39 debug/elf,macho,pe: support compressed DWARF Heschi Kreinick 2018-06-19 15:41:45 -04:00
  • 39544b47f5 debug/pe: add IMAGE_FILE_MACHINE_ARM64 Brad Fitzpatrick 2018-06-07 15:29:41 +00:00
  • 4bbca0abb8 all: regenerate stringer files Tim Cooper 2018-05-29 17:29:31 -03:00
  • 222b059571 debug/pe: gofmt Tobias Klauser 2018-05-23 14:04:48 +02:00
  • 5450194572 debug/pe: parse the import directory correctly Ali Rizvi-Santiago 2018-05-18 18:48:44 +00:00
  • e9cb296a2a cmd/internal/objfile, debug/macho: support disassembling arm64 Mach-O objects Tobias Klauser 2018-05-16 14:13:11 +02:00
  • 7a3ef85797 debug/elf: add machine and OSABI constants Tobias Klauser 2018-05-08 14:00:42 +02:00
  • 4639afa101 all: skip unsupported tests for js/wasm Richard Musiol 2018-03-04 12:15:37 +01:00
  • 88f452a364 debug/elf: add riscv64 relocations Tobias Klauser 2018-04-12 16:35:51 +02:00
  • 040a742944 debug/elf: enable TestNoSectionOverlaps on *bsd and solaris Tobias Klauser 2018-04-17 09:48:05 +00:00
  • 966b0b75f3 debug/gosym: intern LineTable strings Josh Bleecher Snyder 2018-04-12 07:42:20 -07:00
  • 32c725273d debug/elf: add missing EM_AARCH64 to machineStrings Tobias Klauser 2018-04-10 09:57:14 +02:00
  • ac8970ebd8 debug/pe: use bytes.IndexByte instead of a loop Tobias Klauser 2018-03-07 09:46:47 +01:00
  • 56ed375efb debug/macho: use bytes.IndexByte instead of a loop Josh Bleecher Snyder 2018-03-05 07:40:26 -08:00
  • b147aba6f2 all: add more uses of stringer Daniel Martí 2017-11-13 09:43:17 +00:00
  • ad2b3ca96c debug/dwarf: formStrp uses a 64-bit value for 64-bit DWARF Ian Lance Taylor 2017-12-15 18:02:57 -08:00
  • a2244ae940 debug/gosym: update docs for changes in Go 1.3 Hiroshi Ioka 2017-11-23 10:37:05 +09:00
  • b5c4e589eb debug/dwarf: clarify StructField.ByteSize doc Heschi Kreinick 2017-10-18 14:29:21 -04:00
  • 9bcb1df578 debug/dwarf: support 64-bit DWARF in byte order check Ian Lance Taylor 2017-10-16 11:11:34 -07:00
  • 46b160815d debug/elf: add relocation constants David Crawshaw 2017-10-06 15:59:44 -04:00
  • 5c2effae92 all: revert "all: prefer strings.LastIndexByte over strings.LastIndex" Marvin Stenger 2017-10-05 15:50:11 +02:00
  • 0e8ccb020e all: revert "all: prefer strings.IndexByte over strings.Index" Marvin Stenger 2017-10-05 15:49:32 +02:00
  • 2890500771 debug/elf: make safe for Go 1.4 compilers Russ Cox 2017-10-05 10:06:30 -04:00
  • 58a0baa2dd debug/macho: fill Rpath.LoadBytes in NewFile Hiroshi Ioka 2017-09-27 08:46:08 +09:00
  • eab66bdcb2 debug/macho: parse relocations Hiroshi Ioka 2017-09-21 10:53:08 +09:00
  • 3f32f4631e all: prefer strings.LastIndexByte over strings.LastIndex Marvin Stenger 2017-09-25 15:47:44 +02:00
  • e92a1fe913 all: prefer strings.IndexByte over strings.Index Marvin Stenger 2017-09-21 19:01:27 +02:00
  • 1945e1987c debug/macho: add missing file flags Kunpei Sakai 2017-08-28 15:28:12 +09:00
  • c966c93cb0 all: unindent some big chunks of code Daniel Martí 2017-08-17 15:51:35 +01:00
  • cd32e02350 debug/macho: support LC_RPATH Hiroshi Ioka 2017-08-17 09:11:36 +09:00
  • e93ae2f412 debug/macho: add comments for ambiguious LoadCommand Hiroshi Ioka 2017-08-17 09:16:32 +09:00
  • 92448328a4 debug/macho: make tests more comprehensive Hiroshi Ioka 2017-08-17 08:54:39 +09:00
  • e8e3e99125 debug/macho: rearrange code Hiroshi Ioka 2017-08-16 20:50:26 +09:00
  • 8999583803 debug/macho: make Type implements fmt.(Go)Stringer interfaces Hiroshi Ioka 2017-08-14 17:26:22 +09:00
  • bd546f9e10 debug/macho: add relocation types Hiroshi Ioka 2017-08-14 19:39:17 +09:00
  • 2ffbf38d00 debug/macho: add some file flags Hiroshi Ioka 2017-08-12 15:21:05 +09:00
  • 68a0a14884 debug/dwarf: heuristically handle both UNIX and Windows paths Austin Clements 2017-05-24 16:21:01 -04:00
  • 1f209b4401 cmd/link: actually generate .debug_gdb_scripts section on windows Alex Brainman 2017-05-11 11:55:59 +10:00
  • abb5df082e cmd/internal/obj: fix LSym.Type during compilation, not linking Josh Bleecher Snyder 2017-04-16 08:22:44 -07:00
  • 0c30fcd004 debug/pe: add TestBuildingWindowsGUI Alex Brainman 2017-03-27 15:55:15 +11:00
  • 1e8de4cbce cmd/link: write dwarf sections Alex Brainman 2017-02-08 12:47:43 +11:00
  • 0bfd0438f8 debug/pe: add test to check dwarf info Alex Brainman 2017-02-02 18:37:59 +11:00
  • 56adfce74f cmd/objdump: copy gosym.PCValue into internal package Keith Randall 2016-12-01 10:10:17 -08:00
  • 47ca972f66 debug/pe: do not create symbol table if FileHeader.PointerToSymbolTable is 0 Alex Brainman 2016-11-12 17:57:35 +11:00
  • cb271e1fc0 debug/elf: SPARC64 relocation type is only 8 bits Ian Lance Taylor 2016-11-10 12:49:06 -08:00
  • e75943b2bb all: make copyright headers consistent with one space after period Michael Munday 2016-11-04 16:30:12 -04:00
  • 7c214108b6 debug/elf: add support for GOARCH=mips{,le} Vladimir Stefanovic 2016-10-18 23:50:48 +02:00
  • 108fbb39df cmd/dist: use debug/pe directly for cmd/link Russ Cox 2016-10-13 15:27:04 -04:00
  • 537bfc6a86 debug/elf: add sparc64 relocations James Clarke 2016-10-11 19:08:45 +01:00
  • 8a7b5795b2 all: use testing.GoToolPath instead of "go" Keith Randall 2016-08-30 11:08:47 -07:00
  • b7c8dfc755 cmd/objdump: implement objdump of .o files Keith Randall 2016-07-02 17:19:25 -07:00
  • 5eaa251d13 debug/macho: fix comment on Section64 Michael Matloob 2016-08-23 08:17:58 -04:00