bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/186] Ld failed to issue an error on non-PIC code when building s


From: hjl at lucon dot org
Subject: [Bug ld/186] Ld failed to issue an error on non-PIC code when building shared library
Date: 28 May 2004 17:05:40 -0000

------- Additional Comments From hjl at lucon dot org  2004-05-28 17:05 -------
Created an attachment (id=94)
 --> (http://sources.redhat.com/bugzilla/attachment.cgi?id=94&action=view)
A testcase

address@hidden oveflow]$ make CC=gcc
gcc -O -g   -c -o main.o main.c
gcc -O -g -fpic   -c -o lib1.o lib1.c
gcc -O -g   -c -o lib2.o lib2.c
gcc -shared -o libfoo.so lib1.o lib2.o
gcc -o foo main.o libfoo.so -Wl,-rpath,.
./foo
./foo: Symbol `msg' causes overflow in R_X86_64_PC32 relocation
./foo: Symbol `foo' causes overflow in R_X86_64_PC32 relocation
make: *** [all] Segmentation fault


-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=186

------- 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]