Can't load .so file in AWS

Hello everyone

I try to upload lambda function using serverless, and call it.
In the function, A so file is loaded, but it didn’t work correctly,
The .so file is downloaded from S3, and saved in tmp.

Error message is follow:

/tmp/xxx.so: /tmp/xxx.so: ELF load command past end of
file: java.lang.UnsatisfiedLinkError
java.lang.UnsatisfiedLinkError: /tmp/xxx.so: /tmp/xxx.so:
ELF load command past end of file

I want to know reason of error, and way to remove it.

Best regards,

aaa

Can you share what’s the output of file xxx.so when you run it locally?