aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@codesourcery.com>2013-07-15 15:07:30 +0000
committerMaciej W. Rozycki <macro@codesourcery.com>2013-07-15 15:07:30 +0000
commitf6ddaa2a292bc9e4d5190a413c0b4c1fa7c81374 (patch)
tree93d1d79c09a10488afc120d7a0c0e873dbdc44a6 /include
parentf7180e5eac60f63c04b1ab3b709e338e02c5a7ea (diff)
downloadnewlib-f6ddaa2a292bc9e4d5190a413c0b4c1fa7c81374.zip
newlib-f6ddaa2a292bc9e4d5190a413c0b4c1fa7c81374.tar.gz
newlib-f6ddaa2a292bc9e4d5190a413c0b4c1fa7c81374.tar.bz2
include/elf/
* mips.h (Tag_GNU_MIPS_ABI_FP): Remove comment. (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE, Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT, Val_GNU_MIPS_ABI_FP_64): New enum. bfd/ * elfxx-mips.c (mips_elf_merge_obj_attributes): Replace hardcoded magic numbers with enum values. binutils/ * readelf.c (display_mips_gnu_attribute): Replace hardcoded magic numbers with enum values. gdb/ * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic numbers with enum values.
Diffstat (limited to 'include')
-rw-r--r--include/elf/ChangeLog7
-rw-r--r--include/elf/mips.h29
2 files changed, 31 insertions, 5 deletions
diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog
index 6309d1c..8445e61 100644
--- a/include/elf/ChangeLog
+++ b/include/elf/ChangeLog
@@ -1,3 +1,10 @@
+2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * mips.h (Tag_GNU_MIPS_ABI_FP): Remove comment.
+ (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE,
+ Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT,
+ Val_GNU_MIPS_ABI_FP_64): New enum.
+
2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
* mips.h (EF_MIPS_NAN2008): New macro.
diff --git a/include/elf/mips.h b/include/elf/mips.h
index 84700b4..d25e773 100644
--- a/include/elf/mips.h
+++ b/include/elf/mips.h
@@ -1129,11 +1129,30 @@ extern void bfd_mips_elf64_swap_reginfo_out
enum
{
/* 0-3 are generic. */
- Tag_GNU_MIPS_ABI_FP = 4, /* Value 1 for hard-float -mdouble-float, 2
- for hard-float -msingle-float, 3 for
- soft-float, 4 for -mips32r2 -mfp64; 0 for
- not tagged or not using any ABIs affected
- by the differences. */
+
+ /* Floating-point ABI used by this object file. */
+ Tag_GNU_MIPS_ABI_FP = 4,
+};
+
+/* Object attribute values. */
+enum
+{
+ /* Values defined for Tag_GNU_MIPS_ABI_FP. */
+
+ /* Not tagged or not using any ABIs affected by the differences. */
+ Val_GNU_MIPS_ABI_FP_ANY = 0,
+
+ /* Using hard-float -mdouble-float. */
+ Val_GNU_MIPS_ABI_FP_DOUBLE = 1,
+
+ /* Using hard-float -msingle-float. */
+ Val_GNU_MIPS_ABI_FP_SINGLE = 2,
+
+ /* Using soft-float. */
+ Val_GNU_MIPS_ABI_FP_SOFT = 3,
+
+ /* Using -mips32r2 -mfp64. */
+ Val_GNU_MIPS_ABI_FP_64 = 4,
};
#endif /* _ELF_MIPS_H */