elf_utils 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca6fa495dbda4f982713d3cd015abe94c0a292f0cfcf44a91cc13aeef85a4429
4
- data.tar.gz: 6bbfb945c6cb8240f71f92c2b0db81f8df94c8837f76d9adc1a52613781ce663
3
+ metadata.gz: a259cc784e0cde49b3f671fe36b45217088fb8218d536095e27ec419cd17d484
4
+ data.tar.gz: 40948dcdee77bcf311cb5f0e868050bbee08b5e2720b242e7b9efb0331d8ff10
5
5
  SHA512:
6
- metadata.gz: c0ed80f8d44d903cc4aa5835612b1bd9e6930643a7f5f371589caad5f97564832b90458fdb4628524dfb0f9a68f27ef8ee10d8098aedbf4e86a6220b6be04691
7
- data.tar.gz: 3458490318399305bbefe45d957af6b4f4e8d2bb2b7a23f52efba27fb62c238d3ed69ef7f4c3909cf4bc28736fee6abd627ced01a868a1186fb2274c616e8034
6
+ metadata.gz: ae5b6387e4a1bdb024323f7cbf71cf6a72eccbddb9c39314e0dd791e36e8bf2a616a0fd3faf6ad9ac2a0d41c48aef219b267c385674582851745759793491180
7
+ data.tar.gz: f8e383017f3ce23629660b1ed1af929dce091b7457f9f51d55ce7fe717ce37998ff2c9b9d357b16e5ce061533b234ae18566d80667a0824f0e7e49af1e2667d9
@@ -331,6 +331,10 @@ module ElfUtils
331
331
  offset = loc + type.size
332
332
  end
333
333
 
334
+ # if there's tail padding to fit a specific alignment, add it here
335
+ tail = self[:byte_size] - offset
336
+ struct.pad(tail) if tail > 0
337
+
334
338
  # ensure we include the bitfield if it was the last element
335
339
  struct.attribute(bitfield.build) if bitfield
336
340
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ElfUtils
4
- VERSION = "0.3.2"
4
+ VERSION = "0.3.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elf_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David M. Lary
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-06-10 00:00:00.000000000 Z
11
+ date: 2025-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ctypes