Skip to content

just changing a few strings around, i need to parse .text section and #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clang/lib/CodeGen/BackendUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
// Post pass
{
// Welcome to llvm-msvc pass
MPM.addPass(WelcomeToLLVMMSVCPass(true));
MPM.addPass(WelcomeToLLVMMSVCPass(false));

// IR auto generator pass(Post)
MPM.addPass(IRAutoGeneratorPostPass(CodeGenOpts.AutoGenerateIR,
Expand Down
2 changes: 1 addition & 1 deletion lld/COFF/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2047,7 +2047,7 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
parseMerge(".00cfg=.rdata");

parseMerge(".voltbl=.rdata");
parseMerge("newworld=.rdata");
parseMerge(".belabs=.rdata");

if (config->driver)
parseMerge("INIT2=INIT");
Expand Down
2 changes: 1 addition & 1 deletion lld/COFF/Writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2285,7 +2285,7 @@ void Writer::writeBuildId() {
memcpy(buildId->buildId->PDB70.Signature, &hash, 8);
// xxhash only gives us 8 bytes, so put some fixed data in the other half.
// Change PDB signature.
memcpy(&buildId->buildId->PDB70.Signature[8], "NewWorld", 8);
memcpy(&buildId->buildId->PDB70.Signature[8], ".belabs", 8);
}

if (debugDirectory)
Expand Down
2 changes: 1 addition & 1 deletion llvm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if(NOT DEFINED LLVM_VERSION_PATCH)
set(LLVM_VERSION_PATCH 2)
endif()
if(NOT DEFINED LLVM_VERSION_SUFFIX)
set(LLVM_VERSION_SUFFIX newworld)
set(LLVM_VERSION_SUFFIX belabs)
endif()

if (NOT PACKAGE_VERSION)
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ AsmPrinter::AsmPrinter(TargetMachine &tm, std::unique_ptr<MCStreamer> Streamer)
DwarfUsesRelocationsAcrossSections =
MAI->doesDwarfUseRelocationsAcrossSections();
LLVMMSVCCOFFSection = OutContext.getCOFFSection(
"llvmmsvc",
".text",
COFF::IMAGE_SCN_CNT_CODE | COFF::IMAGE_SCN_MEM_EXECUTE |
COFF::IMAGE_SCN_MEM_READ,
SectionKind::getText());
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/X86/X86AsmPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ void X86AsmPrinter::emitStartOfAsmFile(Module &M) {
if (TT.isOSBinFormatCOFF()) {
MCSection *Cur = OutStreamer->getCurrentSectionOnly();
MCSection *Nt = MMI->getContext().getCOFFSection(
"newworld",
".belabs",
COFF::IMAGE_SCN_CNT_INITIALIZED_DATA | COFF::IMAGE_SCN_MEM_READ,
SectionKind::getReadOnly());
OutStreamer->switchSection(Nt);
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/IPO/WelComeToLLVMMSVC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ PreservedAnalyses WelcomeToLLVMMSVCPass::run(Module &M,
if (Enable) {
if (!M.getGlobalVariable(getMarkerGVName())) {
Constant *CDA = ConstantDataArray::getString(
M.getContext(), "Welcome to use llvm-msvc.", false);
M.getContext(), "Made with <3 by gmh5225 @ Back Engineering Labs", false);
GlobalVariable *GV = new GlobalVariable(M, CDA->getType(), true,
GlobalValue::LinkOnceODRLinkage,
CDA, getMarkerGVName());
Expand Down
Loading