elf

wine can't load my custom build-in dll and report “call to unimplemented function”

匿名 (未验证) 提交于 2019-12-03 01:40:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I can't login WINEHQ Bugzilla, so I ask here and this is the requirement: We have a windows app which we have exe source code, and it used ATL. The dlls the exe depends require some special device, but mostly they have linux version. Now we need to port the windows app to linux. My finally try: write a middle dll to wrap some lib which already is cross platform, the exe will call new middle dll, and I name the middle dll is "WINE custom build-in dll". CUSTOM means I compile this dll.so standalone by winemaker. Everything is fine until run it

glibc: elf file OS ABI invalid

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: downloaded and compiled glibc-2.13. when i try to run a sample C program which does a malloc(). I get following error elf file OS ABI invalid Can anybody please pass my any pointer helpful in resolving this issue.Please note that my kernel version is linux-2.6.35.9 回答1: It's not your kernel version that's the problem. The loader on your system does not support the new Linux ABI. Until relatively recently, Linux ELF binaries used the System V ABI. Recently, in support of STT_GNU_IFUNC, the Linux ABI was added. You would have to update your

wrong ELF class: ELFCLASS32

匿名 (未验证) 提交于 2019-12-03 01:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm getting this error pointing to some .so file when running my application on a Solaris machine. However, the application runs just fine in my Windows machine. If I'm not mistaken, my application is expecting for the 64-bit version but I only have a 32-bit version of the .so file in the Solaris machine. Is there a way I can fix this so it will use the 32-bit version instead? I understand it has nothing to do with the bytecodes but probably with the JVM. I tried running using -d32 or -d64 but it has no effect. UPDATE: This is the exact

What does this error mean: invalid ELF header

匿名 (未验证) 提交于 2019-12-03 01:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm getting an IMPORT ERROR with the following error message in Django debug mode /usr/local/lib/python2.6/dist-packages/lxml-2.3-py2.6-win32.egg/lxml/objectify.pyd: invalid ELF header What does this mean and how do I fix it? Google is revealing not very much at the moment. This error is coming from this package I am using in my Django app Update I'm using ubuntu and Python2.6 回答1: The error means the objectify.pyd is not a valid shared library. You seem to have lxml compiled for different version of python from what you are running.

“invalid ELF header” when using the nodejs “ref” module on AWS Lambda

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've just uploaded a zip to AWS Lambda which included the "ref" ( https://www.npmjs.com/package/ref ), which is needed to validate an iOS Game Center authentication token ( How to authenticate Game Center User from 3rd party node.js server ). Unfortunately invoking it results in the "invalid ELF header" error, { "errorMessage": "/var/task/node_modules/ref/build/Release/binding.node: invalid ELF header", "errorType": "Error", "stackTrace": [ "Module.load (module.js:356:32)", "Function.Module._load (module.js:312:12)", "Module.require (module

Add source code to elf file

匿名 (未验证) 提交于 2019-12-03 01:22:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to add my C++ source code to the corresponding elf binary file and I'm looking for the best way to do this. (I'm using several versions of my code and not every version should be committed into svn). Can I just append the source code without destroying the elf file using bash's >> operator? Or is objcopy --add-section a way to do this? By the way, is there a better idea that just grep 'ing all #include lines recursively from the source code files to determine ALL source code files that are used? 回答1: If you're using gcc you could use

bcrypt invalid elf header when running node app

匿名 (未验证) 提交于 2019-12-03 01:06:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working on a nodejs project for school. I wasn't able to install bcrypt with npm so i installed bcrypt-nodejs and the project worked fine yesterday. But today, when I do a "node app" i have this error : /.../node_modules/bcrypt/node_modules/bindings/bindings.js:79 throw e ^ Error: /.../node_modules/bcrypt/build/Release/bcrypt_lib.node: invalid ELF header at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at bindings (/.../node_modules/bcrypt

从程序员角度来看ELF文件

匿名 (未验证) 提交于 2019-12-03 00:37:01
1 介绍 ELF文件是一种linux/unix上通用的可执行文件格式,其比a.out和COFF二进制格式有更多的灵活性和功能。 2 类型 三种类型: (1)可执行文件,包含代码和数据,指定了进程的地址空间分布; (2)可重定位文件,包含代码和数据,用于被其他的可重定位文件或者共享库文件链接使用; (3)共享库文件,包含代码和数据,在静态链接和动态链接时,被链接工具ld使用,动态链接库一般以.so结尾。 ELF文件最有用的地方在于其内部的section结构。 3 .init 和 .fini section介绍 3.1 概述 (1)ELF系统加载一个ELF文件到内存中,需要一些段的信息来构建该进程的虚拟地址空检结构的分布,一个段包括很多的section。 (2)一个ELF文件包括由section组成的数组,数组中有一些很重要的section需要被程序员理解:.fini section,该节中包括一个进程正常退出需要执行的代码;.init section,该节包括进程开始真正执行前需要执行的代码,即main函数之前。 当一个函数被放到.init section中的时候,那么该函数将会在main函数执行前被执行;当一个函数被放置到.fini sction中的时候,那么该函数将会在main函数返回后执行。 因此,构造函数和析构函数可以在这两个节中执行。 3.2 C+

从程序员角度来看ELF文件

匿名 (未验证) 提交于 2019-12-03 00:37:01
1 介绍 ELF文件是一种linux/unix上通用的可执行文件格式,其比a.out和COFF二进制格式有更多的灵活性和功能。 2 类型 三种类型: (1)可执行文件,包含代码和数据,指定了进程的地址空间分布; (2)可重定位文件,包含代码和数据,用于被其他的可重定位文件或者共享库文件链接使用; (3)共享库文件,包含代码和数据,在静态链接和动态链接时,被链接工具ld使用,动态链接库一般以.so结尾。 ELF文件最有用的地方在于其内部的section结构。 3 .init 和 .fini section介绍 3.1 概述 (1)ELF系统加载一个ELF文件到内存中,需要一些段的信息来构建该进程的虚拟地址空检结构的分布,一个段包括很多的section。 (2)一个ELF文件包括由section组成的数组,数组中有一些很重要的section需要被程序员理解:.fini section,该节中包括一个进程正常退出需要执行的代码;.init section,该节包括进程开始真正执行前需要执行的代码,即main函数之前。 当一个函数被放到.init section中的时候,那么该函数将会在main函数执行前被执行;当一个函数被放置到.fini sction中的时候,那么该函数将会在main函数返回后执行。 因此,构造函数和析构函数可以在这两个节中执行。 3.2 C+

Any tool/software in windows for viewing ELF file format? [closed]

我与影子孤独终老i 提交于 2019-12-03 00:06:07
There are lots of PE file browsers. Here is a list of good ones if you are interested: PE File format viewers: PE Explorer http://www.pe-explorer.com/ PE VIew: http://www.magma.ca/~wjr/ PEBrowse Professional http://www.smidgeonsoft.prohosting.com/pebrowse-pro-file-viewer.html PE Browse Professional Interactive - http://www.smidgeonsoft.prohosting.com/pebrowse-pro-interactive-debugger.html I'm still working on windows & I want to view the ELF files. Are there any tools? I'm googling but couldn't find any till now. bdmcbri readelf and objdump are both excellent utilities if you are on a Unix box