LINK : warning LNK4078: multiple ".text" sections found with different attributes (40000040)
来源:互联网 发布:c 执行sql语句 编辑:程序博客网 时间:2024/05/11 14:49
前言
找PE导入表修复资料时, 找到一个开源工程.
只有.mak文件, 用命令行编译的, nmake /f xx.mak /all
编译出来后, 有4078警告:
LINK : warning LNK4078: multiple “.text” sections found with different attributes (40000040)
去.mak中看, 原来是编译出来后要合并节(为了节省空间, 看看人家的极致追求…). 不合并节, 就没有LNK4078警告.
在.mak中, 弄了个宏开关, 去掉警告且保留原来的编译脚本.
记录
MINI_SIZE_CFG_VAL = 666# to disable LNK4078, please rem MINI_SIZE_CFG# MINI_SIZE_CFG = $(MINI_SIZE_CFG_VAL)!if "$(MINI_SIZE_CFG)" == "$(MINI_SIZE_CFG_VAL)"# old config# LINK : warning LNK4078: multiple ".text" sections found with different attributes (40000040)LFLAGS = /NOLOGO /FIXED /MERGE:.idata=.data /MERGE:.rdata=.text \ /SUBSYSTEM:console !else# new config, modify by me, to disable warning LNK4078LFLAGS = /NOLOGO /FIXED \ /SUBSYSTEM:console !endif
0 0
- LINK : warning LNK4078: multiple ".text" sections found with different attributes (40000040)
- Multiple methods named 'count:' found with mismatched result, parameter type or attributes
- illegal to have multiple occurrences of contentType with different values (old: text/html; charset=
- Page directive: illegal to have multiple occurrences of contentType with different values (old: text
- Page directive: illegal to have multiple occurrences of contentType with different values (old: text
- Java text with different colors
- selector of text and background should using different attributes
- QTextEdit with different text colors (Qt / C++)
- Multiple params with html:link tag
- Warning: Unexpected text found in layout file....
- illegal to have multiple occurrences of contentType with different values
- Load multiple configuration files from different directories with Spring Boot
- 第19~20章 Keyboard Events & Drawing Text with Attributes
- Publishing failed with multiple errors File not found:
- WARNING: No mapping found for HTTP request with URI
- Andriod开发-Multiple annotations found at this line:Unexpected text found in layout
- Text link
- How to add multiple static library files with different architectures to Xcode
- web服务器——Http-Server的使用
- 路由配置与管理——BGP路由配置与管理2
- 【寒假任务】 洛谷1068 分数线划定
- Activity与Fragment通过Handler交互
- 【解题报告】Codeforces Round #390 (Div. 2)
- LINK : warning LNK4078: multiple ".text" sections found with different attributes (40000040)
- UWP开发技巧:实现SMB协议操作文件服务器文件
- Python杂记
- Eclipse的web项目中增加source folder出现Project is not a Java project的错误
- 浅谈java注入安全
- Java中线程实现的两种方法
- 【解题报告】Codeforces Round #384 (Div. 2)(先占个位置里面暂时什么都没有)
- Dubbo源代码实现五:RPC中的服务消费方实现
- PHP性能优化