@@ -237,12 +237,11 @@ UseGnuStack("use-gnu-stack",
237
237
cl::ZeroOrMore,
238
238
cl::cat(BoltCategory));
239
239
240
- static cl::opt<uint64_t >
241
- CustomAllocationVMA (" custom-allocation-vma" ,
242
- cl::desc (" use a custom address at which new code will be put, "
243
- " bypassing BOLT's logic to detect where to put code" ),
244
- cl::ZeroOrMore,
245
- cl::cat(BoltCategory));
240
+ static cl::opt<uint64_t > CustomAllocationVMA (
241
+ " custom-allocation-vma" ,
242
+ cl::desc (" use a custom address at which new code will be put, "
243
+ " bypassing BOLT's logic to detect where to put code" ),
244
+ cl::ZeroOrMore, cl::cat(BoltCategory));
246
245
247
246
static cl::opt<bool >
248
247
SequentialDisassembly (" sequential-disassembly" ,
@@ -607,14 +606,14 @@ Error RewriteInstance::discoverStorage() {
607
606
// seems off.
608
607
for (const ELF64LE::Phdr &Phdr : PHs) {
609
608
switch (Phdr.p_type ) {
610
- case ELF::PT_LOAD:
611
- if (NextAvailableAddress >= Phdr.p_vaddr &&
612
- NextAvailableAddress < Phdr.p_vaddr + Phdr.p_memsz ) {
613
- BC->errs () << " BOLT-WARNING: user-supplied allocation vma 0x"
614
- << Twine::utohexstr (NextAvailableAddress)
615
- << " conflicts with ELF segment at 0x"
616
- << Twine::utohexstr (Phdr.p_vaddr ) << " \n " ;
617
- }
609
+ case ELF::PT_LOAD:
610
+ if (NextAvailableAddress >= Phdr.p_vaddr &&
611
+ NextAvailableAddress < Phdr.p_vaddr + Phdr.p_memsz ) {
612
+ BC->errs () << " BOLT-WARNING: user-supplied allocation vma 0x"
613
+ << Twine::utohexstr (NextAvailableAddress)
614
+ << " conflicts with ELF segment at 0x"
615
+ << Twine::utohexstr (Phdr.p_vaddr ) << " \n " ;
616
+ }
618
617
}
619
618
}
620
619
}
0 commit comments