summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys
diff options
context:
space:
mode:
authorab196087 <none@none>2006-09-19 15:38:37 -0700
committerab196087 <none@none>2006-09-19 15:38:37 -0700
commit9039eeaf76678a41be39feb97b4f724272ef7e18 (patch)
treea212dbf67415286780fcda66a0fdebf596d758f2 /usr/src/uts/common/sys
parentef4c14d24cff432d9d11d0a63d2676aa5d58fefe (diff)
downloadillumos-gate-9039eeaf76678a41be39feb97b4f724272ef7e18.tar.gz
PSARC 2006/526 SHT_SUNW_LDYNSYM - default local symbol addition
4934427 runtime linker should load up static symbol names visible to dladdr()
Diffstat (limited to 'usr/src/uts/common/sys')
-rw-r--r--usr/src/uts/common/sys/elf.h3
-rw-r--r--usr/src/uts/common/sys/link.h4
2 files changed, 6 insertions, 1 deletions
diff --git a/usr/src/uts/common/sys/elf.h b/usr/src/uts/common/sys/elf.h
index 10b4df023c..3e93d63b1a 100644
--- a/usr/src/uts/common/sys/elf.h
+++ b/usr/src/uts/common/sys/elf.h
@@ -401,7 +401,8 @@ typedef struct {
#define SHT_NUM 19
#define SHT_LOOS 0x60000000 /* OS specific range */
-#define SHT_LOSUNW 0x6ffffff4
+#define SHT_LOSUNW 0x6ffffff3
+#define SHT_SUNW_LDYNSYM 0x6ffffff3
#define SHT_SUNW_dof 0x6ffffff4
#define SHT_SUNW_cap 0x6ffffff5
#define SHT_SUNW_SIGNATURE 0x6ffffff6
diff --git a/usr/src/uts/common/sys/link.h b/usr/src/uts/common/sys/link.h
index 80ce240cf2..43edf601c5 100644
--- a/usr/src/uts/common/sys/link.h
+++ b/usr/src/uts/common/sys/link.h
@@ -117,6 +117,10 @@ typedef struct {
#define DT_SUNW_FILTER 0x6000000f /* symbol filter name */
#define DT_SUNW_CAP 0x60000010 /* hardware/software */
/* capabilities */
+#define DT_SUNW_SYMTAB 0x60000011 /* symtab with local fcn */
+ /* symbols immediately */
+ /* preceding DT_SYMTAB */
+#define DT_SUNW_SYMSZ 0x60000012 /* Size of SUNW_SYMTAB table */
#define DT_HIOS 0x6ffff000
/*