[Bug ld/4398] New: relocation R_X86_64_PC32 against 'funcx'; recompile with -fPIC

2007-04-20 Thread evilight at gmail dot com
Product: binutils Version: 2.16,2.17 Component: ld OS: SUSE Linux Enterprise Server 10 (x86_64) - Kernel 2.6.16.21-0.8-smp (64- bit) when I link some object files ,which some of them are compiled by gcc4.1.0 from c code, and others are assemble code compiled by as, while ld them to a shared

[Bug ld/4398] relocation R_X86_64_PC32 against 'funcx'; recompile with -fPIC

2007-04-20 Thread evilight at gmail dot com
--- Additional Comments From evilight at gmail dot com 2007-04-20 10:14 --- Created an attachment (id=1728) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1728&action=view) testcase -- http://sourceware.org/bugzilla/show_bug.cgi?id=4398 --- You are receiving this mail b

[Bug ld/4398] relocation R_X86_64_PC32 against 'funcx'; recompile with -fPIC

2007-04-20 Thread schwab at suse dot de
--- Additional Comments From schwab at suse dot de 2007-04-20 10:44 --- You must use a PIC call. -- What|Removed |Added Status|NEW |RESOLV

[Bug ld/4398] relocation R_X86_64_PC32 against 'funcx'; recompile with -fPIC

2007-04-20 Thread evilight at gmail dot com
--- Additional Comments From evilight at gmail dot com 2007-04-20 11:01 --- (In reply to comment #2) > You must use a PIC call. Could you please describe more details? I also tried this: compile the assemble code with gcc gcc -fPIC -o a.o -c a.s gcc -fPIC -o b.o -c b.c ld -shared a.o

Re: another -Werror failure during build binutils-2.17

2007-04-20 Thread Nick Clifton
Hi Arto, /build/binutils-2.17/binutils/wrstabs.c: In function 'stab_tag_type': /build/binutils-2.17/binutils/wrstabs.c:1297: warning: 'size' is used uninitialized in this function Also fixed last year. See PR 3039 for more information. Cheers Nick _

Re: yet another binutils-2.17 -Werror failure (in gas/read.c)

2007-04-20 Thread Nick Clifton
Hi Arto, and again: Using gcc-4.1.2, build of binutils-2.17 also fails in gas/read.c due to -Werror warning: /build/binutils-2.17/gas/read.c: In function 's_comm_internal': /build/binutils-2.17/gas/read.c:1426: warning: 'stopc' may be used uninitialized in this function Please may I recomm

[Bug binutils/4356] windres fails on files with spaces

2007-04-20 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2007-04-20 14:24 --- Subject: Re: New: windres fails on files with spaces Hi HS, > This does not seem to be fixed in latest CVS because the error is most > obviously in binutils/resrc.c (and similar) in function read_rc_file() and

Re: [Bug binutils/4356] New: windres fails on files with spaces

2007-04-20 Thread Nick Clifton
Hi HS, This does not seem to be fixed in latest CVS because the error is most obviously in binutils/resrc.c (and similar) in function read_rc_file() and look_for_default(): sprintf (cmd, "%s %s %s", preprocessor, preprocargs, filename); The filename argument MUST be surrounded by "", thus thi

[Bug binutils/4356] windres fails on files with spaces

2007-04-20 Thread sattler at mixed-mode dot de
--- Additional Comments From sattler at mixed-mode dot de 2007-04-20 16:31 --- Created an attachment (id=1730) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1730&action=view) Put filenames from command line in quotes to handle spaces correctly > Please could you provide an exam

build of binutils-2.17.50 snapshot fails: bfd/ecoff.c

2007-04-20 Thread anirkko
Hi With the compiler gcc-4.1.2 detects that in file bfd/ecoff.c the uninitialized int rehash on line 3760 is not always set by function ecoff_armap_hash() and the build fails (see below) due to -Werror. best regards, Arto -- ... ... /b

same error twice in bfd/ecoff.c

2007-04-20 Thread anirkko
BTW, same error also on line 3089... (after setting this also to 0, file compiles alright). Arto - Begin Included Message - >From [EMAIL PROTECTED] Fri Apr 20 22:11:48 2007 To: bug-binutils@gnu.org Subject: build of binutils-2.17.50 snapshot fails: bfd/ecoff.c Hi With the compiler gc

binutils-2.17.50 snapshot build failure: bfd/elf32-m68k.c

2007-04-20 Thread anirkko
Hi in snapshot binutils-2.17.50 the build fails in bfd/elf32-m68hc1x.c because alloca is not defined (when using "configure --enable-targets=all" on sun-sparc-solaris2.6) Workaround: #include on my platform (Solaris 2.6) Greets, Arto -

binutils-2.17.50 snapshot fails: bfd/ieee.c

2007-04-20 Thread anirkko
Hi 3 -Werror failures in bfd/ieee.c (full output of first one below, the other ones essentially the same...) bfd/ieee.c:381: warning: 'result' may be used uninitialized bfd/ieee.c:373: warning: 'x' may be used uninitialized bfd/ieee.c:771: warning: 'value' may be used uninitialized Workaround:

binutils-2.17.50 build fails: bfd/coffcode.h

2007-04-20 Thread anirkko
Hi Build of snapshot binutils-2.17.50 fails (using gcc-4.1.2) when compiling bfd/pe-sh.c inside coffcode.h line 4911 because of the following difference regarding CALC_ADDEND() in file bfd/coff-sh.c which is included by bfd/pe-sh.c /* This is the same as the macro in coffcode.h, except that it

binutils-2.17.50 build fail (alloca undefined also in bfd/vms-hdr.c, bfd/xsym.c)

2007-04-20 Thread anirkko
Hi For 2 more files, build of snapshot binutils-2.17.50 fails (on Solaris 2.6) when compiling bfd/vms-hdr.c and bfd/xsym.c because alloca is undefined. Strangely enough, the first file (bfd/vms-hdr.c) even has #ifdef HAVE_ALLOCA_H #include #endif Therfore, it is probably the configure (when usi

Subject: binutils-2.17.50 build fails: opcodes/arm-dis.h

2007-04-20 Thread anirkko
Hi Building of snapshot binutils-2.17.50 fails (when using "configure --enable-targets=all" on Solaris 2.6) in file opcodes/arm-dis.h Workaround: initialize enum map_type type = 0; (to be verified that this is no problem...) Arto --- gcc -DHAVE_CON

use instead of on Solaris (build fail also on newest CVS snapshot binutils-2.17.50)

2007-04-20 Thread anirkko
Hi Already reported for distribution binutils-2.17, but build also fails with todays CVS snapshot binutils-2.17.50: When using "configure --enable-targets=all" then compiling opcodes/m32c-asm.c fails in cgen-types.h because no file stdint.h can be found anywhere on Solaris. (neither 2.6 nor Solar

build fail (binutils/srconv.c) in snapshot binutils-2.17.50

2007-04-20 Thread anirkko
Hi Build of snapshot binutils-2.17.50 fails (using gcc-4.1.2) when compiling binutils/srconv.c Workaround: initialize dpt.dunno = 0; Arto -- gcc -DHAVE_CONFIG_H -I. -I/build/binutils-2.17.50/binutils -I. -D_GNU

Re: Memory leaks in ld.so-2.4

2007-04-20 Thread Alan Modra
On Fri, Apr 20, 2007 at 01:13:15AM +0200, Seweryn Habdank-Wojewódzki wrote: > I want to send you information about memory leaks in ld.so. Please send bug reports about ld.so to the glibc project. ld.so isn't part of binutils, despite having a name that makes you think it might be part of the link