What is your coredump_filter setting ? It will be under /proc/
The value in that file is in Hex and refer the linux documentation on core (man core). The bit 4 needs to be set to dump all ELF headers.