[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/28630] [mingw] bfd/coffgen.c triggers "cast to pointer fro
clement.chigot at atos dot net
[Bug binutils/28630] [mingw] bfd/coffgen.c triggers "cast to pointer from integer of different size" [-Werror=int-to-pointer-cast]
Mon, 29 Nov 2021 14:07:40 +0000
--- Comment #3 from Clément Chigot <clement.chigot at atos dot net> ---
> So, maybe a better alternative would be to change x_offset (and x_zeroes)
> long to bfd_hostptr_t, too, but I do not know how much havoc this creates for
> code that might expect x_offset being long.
I've tried quickly it's working fine for AIX and doesn't require any other
changes. I've also tried some COFF targets in cross compilation and there
doesn't seem to have any problems too. I'm not sure it's fully relevant though
as it's cross compilation.
However, as you mentioned 'internal_syment' is already using 'bfd_hostptr_t' so
it looks fine to me. But it would need more tests directly on these COFF
targets, which I don't have access or someone who know deeply bfd to see if
it's a possible fix.
You are receiving this mail because:
You are on the CC list for the bug.