Andrew Haines wrote > On 09/05/2016 07:27 PM, fredvs wrote: >> Hello. >> >> Is it possible to sent new-other parameters to the linker ? >> Without the use of *-k* > <some_paramter> > , fpc sent this to the linker: >> >> [5.227] (9017) Using util /usr/bin/ld >> [5.227] Executing "/usr/bin/ld" with command line "-b elf64-x86-64 -m >> elf_x86_64 --dynamic-linker=/lib64/ld-linux-x86-6 >> 4.so.2 -s -L. -o ./test ./link.res" >> >> Using the *-k* parameter, this is sent (with *-ksomething -kotherting*): >> >> [5.224] (9017) Using util /usr/bin/ld >> [5.224] Executing "/usr/bin/ld" with command line "-b elf64-x86-64 -m >> elf_x86_64 *something* *otherthing* --dynamic-linker= >> /lib64/ld-linux-x86-64.so.2 -s -L. -o ./test ./link.res" >> >> You may see that the parameters "something" "otherthing" are inserted >> afterelf_x86_64. >> >> But how to sent totally custom parameters, without those given by fpc ? >> >> > > If you use -s the compiler will not link your program but leave a script > "ppas.sh" that you can edit and run manually to assemble and link your > program. Also it leaves a link.res file that if you really want to you > can edit. > > Regards, > > Andrew > __________________________
Excellent, it is even better that my wishes. Many thanks Andrew. Fre;D ----- Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/How-to-sent-totally-custom-parameters-to-the-linker-tp5726266p5726284.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal