https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109698
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Seems binutils has added support for __ehdr_start only in https://sourceware.org/legacy-ml/binutils/2012-06/msg00171.html in 2012. Do you have binutils older than that?