File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,5 @@ section.cpp
1515
1616.vscode
1717
18- section.ld
1918section /main.cpp
2019section /main.cxx
Original file line number Diff line number Diff line change 1+ {
2+ "input_exe_path" : " ForgedAlliance_base.exe" ,
3+ "output_exe_path" : " ForgedAlliance_exxt.exe" ,
4+ "clang_flags" : [
5+ " -pipe" ,
6+ " -m32" ,
7+ " -O3" ,
8+ " -nostdlib" ,
9+ " -Werror" ,
10+ " -masm=intel" ,
11+ " -std=c++20" ,
12+ " -march=core2" ,
13+ " -D_CRT_SECURE_NO_WARNINGS" ,
14+ " -D_NO_CRT_STDIO_INLINE"
15+ ],
16+ "gcc_flags" : [
17+ " -pipe" ,
18+ " -m32" ,
19+ " -Os" ,
20+ " -fno-exceptions" ,
21+ " -nostdlib" ,
22+ " -nostartfiles" ,
23+ " -fpermissive" ,
24+ " -masm=intel" ,
25+ " -std=c++20" ,
26+ " -march=core2" ,
27+ " -mfpmath=both"
28+ ],
29+ "asm_flags" : [
30+ " -pipe" ,
31+ " -m32" ,
32+ " -Os" ,
33+ " -fno-exceptions" ,
34+ " -nostdlib" ,
35+ " -nostartfiles" ,
36+ " -w" ,
37+ " -fpermissive" ,
38+ " -masm=intel" ,
39+ " -std=c++20" ,
40+ " -march=core2" ,
41+ " -mfpmath=both"
42+ ]
43+ }
Original file line number Diff line number Diff line change 1+ {
2+ "input_exe_path" : " ForgedAlliance_base.exe" ,
3+ "output_exe_path" : " C:\\ ProgramData\\ FAForever\\ bin\\ ForgedAlliance_exxt.exe" ,
4+ "clang_flags" : [
5+ " -pipe" ,
6+ " -m32" ,
7+ " -O3" ,
8+ " -nostdlib" ,
9+ " -Werror" ,
10+ " -masm=intel" ,
11+ " -std=c++20" ,
12+ " -march=core2" ,
13+ " -D_CRT_SECURE_NO_WARNINGS" ,
14+ " -D_NO_CRT_STDIO_INLINE"
15+ ],
16+ "gcc_flags" : [
17+ " -pipe" ,
18+ " -m32" ,
19+ " -Os" ,
20+ " -fno-exceptions" ,
21+ " -nostdlib" ,
22+ " -nostartfiles" ,
23+ " -fpermissive" ,
24+ " -masm=intel" ,
25+ " -std=c++20" ,
26+ " -march=core2" ,
27+ " -mfpmath=both"
28+ ],
29+ "asm_flags" : [
30+ " -pipe" ,
31+ " -m32" ,
32+ " -Os" ,
33+ " -fno-exceptions" ,
34+ " -nostdlib" ,
35+ " -nostartfiles" ,
36+ " -w" ,
37+ " -fpermissive" ,
38+ " -masm=intel" ,
39+ " -std=c++20" ,
40+ " -march=core2" ,
41+ " -mfpmath=both"
42+ ]
43+ }
Original file line number Diff line number Diff line change 1+ OUTPUT_FORMAT (pei-i386 )
2+ OUTPUT (section.pe )
3+
4+ " _atexit" = 0xA8211E ;
5+ " __Znwj" = 0xA825B9 ;
6+ " __ZdlPvj" = 0x958C40 ;
7+ " __imp__GetModuleHandleA@4" = 0xC0F378 ;
8+ " __imp__GetProcAddress@8" = 0xC0F48C ;
9+ " ___CxxFrameHandler3" = 0xA8958C ;
10+ " ___std_terminate" = 0xA994FB ;
11+ " ??_7type_info@@6B@" = 0xD72A88 ;
12+ " __CxxThrowException@8" = 0xA89950 ;
13+ " _memset" = 0xA89110 ;
14+ " __invoke_watson" = 0xA848E8 ;
15+ " _strcpy" = 0xA944E0 ;
16+ " _memcpy" = 0xA84A60 ;
17+ " _floor" = 0xA8DF30 ;
18+ " _memmove" = 0xA84A60 ;
19+ " _sprintf" = 0xA82E9D ;
20+ " _sprintf_s" = 0xA82F32 ;
21+ " __purecall" = 0xA82547 ;
22+ " _atoi" = 0xA835CE ;
23+
24+ SECTIONS {
25+ . = __image_base__ + 0x1000 ;
26+ .text : {
27+ *(.text *)
28+ *(.data *)
29+ *(.bss *)
30+ *(.rdata )
31+ }
32+ .ctors : {
33+ _FIRST_CTOR = .;
34+ *(.ctors )
35+ *(.CRT *)
36+ _END_CTOR = .;
37+ }
38+ .clang : {
39+ clangfile.o
40+ }
41+ /DISCARD/ : {
42+ *(.rdata $zzz)
43+ *(.eh_frame *)
44+ *(.reloc )
45+ *(.idata *)
46+ }
47+ }
You can’t perform that action at this time.
0 commit comments