Skip to content

Commit

Permalink
[ext] Upgrade orbuculum with loadelf fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaut committed Jan 22, 2024
1 parent 667167a commit d61725d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request]

jobs:
osx:
runs-on: macos-12
runs-on: macos-13
steps:
- run: brew install zmq sdl2 libelf protobuf meson ninja
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion ext/orbetto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Please install the following dependencies:
sudo apt-get install -y libusb-1.0-0-dev libzmq3-dev meson libsdl2-dev libdwarf-dev libdw-dev libelf-dev libcapstone-dev python3-pip ninja-build protobuf-compiler
sudo pip3 install meson==1.2.0
# macOS
brew install zmq sdl2 libelf protobuf meson ninja
brew install libusb zmq sdl2 libelf dwarfutils protobuf meson ninja capstone
```

Then build the `build/orbetto` binary:
Expand Down
1 change: 0 additions & 1 deletion ext/orbetto/loadelf.c

This file was deleted.

2 changes: 1 addition & 1 deletion ext/orbetto/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ git_version_info_h = orbuculum.get_variable('git_version_info_h')

# Compile and link everything together
executable('orbetto',
sources: ['orbetto.cpp', 'loadelf.c', git_version_info_h],
sources: ['orbetto.cpp', git_version_info_h],
include_directories: ['subprojects/orbuculum/Inc', 'subprojects/orbuculum/Inc/external'] + perfbuf_lib.private_dir_include(),
dependencies: [dependency('protobuf')] + orbuculum.get_variable('dependencies'),
link_with: [liborb, perfbuf_lib],
Expand Down
4 changes: 2 additions & 2 deletions ext/orbetto/orbetto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1692,8 +1692,8 @@ int main( int argc, char *argv[] )

if ( options.elfFile )
{
/* Only load memory for now */
_r.symbols = symbolAcquire(options.elfFile, false, true, false);
printf("Loading ELF file %s\n", options.elfFile);
_r.symbols = symbolAcquire(options.elfFile, true, true);
assert( _r.symbols );
printf("Loaded ELF file %s with %u sections\n", options.elfFile, _r.symbols->nsect_mem);
for (int ii = 0; ii < _r.symbols->nsect_mem; ii++)
Expand Down
2 changes: 1 addition & 1 deletion ext/orbetto/subprojects/orbuculum.wrap
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[wrap-git]
url = https://github.com/niklaut/orbuculum.git
revision = adee960
revision = 7a8f4c0

0 comments on commit d61725d

Please sign in to comment.