summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2016-01-28 01:45:15 +0000
committeremaste <emaste@FreeBSD.org>2016-01-28 01:45:15 +0000
commit01c6097988800805640f7aa2109489dd23d7f990 (patch)
tree2acbfbd7a1057678def5763b075ab687f4629e1f /sys/sys
parent4f5539ac65cf9b57223f4843a05ffa1af9dad874 (diff)
downloadFreeBSD-src-01c6097988800805640f7aa2109489dd23d7f990.zip
FreeBSD-src-01c6097988800805640f7aa2109489dd23d7f990.tar.gz
MFC r294530: Add STB_GNU_UNIQUE symbol binding definition
Red Hat created STB_GNU_UNIQUE to handle certain special cases relating to dynamically loading C++ DSOs[1]. We don't (currently) have support for STB_GNU_UNIQUE, but ought to reserve the value in ELFNN_ST_BIND. This will also be used by an upcoming ELF Tool Chain import.
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/elf_common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/elf_common.h b/sys/sys/elf_common.h
index d6ca101..b7e1fb2 100644
--- a/sys/sys/elf_common.h
+++ b/sys/sys/elf_common.h
@@ -748,8 +748,9 @@ typedef struct {
#define STB_LOCAL 0 /* Local symbol */
#define STB_GLOBAL 1 /* Global symbol */
#define STB_WEAK 2 /* like global - lower precedence */
-#define STB_LOOS 10 /* Reserved range for operating system */
-#define STB_HIOS 12 /* specific semantics. */
+#define STB_LOOS 10 /* Start of operating system reserved range. */
+#define STB_GNU_UNIQUE 10 /* Unique symbol (GNU) */
+#define STB_HIOS 12 /* End of operating system reserved range. */
#define STB_LOPROC 13 /* reserved range for processor */
#define STB_HIPROC 15 /* specific semantics. */
OpenPOWER on IntegriCloud