OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af640bf
)
[obj2yaml, COFF] Assert that the alignment is not bogus
author
David Majnemer
<david.majnemer@gmail.com>
Fri, 18 Mar 2016 21:51:14 +0000
(21:51 +0000)
committer
David Majnemer
<david.majnemer@gmail.com>
Fri, 18 Mar 2016 21:51:14 +0000
(21:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263839
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/obj2yaml/coff2yaml.cpp
patch
|
blob
|
history
diff --git
a/tools/obj2yaml/coff2yaml.cpp
b/tools/obj2yaml/coff2yaml.cpp
index
343ed12
..
aea6fe9
100644
(file)
--- a/
tools/obj2yaml/coff2yaml.cpp
+++ b/
tools/obj2yaml/coff2yaml.cpp
@@
-109,6
+109,7
@@
void COFFDumper::dumpSections(unsigned NumSections) {
NewYAMLSection.Header.VirtualAddress = ObjSection.getAddress();
NewYAMLSection.Header.VirtualSize = COFFSection->VirtualSize;
NewYAMLSection.Alignment = ObjSection.getAlignment();
+ assert(NewYAMLSection.Alignment <= 8192);
ArrayRef<uint8_t> sectionData;
if (!ObjSection.isBSS())