Skip to content

Commit d17ee7f

Browse files
committed
regenerated
modified: doc/libdwarf.pdf Now mentions mmap() is usable only on Elf object files. Other objects always use malloc(). modified: src/lib/libdwarf/libdwarf.h
1 parent 7f7df06 commit d17ee7f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

doc/libdwarf.pdf

124 Bytes
Binary file not shown.

src/lib/libdwarf/libdwarf.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,9 @@ struct Dwarf_Obj_Access_Section_a_s {
800800
This is part of the allowance of mmap for
801801
loading sections of an object file.
802802
803+
The option of using mmap() only applies to
804+
Elf object files in this release.
805+
803806
@see dwarf_set_load_preference()
804807
*/
805808
enum Dwarf_Sec_Alloc_Pref {
@@ -9866,10 +9869,12 @@ DW_API int dwarf_object_detector_fd(int dw_fd,
98669869
Functions related to the choice of malloc/read
98679870
or mmap for object section memory allocation.
98689871
9869-
The default allocation preference is mmap.
9872+
The default allocation preference is malloc().
98709873
9874+
98719875
The shell environment variable DWARF_WHICH_ALLOC
9872-
is also involved at runtime.
9876+
is also involved at runtime but it only applies
9877+
to reading Elf object files..
98739878
If the value is 'malloc' then use of read/malloc
98749879
is preferred.
98759880
If the value is 'mmap' then use of mmap is
@@ -9894,6 +9899,8 @@ DW_API int dwarf_object_detector_fd(int dw_fd,
98949899
will be used for object section data, but does
98959900
cause mmap() to be used when possible.
98969901
9902+
In 0.12.0 mmap() is only usable on Elf object files.
9903+
98979904
dw_load_preference is one of
98989905
Dwarf_Alloc_Malloc (1)
98999906
Dwarf_Alloc_Mmap (2)

0 commit comments

Comments
 (0)