Questions tagged [otool]

otool is command line tool of MacOS X that displays info of an object. The otool command displays specified parts of object files or libraries.

136 questions
4
votes
1 answer

"dll-path" has no effect when building boost

I aim to have full runpaths in compiled boost libraries by providing dll-path option when compiling boost: $ ./b2 dll-path=$(pwd)/build --prefix=$(pwd)/build $ ./b2 install dll-path=$(pwd)/build --prefix=$(pwd)/build However, when I check libraries…
peetonn
  • 2,942
  • 4
  • 32
  • 49
4
votes
0 answers

macdeployqt ERROR: Cannot resolve rpath "QtGui.framework/Versions/5/QtGui (compatibility version 5.5.0, current version 5.5.0)"

I use qmake to compile my Qt Application project on my MacBook. It need a dylib called libcore.dylib, and I put it into dir $$OUT_PWD/../libs. for compile, I add this code in .pro file win32:CONFIG(release, debug|release): LIBS +=…
sjchao
  • 41
  • 4
4
votes
1 answer

Using nm(1) to list symbols from object file built for arm64 on OS X

Does anyone know how can list symbols from an object file that I built for arm64 architecture? I tried to use nm but it gave me an error: bfd_mach_o_scan: unknown architecture0x100000c/0x0 File format not recognized Is it possible to do the same…
marcin
  • 125
  • 1
  • 14
4
votes
1 answer

iOS otool to detect private apis

I am a first time ios developer and cannot find any documentation on private apis. So I have been searching for some type of tutorial on how to use otool. The only certain thing that I can find is that I had to download the command line tools…
user1803649
  • 263
  • 1
  • 3
  • 11
4
votes
2 answers

List global variables in executable

How can I dump all the global variables and the address offsets in my executable? This is on os x, app developed with xcode compiled with gcc. Thank you
user1443656
  • 95
  • 1
  • 6
3
votes
1 answer

XQuartz dynamic loading error

I updated XQuartz, and now it doesn't load, complaining that: Dyld Error Message: Library not loaded: /opt/X11/lib/libfreetype.6.dylib Referenced from: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11.bin Reason: Incompatible library…
James
  • 24,676
  • 13
  • 84
  • 130
3
votes
1 answer

Why does macOS kill static executables created by clang?

I have a minimal c program for the m1 arm cpu that returns 42: void _start() { asm("mov x0, #42;"); asm("mov x16, #1;"); asm("svc 0x80;"); } This code compiles after telling clang to use the _start symbol and returns the correct…
3
votes
1 answer

Inspect and get binary from ELF file on MAC

I have a ELF file and I want to get a hex or bin file of my code from it. In the terminal, if a do a file main, which is my file, it shows: main: ELF 32-bit LSB executable, UCB RISC-V, version 1 (SYSV), statically linked, not stripped As I learned,…
Kralik_011
  • 393
  • 1
  • 3
  • 14
3
votes
0 answers

OTOOL alternate for linux

I have a reverse engineering set up on a Mac machine. This set up does some reverse engineering on iOS applications(.ipa files). I'm migrating the setup from Mac to a linux machine. Currently on Mac, I'm using OTOOL on ipa binary files and using the…
Rohit saraf
  • 491
  • 1
  • 6
  • 17
3
votes
2 answers

How to manually include a dynamic library in an iOS APP

I have an iOS app (not made with xcode) and I need to include in it a dynamic library. I have this library on my computer: \webrtc \WebRTC.framework \Headers \*.h \Modules \module.modulemap …
zeus
  • 12,173
  • 9
  • 63
  • 184
3
votes
1 answer

How to use otool to check for whether Stack Smashing is enabled or not?

I see many answers, like this, and this on the internet says to use otool command to check for stack_chk_guard and stack_chk_fail on the project. The problem is, I don't know to which file the otool must be applied. On a source, they say this otool…
Chen Li Yong
  • 5,459
  • 8
  • 58
  • 124
3
votes
0 answers

howto turn otool output into compilable form?

Greetings, I've created a couple of text files from mac i386 binary (via otx and otool -tV ), but when I try to recompile them again, I fail. I've tried cc -x assembler test.s But I keep getting this for almost every line : test.s:9342:Junk…
PetrV
  • 1,368
  • 2
  • 15
  • 30
3
votes
1 answer

How do you debug libc in OSX?

I would expect to be able to statically link against a build of libc with debug symbols, then run my program through lldb. otool -L makes it look like the only dynamically linked library (dll) is: /usr/lib/libSystem.B.dylib…
Nick Desaulniers
  • 2,046
  • 3
  • 25
  • 47
3
votes
1 answer

install-name-tool does not add path to library when viewed through otool?

I finished my mac app using Xcode and Qt. Now I would like to prepare it for deployment to other macs. Inorder to do that I utilized macdeployqt. I just created an app bundle with macdeployqt. However some of the libraries are missing. I attempted…
MistyD
  • 16,373
  • 40
  • 138
  • 240
3
votes
1 answer

dylib library path and use it in application

I want to create a library in Mac OS X El Capitan (10.11.x) and use it in another application by qt creator, so I’ve created a simple library in qt with this setting: QT -= gui TARGET =…
Hadi Moghaddar
  • 115
  • 1
  • 11
1 2
3
9 10