[PATCH v2] pe/coff - add support for base64 encoded long section names

Nick Clifton nickc@redhat.com
Thu May 25 10:24:50 GMT 2023


Hi Tristan,


> 2023-05-24  Tristan Gingold  <tgingold@free.fr>
> 
>      PR 30444
>      * coffcode.h (coff_write_object_contents): Handle base64 encoding
>      on PE.  Also check for too large string table.
>      * coffgen.c (extract_long_section_name): New function extracted
>      from ...
>      (make_a_section_from_file): ... here.  Add support for base64
>      long section names.
>      (decode_base64): New function.

This patch looks good to me, so "approved - please apply".

I suspect that the issue of NUL padded base64 values might come up in
the future, but if it does, it will have to be with a valid test case
and then we can properly determine what to do.

Cheers
   Nick



More information about the Binutils mailing list