diff options
author | tduehr <td@matasano.com> | 2014-07-01 13:06:02 -0500 |
---|---|---|
committer | tduehr <td@matasano.com> | 2014-07-01 13:06:02 -0500 |
commit | f5bfe5cd80a3c7ec46dd034c06e19aeacce31167 (patch) | |
tree | 6a84edef8294f40514a20e3e0adec2a50b27f4cd | |
parent | 822ee02b11e9407e0345a86cc6e0b298589ded29 (diff) | |
parent | b95cb617c4d2e65c6a5e1cd31caa91875bcfbc5a (diff) | |
download | ffi-f5bfe5cd80a3c7ec46dd034c06e19aeacce31167.tar.gz |
Merge pull request #328 from tduehr/freebsd_fix
Fix library loading on FreeBSD systems
-rw-r--r-- | lib/ffi/library.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ffi/library.rb b/lib/ffi/library.rb index 6823712..4b50eb3 100644 --- a/lib/ffi/library.rb +++ b/lib/ffi/library.rb @@ -114,7 +114,7 @@ module FFI rescue Exception => ex ldscript = false - if ex.message =~ /(([^ \t()])+\.so([^ \t:()])*):([ \t])*(invalid ELF header|file too short)/ + if ex.message =~ /(([^ \t()])+\.so([^ \t:()])*):([ \t])*(invalid ELF header|file too short|invalid file format)/ if File.read($1) =~ /(?:GROUP|INPUT) *\( *([^ \)]+)/ libname = $1 ldscript = true |