[PATCH 3/3] binutils: Make smart_rename safe too

Sebastian Huber sebastian.huber@embedded-brains.de
Fri Dec 11 12:10:01 GMT 2020


Hello Nick,

On 11/12/2020 12:43, Nick Clifton wrote:
> Hi Sebastian,
> 
>>> +  else if (ofd == -1 || fstat (fileno (iarch->iostream), 
>>> &target_stat) != 0)
> 
>> I get a compiler error on FreeBSD 12 with this change:
>> ../../sourceware-mirror-binutils-gdb-4483a8e/binutils/ar.c:1308:32: 
>> error: member reference base type 'void' is not a structure or union
> 
> Does this patch resolve the issue for you ?

thanks for the patch. It partially resolved the issue. With the attached 
patch it works on FreeBSD 12 (objcopy.c was missing in your patch).

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ar.fileno.2.patch
Type: text/x-patch
Size: 1608 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20201211/1891f61e/attachment.bin>


More information about the Binutils mailing list