windows 如何使用/安装 GNU binutils (objdump)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11054534/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 09:36:19  来源:igfitidea点击:

How to use/install GNU binutils (objdump)

windowscygwingnubinutilsobjdump

提问by Tono Nam

I need to use the objdump and readelf commands in my application that runs on windows. I know I can install cygwin in order to use them. The reason why I don't want to use cygwin is because I want to make it essay to deploy. Plus I don't know how to make a silent install of cygwin. As a result I believe that what I need is GNU Utilities For Win32as the link states those libraries are serverless. "executables do only depend on the Microsoft C-runtime (msvcrt.dll) and not an emulation layer like that provided by Cygwin tools"

我需要在 Windows 上运行的应用程序中使用 objdump 和 readelf 命令。我知道我可以安装 cygwin 来使用它们。之所以不想用cygwin,是想把它写成essay来部署。另外我不知道如何静默安装cygwin。因此,我相信我需要的是GNU Utilities For Win32,因为链接指出这些库是无服务器的。“可执行文件仅依赖于 Microsoft C 运行时 (msvcrt.dll),而不依赖于 Cygwin 工具提供的仿真层”

Anyways once I go to that link I don't know how to install it. Specifically I will like to use >this tool<

无论如何,一旦我转到该链接,我不知道如何安装它。具体来说,我想使用>这个工具<

I will appreciate if someone can point me on the right direction of how I will be able to use objdump and readelf (binutils in cygwin) on my application.

如果有人能指出我如何在我的应用程序中使用 objdump 和 readelf(cygwin 中的 binutils)的正确方向,我将不胜感激。

回答by Tono Nam

they are already compiled and they can be downloaded from here!

它们已经编译好了,可以从这里下载

Once downloaded they will be located in the bin directory:

下载后,它们将位于 bin 目录中:

enter image description here

在此处输入图片说明

and then you will use it the same way you use it on linux by passing the same args.

然后通过传递相同的参数,您将像在 linux 上使用它一样使用它。