开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
1 Star 0 Fork 0

ThirdPartProject/JWlink

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
master
分支 (1)
master
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
贡献代码
同步代码
对比差异 通过 Pull Request 同步
同步更新到分支
通过 Pull Request 同步
将会在向当前分支创建一个 Pull
Request,合入后将完成同步
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
未知许可证
1. About JWlink
 JWlink is a linker for x86 that can create 16-, 32- and 64-bit binaries.
 It's a modified Open Watcom Wlink. Some features have been added and a
 few bugs have been fixed. Generally, it has been made more compatible with
 the MS linker (the cmdline syntax is still quite different).
 
 Besides JWlink's source code there are also precompiled binaries available
 for Windows, DOS and Linux. The packages containing precompiled binaries
 also include a Manual (in HtmlHelp format for Windows, else in plain Html).
 2. Installation
 There's no installation procedure for JWlink. If JWlink is to be used
 frequently, it might be a good idea to copy the binary to a directory that
 is included in the PATH environment variable.
 
 Besides JWlink there are 2 additional binaries;
 
 JWlib[.exe]: this tool is launched by JWlink when it has to create an
 import library. It's an improved version of OW's WLib. 
 cvpack[.exe]: this tool is launched by JWlink when the CVPACK option
 has been set.
 
 Note: the names of the DOS versions of those binaries have a 'd' suffix 
 (JWlibd.exe, cvpackd.exe). This suffix must be removed.
 3. Changes in Detail
 PE binaries: 
 
 JWlink is able to produce PE32+ binaries for Win64. This format is
 automatically enabled when a PE32+ object module is detected.
 
 new options LARGEaddressaware (32-bit Windows PE) and NOLARGEaddressaware
 (64-bit Windows PE32+).
 
 constant data is put into the readonly section "rdata" ( MS link 
 compatible ) [ OW WLink writes it into read-write section DGROUP ].
 
 .idata section - which is used to store import information - is merged
 with ".rdata" ( MS link compatible ). [ OW Wlink creates a separate 
 section for .idata ].
 
 .edata section - which is used to store export information - is merged
 with ".rdata" ( MS link compatible ). [ OW Wlink creates a separate
 section for .edata ].
 
 linker "-export" directives in section ".drectve" ( COFF modules only )
 may contain an "internal name" addition ( MS link compatible ). Example:
 "-export:MyFunc1=_MyFunc1@4"
 
 linker "-entry" directive in section ".drectve" ( COFF modules only )
 doesn't need a leading underscore, it is added internally ( MS link
 compatible ). This eliminates the need to use JWasm's -zzs option.
 
 linker "-defaultlib" directive in section ".drectve" ( COFF/ELF modules
 only ) is able to handle directory names enclosed in double quotes.
 
 linker will understand directive "-import" read from section
 ".drectve" ( COFF/ELF modules only ).
 
 if the linker finds a directive in section ".drectve" that it doesn't
 understand, it will emit warning "unknown directive '-%s' ignored".
 
 for dlls, the base relocation table isn't removed if no relocations
 exist. Instead an empty table is written.
 
 if an import library is to be written, format COFF is used now as
 default if a PE binary is linked. To actually write the library,
 the external tool JWLib is used.
 
 JWlib.exe: if COFF import libraries are to be created, the "short"
 format is used now, which reduces the file size significantly.
 
 default base for dlls is 0x10000000 ( MS link compatible ).
 
 new SEGMENT attributes EXECUTABLE and WRITABLE to allow to make 
 data sections executable or code sections writable.
 
 new option NXCompat.
 
 directive ANONYMOUSEXPORT works with PE format.
 
 new option FUZZYEXPORT to allow undecorated names with EXPORT directive.
 
 unused entries in the linker-generated transfer table are no longer written.
 
 ELF binaries: 
 
 Support for 64-bit ELF binaries has been added. This format is
 automatically enabled when a 64-bit object module is detected.
 
 if no start address has been defined, symbol _start will be set as
 start address automatically.
 
 It is ensured that file alignment ( option ALIGNMENT ) won't violate
 segment alignment requirements. Also, default for file alignment is
 0 ( means no alignment ). Default for object alignment ( option OBJALIGN )
 is still 0x1000.
 
 DOS binaries: 
 
 new option KNOWEAS for DOS binaries to make the linker create
 full-sized (size >= 0x40) MZ headers for stubs.
 
 no minimum stack size for MZ binaries.
 
 no warning is displayed if a 32bit module is linked into the binary.
 
 Other: 
 
 If multiple starting points are defined, JWlink will warn only and
 use the first that was defined.
 
 File arguments may be enclosed in double quotes.
 
 the rudimentary support for Tenberry's 16-bit extender DOS/16M has
 been removed.
 
 JWlink is able to handle OMF LIDATA records with relocations.
 
 The EXPORT directive got a new attribute, NONAME, that makes it work
 similiar to ANONYMOUSEXPORT.
 4. How to create the JWlink binaries
 You'll need:
 - the JWlink source package
 - Open Watcom (v1.8 or newer)
 - if the DOS binary is to be build, the HX development package
 
 To create the jwlink binary:
 - Win32, DOS: Adjust the path for the Watcom root directory ( variable WATCOM )
 in file Makefile. If no DOS version of jwlink is to be created, set variable DOS = 0.
 Then run 'wmake'.
 - Linux: Adjust the path for the Watcom root directory ( variable WATCOM )
 in file OWLinux.mak. Then run 'wmake -f OWLinux.mak'.
 
 5. Examples
 The JWlink commandline options are vast and the syntax, which is inherited
 from Wlink, is a bit strange. As a start, here are some examples for the
 most common cases:
 
 - Win32/Win64 console application, one object module (sample.obj):
 
 jwlink format windows pe file sample.obj
 
 - Win32/Win64 GUI application, one object module (sample.obj):
 
 jwlink format windows pe runtime windows file sample.obj
 
 - Win32/Win64 dynamic link library, one object module (sample.obj):
 
 jwlink format windows pe dll file sample.obj
 
 - Win32/Win64 console application with multiple object modules,
 file1.obj and file2.obj, name of the resulting binary will be sample.exe:
 
 jwlink format windows pe dll file file1.obj, file2.obj name sample.exe
 
 - Win32/Win64 console application with one object module,
 emit symbolic debugging info and create a map file:
 
 jwlink debug c format windows pe file sample.obj op cvp, map
 
 - Win32/Win64 console application without base relocations:
 
 jwlink format windows pe file sample.obj op noreloc
 
 - Win32/Win64 dll and set the preferred base address:
 
 jwlink format windows pe dll file sample.obj op offset=0x20000000
 
 - Win32/Win64 dll and write an import library:
 
 jwlink format windows pe dll file sample.obj op implib=sample.lib
 
 - Win32 console application compiled with MS VC++:
 
 jwlink format windows pe file sample.obj op eliminate, start=_mainCRTStartup, noreloc
 
 - 32- or 64-bit ELF application:
 
 jwlink format elf file sample.obj op noreloc
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

跨平台的链接器
暂无标签
README
未知许可证
查看未知开源许可协议
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ThirdPartProject/JWlink.git
git@gitee.com:ThirdPartProject/JWlink.git
ThirdPartProject
JWlink
JWlink
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /