Building SDL on ARM

I’m having problems running plaympeg on an ARM platform. The error I get is:
$ ./plaympeg topgun3d.mpq
BUG IN DYNAMIC LINKER ld.so: …/sysdeps/arm/dl-machine.h: 460:
elf_machine_rel: Assertion `! “unexpected dynamic reloc type”’ failed!

I think the problem is in the building the of SDL library on ARM. I’ve tried
building it on both a NetWinder and skiffcluster4.handhelds.org and have the
same problem. I run on either machine:
$ ./configure
$ make

and this creates a SDL library (in src/.libs). When I run:
$ objdump -R src/.libs/libSDL-1.1.so.0

it shows that the X11 libs have relocation types R_ARM_PC24 - which, I
believe, is causing this problem.

I’ve read the FAQS and mail list archives… Didn’t find anything…

BTW: When I statically link all the libraries, everything works.

I can provide more details if it would help.

Thanks in advance,
Randy Sartin
mailto:@Randy_Sartin
-------------- next part --------------
A non-text attachment was scrubbed…
Name: Randy Sartin.vcf
Type: text/x-vcard
Size: 448 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20001128/a09aee98/attachment.vcf

I’m having problems running plaympeg on an ARM platform. The error I get is:
$ ./plaympeg topgun3d.mpq
BUG IN DYNAMIC LINKER ld.so: …/sysdeps/arm/dl-machine.h: 460:
elf_machine_rel: Assertion `! “unexpected dynamic reloc type”’ failed!

$ objdump -R src/.libs/libSDL-1.1.so.0

it shows that the X11 libs have relocation types R_ARM_PC24 - which, I
believe, is causing this problem.

This sounds like a bug in the dynamic linking of the SDL library.
I’m using libtool to generate the libraries. Can you check with
the ARM developer mailing lists to see if this is a known problem?

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

I will check the ARM lists again… There wasn’t anything about this on the
ARM list (that I could find) as of about Dec 1. Since then I’ve found out
that the NetWinder uses non-versioned libraries (which is different than
other platforms) and the NetWinder is the platform that I was building SDL
on. I’m thinking that maybe linking SDL with non-versioned libraries does
this?

Randy Sartin> ----- Original Message -----

From: owner-sdl@lokigames.com [mailto:owner-sdl at lokigames.com]On Behalf
Of Sam Lantinga
Sent: Saturday, December 16, 2000 5:45 AM
To: sdl at lokigames.com
Subject: Re: [SDL] Building SDL on ARM

I’m having problems running plaympeg on an ARM platform. The error I get
is:
$ ./plaympeg topgun3d.mpq
BUG IN DYNAMIC LINKER ld.so: …/sysdeps/arm/dl-machine.h: 460:
elf_machine_rel: Assertion `! “unexpected dynamic reloc type”’ failed!

$ objdump -R src/.libs/libSDL-1.1.so.0

it shows that the X11 libs have relocation types R_ARM_PC24 - which, I
believe, is causing this problem.

This sounds like a bug in the dynamic linking of the SDL library.
I’m using libtool to generate the libraries. Can you check with
the ARM developer mailing lists to see if this is a known problem?

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software