[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/1396] prohibited cross reference to a local symbol.
From: |
hjl at lucon dot org |
Subject: |
[Bug ld/1396] prohibited cross reference to a local symbol. |
Date: |
1 Oct 2005 04:40:50 -0000 |
------- Additional Comments From hjl at lucon dot org 2005-10-01 04:40 -------
Created an attachment (id=682)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=682&action=view)
A testcase
With this testcase on Linux/x86, I get
bash-3.00$ make
gcc -m32 -c -o foo.o foo.c
gcc -m32 -c -o x.o x.c
gcc -m32 -c -o y.o y.c
ld -m elf_i386 -r -o lib.o x.o y.o
gcc -m32 -c -o z.o z.c
gcc -m32 -o foo foo.o lib.o z.o -Wl,-T,elf_i386.x
lib.o: In function `bar':
: prohibited cross reference from .text to `foo' in .foo
collect2: ld returned 1 exit status
make: *** [foo] Error 1
--
http://sourceware.org/bugzilla/show_bug.cgi?id=1396
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/1396] prohibited cross reference to a local symbol.,
hjl at lucon dot org <=