Re: [PATCH] libtests/dl06: Add -lm

2020-11-11 Thread Chris Johns
On 12/11/20 4:36 pm, Sebastian Huber wrote: > On 11/11/2020 22:43, Chris Johns wrote: > >> Does the problem exist in any of the other libdl tests? > No, I checked all the dl*.yml files.' Excellent and thanks for checking. Chris ___ devel mailing list d

Re: [PATCH] libtests/dl06: Add -lm

2020-11-11 Thread Sebastian Huber
On 11/11/2020 22:43, Chris Johns wrote: Does the problem exist in any of the other libdl tests? No, I checked all the dl*.yml files. -- embedded brains GmbH Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de Phone: +49-89-18 94 741 - 16 Fax: +49-89

Re: [PATCH] libtests/dl06: Add -lm

2020-11-11 Thread Chris Johns
On 11/11/20 6:27 pm, Sebastian Huber wrote: > On 11/11/2020 00:58, Chris Johns wrote: > These should not be linked into the base image. They are in the RAP image in dl06-tar.o. >>> What shouldn't be linked in? The entire object files or only some functions >>> in it? >> In this tes

Re: [PATCH] libtests/dl06: Add -lm

2020-11-10 Thread Sebastian Huber
On 10/11/2020 08:32, Sebastian Huber wrote: Would adding a pragma for this option to dl06-o1.c and dl06-o2.c be acceptable as a solution? I am not sure if a pragma works for these options. We can add -fno-builtin=tan -fno-builtin=atan2. We can use also some global volatile variables which see

Re: [PATCH] libtests/dl06: Add -lm

2020-11-10 Thread Sebastian Huber
On 11/11/2020 00:58, Chris Johns wrote: These should not be linked into the base image. They are in the RAP image in dl06-tar.o. What shouldn't be linked in? The entire object files or only some functions in it? In this test dl06-o1.o and dl06-o2.o. In general any code placed in the tar file

Re: [PATCH] libtests/dl06: Add -lm

2020-11-10 Thread Chris Johns
On 10/11/20 6:32 pm, Sebastian Huber wrote: > On 09/11/2020 23:42, Chris Johns wrote: > >> On 9/11/20 6:24 pm, Sebastian Huber wrote: >>> On 09/11/2020 02:23, Chris Johns wrote: >>> On 3/11/20 3:39 am, Sebastian Huber wrote: > There is probably something wrong with this test program.  If

Re: [PATCH] libtests/dl06: Add -lm

2020-11-09 Thread Sebastian Huber
On 09/11/2020 23:42, Chris Johns wrote: On 9/11/20 6:24 pm, Sebastian Huber wrote: On 09/11/2020 02:23, Chris Johns wrote: On 3/11/20 3:39 am, Sebastian Huber wrote: There is probably something wrong with this test program.  If it is compiled without function/data sections, no optimization,

Re: [PATCH] libtests/dl06: Add -lm

2020-11-09 Thread Chris Johns
On 9/11/20 6:24 pm, Sebastian Huber wrote: > On 09/11/2020 02:23, Chris Johns wrote: > >> On 3/11/20 3:39 am, Sebastian Huber wrote: >>> There is probably something wrong with this test program.  If it is compiled >>> without function/data sections, no optimization, and no linker garbage >>> colle

Re: [PATCH] libtests/dl06: Add -lm

2020-11-08 Thread Sebastian Huber
On 09/11/2020 02:23, Chris Johns wrote: On 3/11/20 3:39 am, Sebastian Huber wrote: There is probably something wrong with this test program. If it is compiled without function/data sections, no optimization, and no linker garbage collection, then there is an undefined reference to atan2() and

Re: [PATCH] libtests/dl06: Add -lm

2020-11-08 Thread Chris Johns
On 3/11/20 3:39 am, Sebastian Huber wrote: > There is probably something wrong with this test program. If it is compiled > without function/data sections, no optimization, and no linker garbage > collection, then there is an undefined reference to atan2() and tan(). These symbols are referenced i

[PATCH] libtests/dl06: Add -lm

2020-11-02 Thread Sebastian Huber
There is probably something wrong with this test program. If it is compiled without function/data sections, no optimization, and no linker garbage collection, then there is an undefined reference to atan2() and tan(). Fix this issue by adding -lm. --- spec/build/testsuites/libtests/dl06.yml | 3