A quick question about elf file headers, I can\'t seem to find anything useful on how to add/change fields in the elf header. I\'d like to be able to change the magic numbers an
In Solaris you can use elfedit but I think you are really asking solutions for Linux. Linux Is Not UniX :P
I'm fairly sure that a sufficiently complex ld script can do what you want. However, I have no idea how.
On the other hand, elfsh can easily do all sorts of manipulations to elf objects, so give it a whirl.
In Linux Console:
$ man ld
$ ld --verbose
HTH