mach-o Questions
1
I've been playing around with/debugging/disassembling binaries on the iPhone.
The first obstacle is that the binaries are encrypted and dissembler can not read them. This can be overcome by dumpin...
Reactivate asked 24/10, 2011 at 4:5
2
This is kind of a weird and un-Swift-thonic question, so bear with me.
I want to do in Swift something like the same thing I'm currently doing in Objective-C/C++, so I'll start by describing that.
...
Dullish asked 26/12, 2015 at 4:26
2
Solved
Are there any major differences between PE, ELF and Mach-O? I mean, are does one have capabilities the others don't? Can one carry more information then the others? Or are they just a different con...
Calumniate asked 29/3, 2016 at 19:8
2
Solved
I'm having a hard time understanding the absolute path that a @loader_path within a file refers to.
user@local:~$ otool -L zlib.so
zlib.so:
@loader_path/../../libz.1.dylib (compatibility version...
Sharkey asked 30/5, 2013 at 2:16
3
Solved
When using Clang's or GCC's Darwin backends to create executables for OSX, the flag -mmacosx-version-min=version can be used to set the earliest version of OSX the executable will run on.
Is there...
2
mach-o file, but is an incompatible architecture have 'x86_64', need 'arm64e' M1 MAC
from PyQt6.QtWidgets import *
from model.Department import Department
from view.main_window import Ui_Form
from model.Department import Department, Employee
class Homewidget(QWidget,Ui_Form):
d...
4
Solved
Is it possible to write in Go for iPhone?
I think following steps are required
Compile Go as ARM Mach-O binary (I expect GCCGO be able to do that)
Compile iPhone app as static library (I think it...
1
I'm trying to implement a tiny compiler for macOS.
I'm running macOS 11.5 on a MacBook Pro with M1. The assembly encoding works fine and I'm quite happy with the result (when handed over to Clang c...
2
Trying out snmalloc on Macos I wondered why all the created binaries are >256MiB.
It turns out that zero-initialized static inline data members are lowered in a weird way on Mac OS X, on both AR...
1
Solved
I am new to MacOS & MacOS programming. I would like to know how an application is working (by simply having a glimpse of the binary's imported system APIs for learning).
I tried otool, printed ...
2
I have a program that generates self-modifying code (see https://tigress.wtf/selfModify.html in case you're interested). It runs on x86 Darwin and Linux. On Darwin, I compile with
gcc -g -segprot ...
Southwesterly asked 2/3, 2020 at 23:7
3
What's structure of a dsym file generated when build the app. I know it contain DWARF debug info, but what's a dsym file. I want to read the DWARF info in it.
Is it just a Mach-O binary file that ...
Polytonality asked 25/7, 2014 at 17:53
10
Solved
What causes the error
Found an unexpected Mach-O header code: 1918975009 in xCode 6
I archived my project to send out as an ad hoc build and it builds/links/archives just fine but when I'm in t...
2
Solved
Hello I'm trying to find the address of a string in lldb on mac os.
In GDB I would use the find command with the addresses to search between.
But I cannot find such a command for lldb, I know that...
1
Solved
How to see some basic information about a MacOS binary file, specifically what was used to build it, which frameworks it is linked against and what system calls it is using?
I tried nm and otool -...
Bendwise asked 2/6, 2018 at 13:56
1
Solved
This question and answer describe how to read data from a Mach-O section with Objective-C on modern OS X/macOS versions: Crash reading bytes from getsectbyname
The described answer works. I'm tryi...
0
3
Solved
(See Updates at end of this post)
For $reasons, I need to codesign an old Director projector that we can no longer re-publish (no access to original source code or to Director).
I'm doing this b...
Dreadful asked 18/1, 2018 at 14:59
1
Solved
Let's assume that I have a .a fat library which is built for several architectures (e.g. armv7, armv7s, i386, x86_64, arm64). Library is built for iOS (has cmd LC_VERSION_MIN_IPHONEOS and version 6...
2
Solved
Anyone know of an equivalent to Mach-O's two-level namespace symbol resolution in ELF/linux? I want code that links to lib+sym, not sym.
I'm trying to do what could best be described as precompila...
1
Running this code off my Mac computer, using command:
nasm -f macho64 -o max.a maximum.asm
This is the code I am attempting to run on my computer that finds the largest number inside an array.
...
8
Solved
Got this error for the first time, I have looked around and cannot find a solution to help me, I have cleaned my build and also checked to make sure I am compiling for the latest firmware.
This ha...
1
The problem:
I have 2 MH_EXECUTE iOS binary files (compiled, no source code).
Lets name them binary1 and binary2.
I try to switch between them before UIApplicationMain is called!
1 try
I success...
12
I cannot compile my project for the device or simulator anymore. I get 13 Apple Mach-O-Linker errors. It all started after I failed attempt to use sharekit. Here is the log from the error:
ld: war...
2
Is it possible to replace every instance of a particular function with a dummy in a compiled binary?
Is it possible to alter the way that an existing x86-64 binary references and/or calls one particular function. Specifically, is it possible to alter the binary such nothing happens (similar to a n...
Chitarrone asked 24/7, 2017 at 4:8
1 Next >
© 2022 - 2024 — McMap. All rights reserved.