Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bad load format error

30 views
Skip to first unread message

anhvuitinh

unread,
May 21, 2010, 12:37:41 PM5/21/10
to
We have an application written in Ada and linked with LynxOS 5.0.
When we ran it, we got the error "Exec: can't load file -- bad load
format".
Does anyone know which could cause the error and how to fix it?

Thanks a lot.
Pete

Steve Watt

unread,
May 21, 2010, 5:48:25 PM5/21/10
to
In article <3a41b755-6c9d-4442...@40g2000pry.googlegroups.com>,

Check the system console to see if there are other hints (unloadable
shared libraries, that kind of thing).

In general, that's caused by a malformed/corrupted ELF file, for
example not for the correct architecture (trying to run an x86
binary on PPC, etc.), or for an unsupported ABI.

It's probable that the Ada compiler settings are incorrect. Can
you build a simple "Hello world!" program?
--
Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5" / 37N 20' 15.3"
Internet: steve @ Watt.COM Whois: SW32-ARIN
Free time? There's no such thing. It just comes in varying prices...

kron

unread,
May 27, 2010, 9:10:42 PM5/27/10
to

Hi Pete,

Try 'ulimit -d 1000000' and 'ulimit -s 1000000' before you start your
ADA-app.

Regards,
Victor.

0 new messages