[v2,0/5] readelf: reduce code duplication a little

Message ID 12e85879-b829-4652-9c87-473c0d8f296a@suse.com
Headers
Series readelf: reduce code duplication a little |

Message

Jan Beulich July 31, 2026, 12:09 p.m. UTC
  In the grand scheme of things this isn't much of an improvement
(reduction is only by about 1% LoC), yet avoiding the need to always
edit two places when making a change to certain functionality is
perhaps still a good thing.

1: fold get_{32,64}bit_program_headers()
2: fold get_{32,64}bit_section_headers()
3: fold get_{32,64}bit_elf_symbols()
4: fold get_{32,64}bit_dynamic_section()
5: move some code around

Jan