diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2012-11-13 00:54:56 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2012-11-13 00:54:56 +0000 |
commit | ba9eb309996498785e76eec85b22a4a085927382 (patch) | |
tree | 6f17a258d52b8c53842b490e222b3c0d33d9c0f2 | |
parent | 75f56456e175f8d702dd73dd3686012c494bfa88 (diff) | |
download | binutils-current-ba9eb309996498785e76eec85b22a4a085927382.tar.gz |
* readelf.c (get_machine_flags) <EM_MIPS, EM_MIPS_RS3_LE>: Move
code to handle EF_SH_PIC and EF_SH_FDPIC...
<EM_SH>: ... here.
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/readelf.c | 11 |
2 files changed, 11 insertions, 6 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 81aca136f..c70e4b34d 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2012-11-13 Maciej W. Rozycki <macro@codesourcery.com> + + * readelf.c (get_machine_flags) <EM_MIPS, EM_MIPS_RS3_LE>: Move + code to handle EF_SH_PIC and EF_SH_FDPIC... + <EM_SH>: ... here. + 2012-11-09 Nick Clifton <nickc@redhat.com> * readelf.c (get_machine_flags): Add support for E_FLAG_RX_ABI. diff --git a/binutils/readelf.c b/binutils/readelf.c index ee5b607bc..f246211ca 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -2583,12 +2583,6 @@ get_machine_flags (unsigned e_flags, unsigned e_machine) case E_MIPS_ARCH_64R2: strcat (buf, ", mips64r2"); break; default: strcat (buf, _(", unknown ISA")); break; } - - if (e_flags & EF_SH_PIC) - strcat (buf, ", pic"); - - if (e_flags & EF_SH_FDPIC) - strcat (buf, ", fdpic"); break; case EM_SH: @@ -2618,6 +2612,11 @@ get_machine_flags (unsigned e_flags, unsigned e_machine) default: strcat (buf, _(", unknown ISA")); break; } + if (e_flags & EF_SH_PIC) + strcat (buf, ", pic"); + + if (e_flags & EF_SH_FDPIC) + strcat (buf, ", fdpic"); break; case EM_SPARCV9: |