bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/4277] BFD reports internal error at elflink.c in elf_link_output


From: hjl at lucon dot org
Subject: [Bug ld/4277] BFD reports internal error at elflink.c in elf_link_output_extsym
Date: 29 Mar 2007 13:51:03 -0000

------- Additional Comments From hjl at lucon dot org  2007-03-29 14:50 -------
I guess

LDFLAGS=-s
-Wl,-O1,-zdynsort,-z,combreloc,-hashval,--as-needed,--enable-new-dtags -Bdirect

doesn't work with your linker. I have no problems on FC6:

bash-3.1$ cat x.c
#include <stdio.h>

int
main ()
{
  printf ("Hello\n");
}
bash-3.1$ gcc -B/usr/bin/ -v -O4 -march=k8 -mtune=k8 -pipe -s -ftree-vectorize 
-s -Wl,-O1,-zdynsort,-z,combreloc,-hashval,--as-needed,--enable-new-dtags
-Bdirect x.c
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
--host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)
 /usr/libexec/gcc/x86_64-redhat-linux/4.1.1/cc1 -quiet -v x.c -quiet -dumpbase
x.c -march=k8 -mtune=k8 -auxbase x -O4 -version -ftree-vectorize -o - |
 /usr/bin/as -V -Qy -o /tmp/cciagvla.o -
GNU assembler version 2.17.50.0.6-2.fc6 (x86_64-redhat-linux) using BFD version
2.17.50.0.6-2.fc6 20061020
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../x86_64-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc/x86_64-redhat-linux/4.1.1/include
 /usr/include
End of search list.
GNU C version 4.1.1 20070105 (Red Hat 4.1.1-51) (x86_64-redhat-linux)
        compiled by GNU C version 4.1.1 20070105 (Red Hat 4.1.1-51).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: d39c53922a350f9879c557cb2a22eafa
 /usr/libexec/gcc/x86_64-redhat-linux/4.1.1/collect2 --eh-frame-hdr -m
elf_x86_64 --hash-style=gnu -dynamic-linker /lib64/ld-linux-x86-64.so.2 -s -s
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/crt1.o
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/crtbegin.o -L/usr/bin
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.1
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.1
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64 -O1 -zdynsort -z combreloc -hashval --as-needed
--enable-new-dtags /tmp/cciagvla.o -lgcc --as-needed -lgcc_s --no-as-needed -lc
-lgcc --as-needed -lgcc_s --no-as-needed
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/crtend.o
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/crtn.o
bash-3.1$ ./a.out 
Hello
bash-3.1$ 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl at lucon dot org
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME
            Version|2.17                        |2.18 (HEAD)


http://sourceware.org/bugzilla/show_bug.cgi?id=4277

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]