简体   繁体   中英

segfault on ARM/Linux

I have an application (Embedded OPC-UA server) compiled using "arm-none-linux-gnueabi-" cross compiler tool chain.

The application runs as expected on Beagle Bone Black (GNU/Linux).

When I try to execute the application on a target platform similar to Beagle-Bone-Black with same processor the application throws a seg-fault. It doesn't even execute the first printf instruction in main.

What could be the Hardware/software constraints causing this behaviour ? Is it possible because there is not enough free memory in RAM ?

When I try to execute the application on a target platform similar to Beagle->Bone-Black with same processor the application throws a seg-fault. It doesn't >even execute the first printf instruction in main.

looks like ld-linux problem. Open your binary in any editor, and look at substring ld-linux , for example on amd64 it looks like this: /lib64/ld-linux-x86-64.so.2 , then check on similar platform, I suppose that it have different path of ld-linux , if you lucky then you just need create soft symlink, if not you have to rebuild your application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM