Skip to content

Commit

Permalink
Adds link std libs
Browse files Browse the repository at this point in the history
  • Loading branch information
KionX committed Aug 7, 2023
1 parent 5f93c92 commit 66f6c60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ int main() {

#define sectVAddr to_string(nf.imgbase + newVOffset - 0x1000)
if (system(("cd build &&\
g++ -pipe -c -m32 -Os -fno-exceptions -w -fpermissive -masm=intel -std=c++17 -march=core2 -mfpmath=both ../section.cpp &&\
ld -T ../section.ld --image-base " + sectVAddr + " -s -Map sectmap.txt *.o").c_str())) return 1;
g++ -pipe -m32 -Os -nostartfiles -w -fpermissive -masm=intel -std=c++17 -march=core2 -mfpmath=both\
-Wl,-T,../section.ld,--image-base," + sectVAddr + ",-s,-Map,sectmap.txt ../section.cpp").c_str())) return 1;

ParseMap("build/sectmap.txt", "define.h");

Expand Down

0 comments on commit 66f6c60

Please sign in to comment.