[PECOFF][Writer] Use a constant instead of a magic number.
llvm-svn: 185128
This commit is contained in:
parent
157f34bd31
commit
d059f360a3
|
|
@ -448,7 +448,7 @@ public:
|
||||||
RDataSectionChunk(const File &linkedFile, SectionHeaderTableChunk *table)
|
RDataSectionChunk(const File &linkedFile, SectionHeaderTableChunk *table)
|
||||||
: SectionChunk(table, ".rdata", characteristics) {
|
: SectionChunk(table, ".rdata", characteristics) {
|
||||||
// The data section should be aligned to disk sector.
|
// The data section should be aligned to disk sector.
|
||||||
_align = 512;
|
_align = SECTOR_SIZE;
|
||||||
|
|
||||||
// Extract executable atoms from the linked file and append them to this
|
// Extract executable atoms from the linked file and append them to this
|
||||||
// section.
|
// section.
|
||||||
|
|
@ -478,7 +478,7 @@ public:
|
||||||
DataSectionChunk(const File &linkedFile, SectionHeaderTableChunk *table)
|
DataSectionChunk(const File &linkedFile, SectionHeaderTableChunk *table)
|
||||||
: SectionChunk(table, ".data", characteristics) {
|
: SectionChunk(table, ".data", characteristics) {
|
||||||
// The data section should be aligned to disk sector.
|
// The data section should be aligned to disk sector.
|
||||||
_align = 512;
|
_align = SECTOR_SIZE;
|
||||||
|
|
||||||
// Extract executable atoms from the linked file and append them to this
|
// Extract executable atoms from the linked file and append them to this
|
||||||
// section.
|
// section.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue