Re^2: gcc
Christos Ricudis
Christos_Ricudis at INVALID_FTN_ADDRESS
Thu Jun 26 19:09:43 EEST 1997
Hello Linux-greek-users!
In <LINUX-USERS.GR> Linux-greek-users wrote:
L> thelei tha to kanei dynamically link. Giati den symferei? Se
L> polles periptwseis (px to apaitoumeno SO einai asynithisto h den
L> xrhsimopoieitai arketa wste na dikaiologeitai na einai SO)
Kata th gnwmh moy oi mones periptwseis poy DEN symferei to dynamic linking
einai otan yparxei periptwsh na kaneis distribute to binary se kosmo kai de 8es
na dineis kai tis biblio8hkes mazi, eite otan to executable pi8anon na
xreiastei se periptwseis poy einai dia8esimes oi shared libs (mount, e2fsck)
(as shmeiw8ei oti einai dynaton - kai synistatai - to /usr na einai diaforetiko
filesystem apo to /, opote prepei na proseksete o,ti trexei prin to mounting
toy /, na einai eite statically linked eite na einai dia8esimes oi libraries
toy. Ayto prepei na to proseksete poly se systhmata opws to Solaris, opou OLES
oi shared libs einai sto /usr/lib - polloi thn pathsan bazontas san root shell
kapoio dynamically linked executable)
Apo kei kai pera, oi shared libraries den prokaloyn kanena kako. 8ymh8eite oti
to Linux exei paneksypno memory management. Praktika ola ta unixes meta to
4.3BSD kai to SVR3.2 xrhsimopoioyn on demand paging twn executables - ta
executables de fortwnontai pote sth mnhmh oloklhra outws h allws). Eidika sto
linux (den kserw ti ginetai alloy) ta executables ginontai mmap read only kai
executable kai ekteloyntai - dyo processes poy trexoyn to idio executable
xrhsimopoioyn akribws tis idies pages.
>> ld blepei mono tis biblio0hkes kai ta directories pou tou dineis
>> sto command line, den koitazei pou0ena allou.
L> E, koitaei kai sto antistoixo environment variable gia ta
L> sxetika directories (LD_RUN_PATH).
....opws kai sta arxeia poy briskontai sto /usr/kapoy/lib/ldscripts/* kai
orizoyn diafora pragmata sxetika me to pws ginetai to dynamic linking, opws to
path sto opoio 8a prepei na psaksei o linker gia na ta brei. POLY xrhsimh
gnwsh, eidika ean 8elete na kanete th malakia poy ekana egw na egkatesthsw th
GNU LibC 2.0 :-)
Christos Ricudis, 2:410/3.0.
--
====================================================================
Gia na mathete pos na xrisimopoiite ton majordomo, stilte e-mail
sto "majordomo at argeas.argos.hol.gr" me 1 grammi sto keimeno: help
Ta archives tis listas einai sto http://www.argos.hol.gr/lists
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================
More information about the Linux-greek-users
mailing list