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]

Can you use PIC for shared library?


I got

Running
/net/gnu/export/linux/src/binutils/binutils/ld/testsuite/ld-elf/exclude.exp
...
/export/build/linux/binutils-debug/build-x86_64-linux/ld/../gas/as-new
-o tmpdir/exclude1.o
/net/gnu/export/linux/src/binutils/binutils/ld/testsuite/ld-elf/exclude1.s
/export/build/linux/binutils-debug/build-x86_64-linux/ld/../gas/as-new
-o tmpdir/exclude2.o
/net/gnu/export/linux/src/binutils/binutils/ld/testsuite/ld-elf/exclude2.s
/export/build/linux/binutils-debug/build-x86_64-linux/ld/ld-new  -o
tmpdir/exclude.so --shared tmpdir/exclude1.o -Ltmpdir -lexclude
/export/build/linux/binutils-debug/build-x86_64-linux/ld/ld-new:
tmpdir/exclude1.o: relocation R_X86_64_PC32 against `exclude_sym' can
not be used when making a shared object; recompile with -fPIC
/export/build/linux/binutils-debug/build-x86_64-linux/ld/ld-new: final
link failed: Bad value FAIL: ld link shared library


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]