View | Details | Raw Unified | Return to bug 188741
Collapse All | Expand All

(-)lib/ffi/library.rb (-3 / +3 lines)
Lines 114-122 Link Here
114
114
115
            rescue Exception => ex
115
            rescue Exception => ex
116
              ldscript = false
116
              ldscript = false
117
              if ex.message =~ /(([^ \t()])+\.so([^ \t:()])*):([ \t])*invalid ELF header/
117
              if ex.message =~ /(([^ \t()])+\.so([^ \t:()])*):([ \t])*(invalid ELF header|file too short|invalid file format)/
118
                if File.read($1) =~ /GROUP *\( *([^ \)]+) *\)/
118
                if File.read($1) =~ /(?:GROUP|INPUT) *\( *([^\)]+)/
119
                  libname = $1
119
                  libname = $1.split(' ')[0]
120
                  ldscript = true
120
                  ldscript = true
121
                end
121
                end
122
              end
122
              end

Return to bug 188741