
Dear Michael Roth,
In message 4989BB8E.9090405@nessie.de you wrote:
Why would that be needed?
Because the whole weak-linking looks like it is somewhat broken or at least very difficult to get it correctly.
Then you should at least document this purpose in the commit message.
Yes, there are several possible solutions to address this issue. Until now, there were discussed: CONFIG_XYZ and ifdef/endif and pre-build objects (patch from Jean-Christophe) and my proposal.
Using a board specific linker script is another way.
However, because the problem regarding weak-linking is a global one, maybe the circumvention should be global too.
In the long term, following the Linux style is probably the way to go. In the man time, I suggest to use what has least impact.
But I don't know. I could also use a board specific linker script.
OK, fine.
Thanks.
Best regards,
Wolfgang Denk