[PATCH 1/5] readelf: fold get_{32,64}bit_program_headers()

H.J. Lu hjl.tools@gmail.com
Mon Jul 27 12:12:40 GMT 2026


On Mon, Jul 27, 2026 at 8:08 PM Jan Beulich <jbeulich@suse.com> wrote:
>
> On 27.07.2026 13:56, Andreas Schwab wrote:
> > On Jul 27 2026, Jan Beulich wrote:
> >
> >> I did consider adding
> >> a new .c file, but I couldn't think of a name which I would be at least
> >> reasonably okay with.
> >
> > Perhaps following the pattern in bfd: readelf-nn.c
>
> And then also generate readelf-32.c and readelf-64.c from it? I'd like to
> avoid introducing new generated files, whenever possible.
>

You don't need to generate readelf-32.c and readelf-64.c.
You can just include readelf-nn.c twice.


-- 
H.J.


More information about the Binutils mailing list