aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2012-11-13 00:54:56 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2012-11-13 00:54:56 +0000
commitcec6a5b82ba19f3d8155503da6d7313c9321fcf6 (patch)
tree63e52752ce1a9dc5599a0cdda1aaec154c5dbe75 /binutils/readelf.c
parent7530bb1a56dd28af2ab5c681db79ac075adbedde (diff)
downloadgdb-cec6a5b82ba19f3d8155503da6d7313c9321fcf6.zip
gdb-cec6a5b82ba19f3d8155503da6d7313c9321fcf6.tar.gz
gdb-cec6a5b82ba19f3d8155503da6d7313c9321fcf6.tar.bz2
* 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.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index ee5b607..f246211 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: