You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After PR #2843 examples like this started having linker issues on IAR and ARM since these compilers are less permissive about missing functions, even if they are never referenced. This causes confusing errors to users since it is not obvious that the culprit is a missing entropy source.
TLS should either provide stubs for these functions that have been compiled out, or make it an error to include TLS headers with prototypes that have their definitions turned off.
However, the general problem which @c1728p9 described as ‘TLS should either provide stubs for these functions that have been compiled out, or make it an error to include TLS headers with prototypes that have their definitions turned off’ is not done, and is still pending work as the mbed TLS issue "Function declarations not conditionally compiled #660".
Because there is no specific or immediate problem for mbed OS, and because the issue is raised as a separate issue in the mbed TLS repo as bug #660, I see no need to keep this one open if you want to close it.
Prior to PR #2843 security features were turned on even when null entropy was not. This allowed example programs with a link time dependency on TLS but did not actually use TLS to compile and work. One example of this is https://github.com/ARMmbed/mbed-os-example-mesh-minimal.
After PR #2843 examples like this started having linker issues on IAR and ARM since these compilers are less permissive about missing functions, even if they are never referenced. This causes confusing errors to users since it is not obvious that the culprit is a missing entropy source.
TLS should either provide stubs for these functions that have been compiled out, or make it an error to include TLS headers with prototypes that have their definitions turned off.
CC: @andresag01
The text was updated successfully, but these errors were encountered: