File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ class Chunk {
59
59
SectionKind,
60
60
SectionECKind,
61
61
OtherKind,
62
- ImportThunkKind
62
+ ImportThunkKind,
63
+ ECExportThunkKind
63
64
};
64
65
Kind kind () const { return chunkKind; }
65
66
@@ -827,7 +828,10 @@ static const uint8_t ECExportThunkCode[] = {
827
828
828
829
class ECExportThunkChunk : public NonSectionCodeChunk {
829
830
public:
830
- explicit ECExportThunkChunk (Defined *targetSym) : target(targetSym) {}
831
+ explicit ECExportThunkChunk (Defined *targetSym)
832
+ : NonSectionCodeChunk(ECExportThunkKind), target(targetSym) {}
833
+ static bool classof (const Chunk *c) { return c->kind () == ECExportThunkKind; }
834
+
831
835
size_t getSize () const override { return sizeof (ECExportThunkCode); };
832
836
void writeTo (uint8_t *buf) const override ;
833
837
MachineTypes getMachine () const override { return AMD64; }
Original file line number Diff line number Diff line change 1
1
# REQUIRES: x86
2
2
# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t.obj %s
3
- # RUN: lld-link -debug:symtab -entry:main %t.obj -build-id -Brepro -out:%t.exe
3
+ # RUN: lld-link -debug:symtab -entry:main %t.obj -build-id -Brepro -out:%t.exe -guard:cf
4
4
# RUN: llvm-objdump -s -t %t.exe | FileCheck %s
5
5
6
6
# Check __buildid points to 0x14000203c which is after the signature RSDS.
21
21
.section .bss ,"bw" ,discard ,__buildid
22
22
.global __buildid
23
23
__buildid:
24
+
25
+ .data
26
+ .quad __buildid
You can’t perform that action at this time.
0 commit comments