[fpc-pascal] How to sent totally custom parameters to the linker ?
Mark Morgan Lloyd
markMLl.fpc-pascal at telemetry.co.uk
Tue Sep 6 12:54:03 CEST 2016
On 05/09/16 23:30, 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 ?
I've had no problem with e.g.
export OPT='-k-t -k--reduce-memory-overheads -k--no-keep-memory'
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-pascal
mailing list