[RFC 0/5] xtensa: support dynamic configuration
Nick Clifton
nickc@redhat.com
Tue Jun 6 12:41:00 GMT 2017
Hi Max,
> Built toolchain takes configuration
> parameters from the shared object specified in the environment variable.
Using environment variables to pass configuration information is a bad idea.
The problem is that it can be very hard to debug problems when environment
variables are involved. Often they are not included in bug reports, which
makes reproducing the problem tricky.
At the very least you should also provide a command line option which
specifies the path to a file containing the configuration information. If
specified this option should override the environment variable.
There is also the issue of versioning to consider. Does the configuration
information contain a version number ? What happens if the configuration
information is out of date with respect to the compiler/linker or if the
tools are older than the configuration information ?
Cheers
Nick
More information about the Binutils
mailing list