[Issue 4583] PIC code not working: EBX register set incorrectly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 30 11:33:20 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=4583



--- Comment #4 from Trass3r <mrmocool at gmx.de> 2011-11-30 11:32:10 PST ---
Created an attachment (id=1047)
my Makefile adjustments

I tried it on x64:

$ make MODEL=64 -f posix.mak -j2
cc -c -m64 -O -fPIC src/core/stdc/errno.c -oobj/errno_c.o
cc -Wa,-noexecstack -c -m64 -O -fPIC src/core/threadasm.S -oobj/threadasm.o
cc -c -m64 -O -fPIC src/rt/complex.c -oobj/complex.o
...
dmd -c -oflib/ofdrt.o -m64 -O -fPIC -release -inline -nofloat -w -d -Isrc
-Iimport src/object_.d [......]
gcc -shared -Wl,-export-dynamic,-soname,lib/libdruntime.so.1 -o
lib/libdruntime.so.1.0.1 lib/ofdrt.o obj/errno_c.o obj/threadasm.o
obj/complex.o
/usr/bin/ld: lib/ofdrt.o: relocation R_X86_64_PC32 against symbol
`_Dmodule_ref' can not be used when making a shared object; recompile with
-fPIC
/usr/bin/ld: final link failed: Bad value

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list