[PATCH,V6 00/10] Definition and Implementation of CTF Frame format

Nick Clifton nickc@redhat.com
Mon Aug 15 14:25:43 GMT 2022


Hi Indu,

   Right - with all of the patches applied I am seeing a build problem
   for 32-bit x86 targets:

bfd/elfxx-x86.c: In function '_bfd_x86_elf_write_ctf_frame_plt':
bfd/elfxx-x86.c:1954:51: error: passing argument 2 of 'ctf_frame_write_encoder' from incompatible pointer type [-Werror=incompatible-pointer-types]
  1954 |   void *contents = ctf_frame_write_encoder (ectx, &sec_size, &err);
       |                                                   ^~~~~~~~~
       |                                                   |
       |                                                   bfd_size_type * {aka long unsigned int *}
In file included from bfd/elfxx-x86.h:33,
                  from bfd/elfxx-x86.c:21:
include/ctf-frame-api.h:207:34: note: expected 'size_t *' {aka 'unsigned int *'} but argument is of type 'bfd_size_type *' {aka 'long unsigned int *'}
   207 |                          size_t *encoded_size, int *errp);
       |                          ~~~~~~~~^~~~~~~~~~~~

And later on:

bfd/elf-ctf-frame.c: In function '_bfd_elf_write_section_ctf_frame':
bfd/elf-ctf-frame.c:511:48: error: passing argument 2 of 'ctf_frame_write_encoder' from incompatible pointer type [-Werror=incompatible-pointer-types]
   511 |   contents = ctf_frame_write_encoder (cfe_ctx, &sec_size, &err);
       |                                                ^~~~~~~~~
       |                                                |
       |                                                bfd_size_type * {aka long unsigned int *}
In file included from bfd/elf-ctf-frame.c:25:
include/ctf-frame-api.h:207:34: note: expected 'size_t *' {aka 'unsigned int *'} but argument is of type 'bfd_size_type *' {aka 'long unsigned int *'}
   207 |                          size_t *encoded_size, int *errp);
       |                          ~~~~~~~~^~~~~~~~~~~~

   This is for a target configured as --target=i686-pc-linux-gnu.

Cheers
   Nick



More information about the Binutils mailing list