bfd_arch_info.fill vs ARM (bug 13616)
Roland McGrath
mcgrathr@google.com
Wed Feb 1 17:27:00 GMT 2012
Perhaps you missed my original posting about this, when I was first trying
to address it in the assembler (which is not sufficient, as HJ pointed out).
Some particular targets mandate that all portions of executable segments
(even unreachable code) be valid instructions. Targets with such a
requirement may vary on which, if any, trapping instructions are valid
enough for their constraints. The simplest, safest, and most efficient
(for processor instruction prefetch and so forth) choice is to use nop
instructions. (This is not an issue of ELF or even of psABIs, it's an
issue of particular systems. Systems that don't care just don't care--a
nop is as good as a zero--so it's not worth the complexity to make detail
this more specific than per-machine.)
Thanks,
Roland
More information about the Binutils
mailing list