[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/13250] unresolvable R_X86_64_64 relocations with ld --as-needed
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/13250] unresolvable R_X86_64_64 relocations with ld --as-needed |
Date: |
Wed, 05 Oct 2011 20:11:54 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=13250
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2011-10-05 20:11:54
UTC ---
A small testcase:
address@hidden pr13250]$ cat foo.c
char mpi_fortran_argv_null_[8];
address@hidden pr13250]$ cat bar.c
extern char mpi_fortran_argv_null_[8];
int
bar ()
{
return mpi_fortran_argv_null_[0];
}
address@hidden pr13250]$ cat main.c
char mpi_fortran_argv_null_[1];
extern int bar ();
int
main ()
{
bar ();
return 0;
}
address@hidden pr13250]$ make
gcc -g -c -o main.o main.c
gcc -shared -fPIC -g -o libfoo.so foo.c
gcc -shared -fPIC -g -o libbar.so bar.c libfoo.so
gcc -Wl,--as-needed -o x main.o libbar.so libfoo.so -Wl,-rpath,.
/usr/local/bin/ld: main.o(.debug_info+0x7e): unresolvable R_X86_64_64
relocation against symbol `mpi_fortran_argv_null_'
./x
address@hidden pr13250]$
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug ld/13250] New: unresolvable R_X86_64_64 relocations with ld --as-needed, doko at debian dot org, 2011/10/04
- [Bug ld/13250] unresolvable R_X86_64_64 relocations with ld --as-needed, doko at debian dot org, 2011/10/04
- [Bug ld/13250] unresolvable R_X86_64_64 relocations with ld --as-needed, hjl.tools at gmail dot com, 2011/10/05
- [Bug ld/13250] unresolvable R_X86_64_64 relocations with ld --as-needed,
hjl.tools at gmail dot com <=
- [Bug ld/13250] unresolvable R_X86_64_64 relocations with ld --as-needed, hjl.tools at gmail dot com, 2011/10/05
- [Bug ld/13250] unresolvable R_X86_64_64 relocations with ld --as-needed, doko at debian dot org, 2011/10/06
- [Bug ld/13250] unresolvable R_X86_64_64 relocations with ld --as-needed, hjl.tools at gmail dot com, 2011/10/07
- [Bug ld/13250] unresolvable R_X86_64_64 relocations with ld --as-needed, cvs-commit at gcc dot gnu.org, 2011/10/08
- [Bug ld/13250] unresolvable R_X86_64_64 relocations with ld --as-needed, hjl.tools at gmail dot com, 2011/10/10
- [Bug ld/13250] unresolvable R_X86_64_64 relocations with ld --as-needed, cvs-commit at gcc dot gnu.org, 2011/10/24