Merge pull request #17135 from Homebrew/dependabot/bundler/Library/Homebrew/elftools-1.3.1

build(deps): bump elftools from 1.3.0 to 1.3.1 in /Library/Homebrew
This commit is contained in:
Ruoyu Zhong 2024-04-24 02:19:36 +08:00 committed by GitHub
commit 363de631bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
27 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ GEM
highline (~> 2.0.0)
diff-lcs (1.5.1)
docile (1.4.0)
elftools (1.3.0)
elftools (1.3.1)
bindata (~> 2)
erubi (1.12.0)
hana (1.3.7)

View File

@ -40,7 +40,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/commander-4.6.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/diff-lcs-1.5.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/docile-1.4.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/elftools-1.3.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/elftools-1.3.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/erubi-1.12.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/hana-1.3.7/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/json-2.7.2")

View File

@ -290,7 +290,7 @@ module ELFTools
# elf = ELFTools::ELFFile.new(File.open('/bin/cat'))
# elf.offset_from_vma(0x401337)
# #=> 4919 # 0x1337
def offset_from_vma(vma, size = 0)
def offset_from_vma(vma, size = 1)
segments_by_type(:load) do |seg|
return seg.vma_to_offset(vma) if seg.vma_in?(vma, size)
end

View File

@ -2,5 +2,5 @@
module ELFTools
# Current gem version
VERSION = '1.3.0'
VERSION = '1.3.1'
end