summaryrefslogtreecommitdiff
path: root/ZAPD/Main.cpp
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2021-09-04 15:01:26 -0400
committerGitHub <noreply@github.com>2021-09-04 15:01:26 -0400
commit45cb0d6b04b3eae4a00b7398e544c9d3e607fe51 (patch)
tree235cadbd7e942756674f6e8a2af5fe488e917c77 /ZAPD/Main.cpp
parenta5962b3f634d48cc5be873c608c0ced07093e02e (diff)
Fix reloc generation for GCC builds (#176)
* Check every section of other files * jumptables fix * Cleanup * Now it should work again * cleanup * Use unordered_set instead of vector * Remove some printfs * Re-implement get_link to prevent so many searches * minor changes * add gcc-compat flag * format * add .rodata.cst8
Diffstat (limited to 'ZAPD/Main.cpp')
-rw-r--r--ZAPD/Main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ZAPD/Main.cpp b/ZAPD/Main.cpp
index 0c86ab6..621e3d3 100644
--- a/ZAPD/Main.cpp
+++ b/ZAPD/Main.cpp
@@ -213,6 +213,10 @@ int main(int argc, char* argv[])
{
Globals::Instance->currentExporter = argv[++i];
}
+ else if (arg == "--gcc-compat") // GCC compatibility
+ {
+ Globals::Instance->gccCompat = true;
+ }
}
// Parse File Mode