This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] use only one-byte nops for linker code fill on x86 NaCl targets


For x86 NaCl, no instruction may straddle a 32-byte alignment boundary.
Since the bfd_arch_info_type.fill hook doesn't know the address where
the fill will go (and hence its alignment), the only safe thing it can
do is use only the one-byte nop instruction in the fill.

I found it distressing that creating a whole new CPU variant appears
to be the only way to make the function for code fill target-specific,
but the notion of the variants and their names does not appear to have
any other actual effect.

OK for trunk?


Thanks,
Roland

Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]