patch for 2.19 sgi ncc

Nick Clifton nickc@redhat.com
Thu Oct 30 09:07:00 GMT 2008


Hi Jay,

> cache_bread (struct bfd *abfd, void *buf, file_ptr nbytes)
> bfd\cache.c(320): chunk_nread = cache_bread_1 (abfd, buf + nread, chunk_size);
> is not valid C -- math on a void* -- and is rejected by Irix /usr/WorkShop/usr/bin/ncc.

Thanks for catching this.

> D:\src\binutils-2.19\bfd\cache.c(320): chunk_nread = cache_bread_1 (abfd, (char*) buf + nread, chunk_size);

I have gone with this fix.

Cheers
   Nick

bfd/ChangeLog
2008-10-30  Jay Krell  <jay.krell@cornell.edu>

	* cache.c (cache_bread): Cast void * pointer before performing
	arithmetic on it.



More information about the Binutils mailing list