AFAIK, this is not possible. The arm cross-compiler for Linux can only be build for ARMEL or ARMHF. Not both.
It is a bit more complex than that: if you write a simple program on armhf, without any math involved, the program will default to armel. Only when the compiler see's that math is involved it will use the armhf instruction set. I had a discussion with Jonas about that about 8-9 years ago regarding code generated for rpi1, and I submitted a bug report that was marked as no change required.
That has not changed. But the case here seems the other way around? armel with softfloat?
Current state is
- if you compile for armel, softfloat is used
- if you compile for armhf, the hf part is only used if it is actally used, e.g.: on armhf, hello, world generates armel only code. You can test that...
If no hf code is used, even on armhf, it says armel on the hello, world example....