Re: [fpc-pascal] Multi-scope helpers draft

2018-11-25 Thread Sven Barth via fpc-pascal
Am Mo., 26. Nov. 2018, 03:12 hat Ryan Joseph geschrieben: > > > > On Nov 25, 2018, at 11:03 PM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > It's a good thing that you saw the errors in your first design and > rectified those in the third commit. ;) That commit

Re: [fpc-pascal] Building trunk

2018-11-25 Thread Cyrax
On 25/11/2018 14:58, Jonas Maebe wrote: On 25/11/18 13:51, Florian Klämpfl wrote: I am not aware that somewhere a fixed offset is applied. All info is read from the auxiliary data and the header. You can have a load address offset in case there is a PT_PHDR. From

Re: [fpc-pascal] Multi-scope helpers draft

2018-11-25 Thread Ryan Joseph
> On Nov 25, 2018, at 11:03 PM, Sven Barth via fpc-pascal > wrote: > > It's a good thing that you saw the errors in your first design and rectified > those in the third commit. ;) That commit however contains unnecessary noise > (new line changes? space changes?), so when reworking the

Re: [fpc-pascal] Building trunk

2018-11-25 Thread C Western
On 25/11/2018 14:18, Florian Klämpfl wrote: Am 25.11.2018 um 14:30 schrieb Colin Western: What generates the header? Is it fpc, an external linker or the loader? Can you please run the following C program: #include #include int main() { printf("AT_PHDR: %lx\n",getauxval(AT_PHDR));

Re: [fpc-pascal] Constants in generics

2018-11-25 Thread Sven Barth via fpc-pascal
Am 14.11.2018 um 03:25 schrieb Ryan Joseph: I think I have this done except for cleanup. Here’s the status: - Integer,string,real,set and nil constant for parameters. - Consts can have type restrictions which correspond to the above types. - Const can be assigned to from generic const params. -

Re: [fpc-pascal] Multi-scope helpers draft

2018-11-25 Thread Sven Barth via fpc-pascal
Am 24.11.2018 um 05:20 schrieb Ryan Joseph: I’d like to propose this mode switch ($modeswitch multiscopehelpers) to allow multiple helpers per scope. I have no idea why Delphi thinks only one helper should be allowed in any scope but it cripples the feature severely. Sharing helpers is mostly

Re: [fpc-pascal] Building trunk

2018-11-25 Thread Florian Klämpfl
Am 25.11.2018 um 14:30 schrieb Colin Western: > What generates the header? Is it fpc, an external linker or the loader? > Can you please run the following C program: #include #include int main() { printf("AT_PHDR: %lx\n",getauxval(AT_PHDR)); printf("AT_PHNUM: %lx\n",getauxval(AT_PHNUM));

Re: [fpc-pascal] Building trunk

2018-11-25 Thread Jonas Maebe
On 25/11/18 14:30, Colin Western wrote: What generates the header? Is it fpc, an external linker or the loader? The linker. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Building trunk

2018-11-25 Thread Colin Western
What generates the header? Is it fpc, an external linker or the loader? Colin Sent from my mobile. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Building trunk

2018-11-25 Thread Florian Klämpfl
Am 25.11.2018 um 13:58 schrieb Jonas Maebe: > On 25/11/18 13:51, Florian Klämpfl wrote: >> I am not aware that somewhere a fixed offset is applied. All info is read >> from the auxiliary data and the header. > > You can have a load address offset in case there is a PT_PHDR. Yes. > From

Re: [fpc-pascal] Building trunk

2018-11-25 Thread Jonas Maebe
On 25/11/18 13:51, Florian Klämpfl wrote: I am not aware that somewhere a fixed offset is applied. All info is read from the auxiliary data and the header. You can have a load address offset in case there is a PT_PHDR. From http://www.gabriel.urdhr.fr/2015/01/22/elf-linking/ : //

Re: [fpc-pascal] Building trunk

2018-11-25 Thread Florian Klämpfl
Am 25.11.2018 um 13:51 schrieb Florian Klämpfl: > Am 25.11.2018 um 13:06 schrieb C Western: > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal That gives the same value as shown above, even after applying the

Re: [fpc-pascal] Building trunk

2018-11-25 Thread Florian Klämpfl
Am 25.11.2018 um 13:06 schrieb C Western: fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal >>> That gives the same value as shown above, even after applying the patch. >>> Single stepping the code indicates that both

Re: [fpc-pascal] Building trunk

2018-11-25 Thread C Western
On 25/11/2018 12:01, Florian Klämpfl wrote: Am 25.11.2018 um 12:20 schrieb C Western: On 24/11/2018 22:21, Florian Klämpfl wrote: Am 24.11.2018 um 10:08 schrieb C Western: On 23/11/2018 09:50, Sven Barth via fpc-pascal wrote: Am Fr., 23. Nov. 2018, 10:26 hat C Western

Re: [fpc-pascal] Building trunk

2018-11-25 Thread Florian Klämpfl
Am 25.11.2018 um 12:20 schrieb C Western: > On 24/11/2018 22:21, Florian Klämpfl wrote: >> Am 24.11.2018 um 10:08 schrieb C Western: >>> On 23/11/2018 09:50, Sven Barth via fpc-pascal wrote: Am Fr., 23. Nov. 2018, 10:26 hat C Western >>> > geschrieben:

Re: [fpc-pascal] Building trunk

2018-11-25 Thread C Western
On 24/11/2018 22:21, Florian Klämpfl wrote: Am 24.11.2018 um 10:08 schrieb C Western: On 23/11/2018 09:50, Sven Barth via fpc-pascal wrote: Am Fr., 23. Nov. 2018, 10:26 hat C Western mailto:l...@c-m-w.me.uk>> geschrieben:     I haven't been able to build trunk i386 fpc for a couple of weeks.