This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
We don't treat common symbol as definition. It causes a problem with visibility. Here is a testcase: # make cc -O -g -B./ -DDEFINE -fPIC -c main.c cc -shared -o libfoo.so -O -g -B./ -DDEFINE shared.c cc -o foo -O -g -B./ -DDEFINE main.o libfoo.so -Wl,-rpath,. ./ld: main.o(.text+0x1b): unresolvable relocation against symbol `short_hidden_ref_norm_def' collect2: ld returned 1 exit status make: *** [foo] Error 1 H.J.
Attachment:
bug.tar.gz
Description: GNU Zip compressed data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |