**The binary program that I link to with the script below simply cannot execute
I want to merge all SECTIONS as .code**
ENTRY(_nomain)
SECTIONS
{
.= 0x00400000 + SIZEOF_HEADERS;
.code : {*(.text) *(.rdata) *(.idata)}
/DISCARD/ : {*(.comment)}
}
//The code is simple
//Compile with mingw
#include <stdio.h>
#include <stdlib.h>
void nomain()
{
puts("ok");
exit(0);
}
谁知道如何进行正确的链接? 我知道很容易在vc6下合并所有部分。 有什么好的方法使用mingw吗?参数或脚本? 非常感谢您