aboutsummaryrefslogtreecommitdiff
path: root/elfcpp/elfcpp.h
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2009-05-27 18:27:42 +0000
committerDoug Kwan <dougkwan@google.com>2009-05-27 18:27:42 +0000
commit06652544422051789ceaad4f6989591cb10eda1e (patch)
treec8c47ae3404300cdcb7c407048fedc0214136689 /elfcpp/elfcpp.h
parentcf65542bff183e502862c2f67ca4561d4ae99753 (diff)
downloadgdb-06652544422051789ceaad4f6989591cb10eda1e.zip
gdb-06652544422051789ceaad4f6989591cb10eda1e.tar.gz
gdb-06652544422051789ceaad4f6989591cb10eda1e.tar.bz2
2009-05-27 Doug Kwan <dougkwan@google.com>
* arm.h: New file. * elfcpp.h (enum SHT): Add ARM-specific special sections. (enum PT): Add ARM-specific section types. (enum SST): Add STT_ARM_TFUNC.
Diffstat (limited to 'elfcpp/elfcpp.h')
-rw-r--r--elfcpp/elfcpp.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/elfcpp/elfcpp.h b/elfcpp/elfcpp.h
index 7abc9e3..e148525 100644
--- a/elfcpp/elfcpp.h
+++ b/elfcpp/elfcpp.h
@@ -371,6 +371,17 @@ enum SHT
SHT_SPARC_GOTDATA = 0x70000000,
+ // ARM-specific section types.
+ // Exception Index table.
+ SHT_ARM_EXIDX = 0x70000001,
+ // BPABI DLL dynamic linking pre-emption map.
+ SHT_ARM_PREEMPTMAP = 0x70000002,
+ // Object file compatibility attributes.
+ SHT_ARM_ATTRIBUTES = 0x70000003,
+ // Support for debugging overlaid programs.
+ SHT_ARM_DEBUGOVERLAY = 0x70000004,
+ SHT_ARM_OVERLAYSECTION = 0x70000005,
+
// Link editor is to sort the entries in this section based on the
// address specified in the associated symbol table entry.
SHT_ORDERED = 0x7fffffff,
@@ -439,7 +450,11 @@ enum PT
// Stack flags.
PT_GNU_STACK = 0x6474e551,
// Read only after relocation.
- PT_GNU_RELRO = 0x6474e552
+ PT_GNU_RELRO = 0x6474e552,
+ // Platform architecture compatibility information
+ PT_ARM_ARCHEXT = 0x70000000,
+ // Exception unwind tables
+ PT_ARM_EXIDX = 0x70000001
};
// The valid bit flags found in the Phdr p_flags field.
@@ -486,6 +501,10 @@ enum STT
// The section type that must be used for register symbols on
// Sparc. These symbols initialize a global register.
STT_SPARC_REGISTER = 13,
+
+ // ARM: a THUMB function. This is not defined in ARM ELF Specification but
+ // used by the GNU tool-chain.
+ STT_ARM_TFUNC = 13,
};
inline STB