File tree Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -1940,6 +1940,7 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
1940
1940
parseMerge (" .didat=.rdata" );
1941
1941
parseMerge (" .edata=.rdata" );
1942
1942
parseMerge (" .xdata=.rdata" );
1943
+ parseMerge (" .00cfg=.rdata" );
1943
1944
parseMerge (" .bss=.data" );
1944
1945
1945
1946
if (config->mingw ) {
Original file line number Diff line number Diff line change 1
- .section .rdata ,"dr"
1
+ .section .00cfg ,"dr"
2
2
.globl _load_config_used
3
3
.p2align 3 , 0
4
4
_load_config_used:
Original file line number Diff line number Diff line change 1
1
# This is the _load_config_used definition needed for /guard:cf tests.
2
2
3
- .section .rdata ,"dr"
3
+ .section .00cfg ,"dr"
4
4
.globl _load_config_used
5
5
_load_config_used:
6
6
.long 256
Original file line number Diff line number Diff line change
1
+ // REQUIRES: x86
2
+
3
+ // RUN: llvm-mc -filetype=obj -triple=x86_64-windows %s -o %t-x86_64.obj
4
+ // RUN: llvm-mc -filetype=obj -triple=i686-windows %s -o %t-x86.obj
5
+ // RUN: lld-link -machine:amd64 -out:%t-x86_64.dll %t-x86_64.obj -dll -noentry
6
+ // RUN: lld-link -machine:x86 -out:%t-x86.dll %t-x86.obj -dll -noentry -safeseh:no
7
+
8
+ // RUN: llvm-readobj --hex-dump=.rdata %t-x86_64.dll | FileCheck %s -check-prefix=RDATA
9
+ // RUN: llvm-readobj --hex-dump=.rdata %t-x86.dll | FileCheck %s -check-prefix=RDATA
10
+ // RDATA: 78563412
11
+
12
+ // RUN: llvm-readobj --sections %t-x86_64.dll | FileCheck %s -check-prefix=SECTIONS
13
+ // RUN: llvm-readobj --sections %t-x86.dll | FileCheck %s -check-prefix=SECTIONS
14
+ // SECTIONS-NOT: .00cfg
15
+
16
+ .section ".00cfg" , "dr"
17
+ .long 0x12345678
You can’t perform that action at this time.
0 commit comments