summaryrefslogtreecommitdiff
path: root/lib/ffi/library.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ffi/library.rb')
-rw-r--r--lib/ffi/library.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ffi/library.rb b/lib/ffi/library.rb
index fcb8046..a09cb92 100644
--- a/lib/ffi/library.rb
+++ b/lib/ffi/library.rb
@@ -135,8 +135,8 @@ module FFI
rescue Exception => ex
ldscript = false
- if ex.message =~ /(([^ \t()])+\.so([^ \t:()])*):([ \t])*invalid ELF header/
- if File.read($1) =~ /GROUP *\( *([^ \)]+) *\)/
+ if ex.message =~ /(([^ \t()])+\.so([^ \t:()])*):([ \t])*(invalid ELF header|file too short)/
+ if File.read($1) =~ /(?:GROUP|INPUT) *\( *([^ \)]+)/
libname = $1
ldscript = true
end