Re: [fpc-pascal] Getting build ID

2015-10-26 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: Andrew Haines wrote: On 10/22/2015 08:08 PM, Mark Morgan Lloyd wrote: If a program is linked with GNU ld using the --build-id option, how can it retrieve the value at runtime? I've never done it but maybe a place to start is use the elfreader

Re: [fpc-pascal] Getting build ID

2015-10-25 Thread Andrew Haines
On 10/25/2015 03:25 PM, Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: Andrew Haines wrote: On 10/22/2015 08:08 PM, Mark Morgan Lloyd wrote: If a program is linked with GNU ld using the --build-id option, how can it retrieve the value at runtime? I've never done it but maybe a place to st

Re: [fpc-pascal] Getting build ID

2015-10-25 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Andrew Haines wrote: On 10/22/2015 08:08 PM, Mark Morgan Lloyd wrote: If a program is linked with GNU ld using the --build-id option, how can it retrieve the value at runtime? I've never done it but maybe a place to start is use the elfreader unit in fcl-res to open

Re: [fpc-pascal] Getting build ID

2015-10-24 Thread Mark Morgan Lloyd
Andrew Haines wrote: On 10/22/2015 08:08 PM, Mark Morgan Lloyd wrote: If a program is linked with GNU ld using the --build-id option, how can it retrieve the value at runtime? I've never done it but maybe a place to start is use the elfreader unit in fcl-res to open ParamStr(0) and read the d

Re: [fpc-pascal] Getting build ID

2015-10-24 Thread Andrew Haines
On 10/22/2015 08:08 PM, Mark Morgan Lloyd wrote: If a program is linked with GNU ld using the --build-id option, how can it retrieve the value at runtime? I've never done it but maybe a place to start is use the elfreader unit in fcl-res to open ParamStr(0) and read the data from the .note.gn

[fpc-pascal] Getting build ID

2015-10-22 Thread Mark Morgan Lloyd
If a program is linked with GNU ld using the --build-id option, how can it retrieve the value at runtime? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pasca