summaryrefslogtreecommitdiff
path: root/abi-tags
diff options
context:
space:
mode:
Diffstat (limited to 'abi-tags')
-rw-r--r--abi-tags24
1 files changed, 24 insertions, 0 deletions
diff --git a/abi-tags b/abi-tags
new file mode 100644
index 0000000000..45d1d1f119
--- /dev/null
+++ b/abi-tags
@@ -0,0 +1,24 @@
+# This file defines the ABI tag value we will use in the ELF note included
+# in the startup code to be linked into every program.
+
+# The following lines list regexps matching canonical configurations, and
+# the associated ABI tag values. The entire list is processed, with
+# earlier entries taking precedence over later entries. So loose patterns
+# at the end of the list can give defaults.
+
+# The ABI tag values we use are 32-bit quantities stored in machine byte order.
+# Conventionally the high-order byte indicates the OS and the low three
+# bytes form a version number associated with a particular ABI version.
+
+# After the configuration regexp, four integers in C syntax appear
+# surrounded by any whitespace or punctuation, one for each byte, MSB first.
+
+# Configuration ABI OS ABI version
+# ------------- ------ -----------
+
+.*-.*-linux.* 0 2.0.0 # earliest compatible kernel version
+
+.*-.*-gnu-gnu.* 1 0.0.0
+
+# There is no catch-all default here because every supported OS that uses
+# ELF must have its own unique ABI tag.