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

"H.J. Lu" <[email protected]> Mon, 27 Jul 2026 20:12:40 +0800
Newsgroups gmane.comp.gnu.binutils
Message-ID <CAMe9rOqwqKjCUvPtO_WU85K4s99XDOEt60i4+=wGgaOg=PSHiQ@mail.gmail.com>
On Mon, Jul 27, 2026 at 8:08 PM Jan Beulich <[email protected]> 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.