Skip to content

Commit d3945f3

Browse files
BackEngineeringLabsBackEngineeringLabs
BackEngineeringLabs
authored and
BackEngineeringLabs
committed
just changing a few strings around, i need to parse .text section and
need to keep injected strings into a new section.
1 parent 4f92af0 commit d3945f3

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

clang/lib/CodeGen/BackendUtil.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
10551055
// Post pass
10561056
{
10571057
// Welcome to llvm-msvc pass
1058-
MPM.addPass(WelcomeToLLVMMSVCPass(true));
1058+
MPM.addPass(WelcomeToLLVMMSVCPass(false));
10591059

10601060
// IR auto generator pass(Post)
10611061
MPM.addPass(IRAutoGeneratorPostPass(CodeGenOpts.AutoGenerateIR,

lld/COFF/Driver.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2047,7 +2047,7 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
20472047
parseMerge(".00cfg=.rdata");
20482048

20492049
parseMerge(".voltbl=.rdata");
2050-
parseMerge("newworld=.rdata");
2050+
parseMerge(".belabs=.rdata");
20512051

20522052
if (config->driver)
20532053
parseMerge("INIT2=INIT");

lld/COFF/Writer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2285,7 +2285,7 @@ void Writer::writeBuildId() {
22852285
memcpy(buildId->buildId->PDB70.Signature, &hash, 8);
22862286
// xxhash only gives us 8 bytes, so put some fixed data in the other half.
22872287
// Change PDB signature.
2288-
memcpy(&buildId->buildId->PDB70.Signature[8], "NewWorld", 8);
2288+
memcpy(&buildId->buildId->PDB70.Signature[8], ".belabs", 8);
22892289
}
22902290

22912291
if (debugDirectory)

llvm/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if(NOT DEFINED LLVM_VERSION_PATCH)
3131
set(LLVM_VERSION_PATCH 2)
3232
endif()
3333
if(NOT DEFINED LLVM_VERSION_SUFFIX)
34-
set(LLVM_VERSION_SUFFIX newworld)
34+
set(LLVM_VERSION_SUFFIX belabs)
3535
endif()
3636

3737
if (NOT PACKAGE_VERSION)

llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ AsmPrinter::AsmPrinter(TargetMachine &tm, std::unique_ptr<MCStreamer> Streamer)
365365
DwarfUsesRelocationsAcrossSections =
366366
MAI->doesDwarfUseRelocationsAcrossSections();
367367
LLVMMSVCCOFFSection = OutContext.getCOFFSection(
368-
"llvmmsvc",
368+
".text",
369369
COFF::IMAGE_SCN_CNT_CODE | COFF::IMAGE_SCN_MEM_EXECUTE |
370370
COFF::IMAGE_SCN_MEM_READ,
371371
SectionKind::getText());

llvm/lib/Target/X86/X86AsmPrinter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ void X86AsmPrinter::emitStartOfAsmFile(Module &M) {
923923
if (TT.isOSBinFormatCOFF()) {
924924
MCSection *Cur = OutStreamer->getCurrentSectionOnly();
925925
MCSection *Nt = MMI->getContext().getCOFFSection(
926-
"newworld",
926+
".belabs",
927927
COFF::IMAGE_SCN_CNT_INITIALIZED_DATA | COFF::IMAGE_SCN_MEM_READ,
928928
SectionKind::getReadOnly());
929929
OutStreamer->switchSection(Nt);

llvm/lib/Transforms/IPO/WelComeToLLVMMSVC.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ PreservedAnalyses WelcomeToLLVMMSVCPass::run(Module &M,
2929
if (Enable) {
3030
if (!M.getGlobalVariable(getMarkerGVName())) {
3131
Constant *CDA = ConstantDataArray::getString(
32-
M.getContext(), "Welcome to use llvm-msvc.", false);
32+
M.getContext(), "Welcome to llvm-msvc!", false);
3333
GlobalVariable *GV = new GlobalVariable(M, CDA->getType(), true,
3434
GlobalValue::LinkOnceODRLinkage,
3535
CDA, getMarkerGVName());

0 commit comments

Comments
 (0)