PATCH: In gold use mallinfo2 instead of malinfo if it is available

2020-11-11 Thread Duncan Simpson
The latest trunk version of glibc marks mallinfo as depreciated, which breaks the gold build. Apparently the difference between them is that the newer function uses size_t instead of int in the returned structure, so using mallinfo2 is definitely better if it exists. FYI autoconf 2.69 does not

nm x86 bug when configured for linux and solaris

2010-05-11 Thread Duncan Simpson
I configured binutils with $../binutils/src/configure -C --prefix=/usr --enable-shared --enable-gold --with-sysroot=/ --enable-lto --enable-targets=x86_64-unknown-linux-gnu,i686-unknown-linux-gnu,i686-sun-solaris2 and the built version nm says $./nm-new --help says supported targets: elf64-x86

Warning build bfd library wiht gcc 4.6.0+fix

2010-05-10 Thread Duncan Simpson
At least with my configuration gcc 4.6.0 complains about the initialisation but non-use of hasdebug in coff_write_object_contents (defined in bfd/coffcode.h). Since -Werror is in effect this stops the build. The attached oatch fixes this problem by adding hasdebug=hasdebug; if the only use of has