summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2007-11-23 11:29:36 +0000
committerjkoshy <jkoshy@FreeBSD.org>2007-11-23 11:29:36 +0000
commit02cd3fead53aa8b13da19f5e205c1e77d1329a34 (patch)
treec8bb4e338f1d8558c0ed86e5c3399774db90f546
parent9d7c423748316c4da947cbab1dfcf8e19398c77e (diff)
downloadFreeBSD-src-02cd3fead53aa8b13da19f5e205c1e77d1329a34.zip
FreeBSD-src-02cd3fead53aa8b13da19f5e205c1e77d1329a34.tar.gz
Sections of type SHT_GNU_versym use ELF type ELF_T_HALF. Update manual
page and code to match. Submitted by: jb MFC After: 1 day
-rw-r--r--lib/libelf/elf.31
-rw-r--r--lib/libelf/libelf_data.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/libelf/elf.3 b/lib/libelf/elf.3
index b208bc9..0727ba8 100644
--- a/lib/libelf/elf.3
+++ b/lib/libelf/elf.3
@@ -375,6 +375,7 @@ See
.It Dv SHT_SYMTAB_SHNDX Ta Dv ELF_T_WORD Ta Used with extended section numbering.
.It Dv SHT_GNU_verdef Ta Dv ELF_T_VDEF Ta Symbol version definitions.
.It Dv SHT_GNU_verneed Ta Dv ELF_T_VNEED Ta Symbol versioning requirements.
+.It Dv SHT_GNU_versym Ta Dv ELF_T_HALF Ta Version symbols.
.It Dv SHT_SUNW_move Ta Dv ELF_T_MOVE Ta ELF move records.
.It Dv SHT_SUNW_syminfo Ta Dv ELF_T_SYMINFO Ta Additional symbol flags.
.El
diff --git a/lib/libelf/libelf_data.c b/lib/libelf/libelf_data.c
index 873fac8..d2d583f 100644
--- a/lib/libelf/libelf_data.c
+++ b/lib/libelf/libelf_data.c
@@ -72,7 +72,7 @@ _libelf_xlate_shtype(uint32_t sht)
case SHT_GNU_verneed: /* == SHT_SUNW_verneed */
return (ELF_T_VNEED);
case SHT_GNU_versym: /* == SHT_SUNW_versym */
- return (-1); /* XXX */
+ return (ELF_T_HALF);
case SHT_SUNW_move:
return (ELF_T_MOVE);
case SHT_SUNW_syminfo:
OpenPOWER on IntegriCloud