X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=tools%2Fobjtool%2Fspecial.c;h=2c7fbda7b05573e41807dc635c087dcec28dc37b;hb=29c395c77a9a514c5857c45ceae2665e9bd99ac7;hp=1a2420febd08a4f48e954490f92676d99466a54d;hpb=5f8f965287494d55e8ba3551e3727a5e9d0eb702;p=linux-2.6-microblaze.git diff --git a/tools/objtool/special.c b/tools/objtool/special.c index 1a2420febd08..2c7fbda7b055 100644 --- a/tools/objtool/special.c +++ b/tools/objtool/special.c @@ -11,10 +11,11 @@ #include #include -#include "builtin.h" -#include "special.h" -#include "warn.h" -#include "arch_special.h" +#include +#include +#include +#include +#include struct special_entry { const char *sec; @@ -77,8 +78,9 @@ static int get_alt_entry(struct elf *elf, struct special_entry *entry, if (entry->feature) { unsigned short feature; - feature = *(unsigned short *)(sec->data->d_buf + offset + - entry->feature); + feature = bswap_if_needed(*(unsigned short *)(sec->data->d_buf + + offset + + entry->feature)); arch_handle_alternative(feature, alt); }