Add global bins

This commit is contained in:
pancake committed 2026-10-12 18:28:57 +02:00
1 parent f230b255ef
commit 50e6727157
7 files changed
+45

No files matched your search

BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.r2-anal-globals-macho</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
+25
View File
@@ -0,0 +1,25 @@
#include <stdint.h>
// R2R db/anal/globals
struct GlobalPair {
int count;
char tag;
};
int global_count = 7;
unsigned char global_byte = 3;
uint64_t global_wide = 0x12345678;
int global_zero;
const int global_limit = 11;
int global_array[3] = { 1, 2, 3 };
int *global_pointer = &global_count;
struct GlobalPair global_pair = { 5, 'x' };
static short global_static = 9;
int main(void) {
static int local_static = 4;
global_zero = global_count + global_byte + global_static + local_static;
return global_zero + global_limit + global_array[1] + *global_pointer
+ global_pair.count + (int)global_wide;
}