Currently, binutils do not generate right ELF type (should be 9, but I get 0) Reproducible: Always Steps to Reproduce:
Created attachment 116547 [details, diff] Patch to correct the ELF type (was 0, now 9) Patch base on http://sourceware.org/ml/binutils/2006-07/msg00220.html. Actualy, it is the same patch with line numbers changed. I didn't know how to name the patch, so I've gave it the name similar to patch related to sparc patch. I really don't know if it can be applied on every platform.
Hi, I am the author of that patch and I added it here in 2006. Same as #138475 :).
seems it has made it upstream