File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
lib/ExecutionEngine/RuntimeDyld/Targets
test/ExecutionEngine/RuntimeDyld/X86 Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,13 @@ class RuntimeDyldCOFFX86_64 : public RuntimeDyldCOFF {
134
134
break ;
135
135
}
136
136
137
+ case COFF::IMAGE_REL_AMD64_SECTION: {
138
+ assert (static_cast <int16_t >(RE.SectionID ) <= INT16_MAX && " Relocation overflow" );
139
+ assert (static_cast <int16_t >(RE.SectionID ) >= INT16_MIN && " Relocation underflow" );
140
+ writeBytesUnaligned (RE.SectionID , Target, 2 );
141
+ break ;
142
+ }
143
+
137
144
default :
138
145
llvm_unreachable (" Relocation type not implemented yet!" );
139
146
break ;
Original file line number Diff line number Diff line change 4
4
# RUN: -dummy-extern external_data=0x2 -verify -check=%s %t/COFF_x86_64.o
5
5
6
6
7
+ .section section,"rx"
8
+ section:
9
+ .long 0
10
+ Lreloc:
11
+ .long 0
12
+ # rtdyld-check: *{2}Lreloc = 1
13
+ .reloc 4 , secidx, section+4
14
+
15
+
7
16
.text
8
17
.def F;
9
18
.scl 2 ;
You can’t perform that action at this time.
0 commit comments