summaryrefslogtreecommitdiffstats
path: root/lib/libelf/elf_update.3
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2007-09-08 08:20:12 +0000
committerjkoshy <jkoshy@FreeBSD.org>2007-09-08 08:20:12 +0000
commita632b8cbc06b11ee15d8fc45f6151164e0ad4941 (patch)
treea310665ee0de58d23fe911ec1d5847bb63080fe3 /lib/libelf/elf_update.3
parenta9286385b1c9ff755f32691256e5a3b7074e9e95 (diff)
downloadFreeBSD-src-a632b8cbc06b11ee15d8fc45f6151164e0ad4941.zip
FreeBSD-src-a632b8cbc06b11ee15d8fc45f6151164e0ad4941.tar.gz
Fix a bug that prevented applications from laying out ELF objects
with section header tables residing in between other sections. Introduce additional checks for overlaps between section data and the section header table when the application is performing section layout. Document additional error returns. Reported by: Kai Wang <kaiw27 at gmail dot com> Approved by: re (rwatson)
Diffstat (limited to 'lib/libelf/elf_update.3')
-rw-r--r--lib/libelf/elf_update.39
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libelf/elf_update.3 b/lib/libelf/elf_update.3
index 9831168..ad5240c 100644
--- a/lib/libelf/elf_update.3
+++ b/lib/libelf/elf_update.3
@@ -1,4 +1,4 @@
-.\" Copyright (c) 2006 Joseph Koshy. All rights reserved.
+.\" Copyright (c) 2006,2007 Joseph Koshy. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
@@ -23,7 +23,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd December 16, 2006
+.Dd September 08, 2007
.Os
.Dt ELF_UPDATE 3
.Sh NAME
@@ -228,6 +228,11 @@ Argument
.Ar elf
contained section descriptors that were incorrectly aligned or were
too small for their data.
+.It Bq Er ELF_E_LAYOUT
+The flag
+.Dv ELF_F_LAYOUT
+was set on the Elf descriptor and the section header table overlapped
+an extent in the object mapped by a section descriptor.
.It Bq Er ELF_E_MODE
An
.Dv ELF_C_WRITE
OpenPOWER on IntegriCloud