Debian Codegraph @

src/lib/libdwarf/NEWS

raw
1 7 July 26, 2021
2 The only abort() in libdwarf has been removed.
3 The abort() was in case a user setup
4 for error handling provided no means to report
5 an error (see errhand and errarg in documentation
6 of dwarf_init_b() etc).
7 As of now the error code simply returns.
8 A DW_DLV_ERROR is returned
9 from the call to libdwarf and a single line
10 message starting with 'libdwarf'
11 is printed, with the error number, to stderr.
12 December 26, 2020
13 With mm -> pdf the table of contents of libdwarf2.1.pdf
14 is at the end of the pdf and difficult to locate.
15 Now we extract a companion pdf: libdwarftoc.pdf , which
16 contains the 1 page abstract followed by the table of contents
17 and list of figures. We hope this will make finding
18 functions of interest easier.
19 July 09, 2020
20 Access to .debug_gnu_pubtypes and .debug_gnu_pubnames
21 is possible. See function dwarf_get_gnu_index_head().
22 Recently support for reading .debug_loclists
23 was added.
24 Recently support for reading .debug_rnglists
25 was added.
26 See libdwarf2.1.pdf and libdwarf.h for details.
27 March 14, 2020
28 The documentation of dwarf_diename() and dwarf_die_text()
29 has been corrected. Never dwarf_dealloc() the strings
30 returned by these functions.
31 The new function dwarf_set_de_alloc_flag(0) allows
32 consumer code to save memory space at run time.
33 If it is called it leaves all dwarf_dealloc() calls
34 to the libdwarf caller: dwarf_finish() will not be able
35 to free leftover allocations. By default libdwarf
36 does keep track of allocations and dwarf_finish() will
37 clean up any allocations not already dwarf_dealloc()-d.
38 Unless the DWARF one is reading is really large
39 it is best to let libdwarf keep track of its allocations.
40 so there will be no leaks after dwarf_finish().
41 November 26, 2019
42 The dwarf_init*() functions no longer use libelf
43 so calling dwarf_get_elf() cannot succeed unless
44 dwarf_elf_init() or dwarf_elf_init_b() was used
45 to open a Dwarf_Debug on an object file.
46 This change actually happened around 5 May 2019
47 but was not documented properly till 26 November.
48 January 15, 2019
49 All references to C data types spelled *int16* *int32* or
50 *int64* have been removed. Dwarf_Unsigned is used instead.
51 This simplifies builds in certain environments.
52 December 05, 2018
53 Many new producer functions provided. Now no matter
54 what producer task is to be done there is a version
55 that returns DW_DLV_OK/DW_DLV_ERROR and no ugly
56 casting of return values is needed to check for success/failure.
57 All the old interfaces continue to work.
58 One can switch from
59 Dwarf_P_Attribute dwarf_add_AT_name(Dwarf_P_Die die,
60 char* name,
61 Dwarf_Error* error);
62 (requires a cast to check return code DW_DLV_BADADDR)
63 to
64 int dwarf_add_AT_comp_dir_a(Dwarf_P_Die ownerdie,
65 char* current_working_directory,
66 Dwarf_P_Attribute * outattr,
67 Dwarf_Error* error);
68 (no cast,type safe)
69 for example.
70 The libdwarf2p.1.mm document table-of-contents
71 lists only the latest functions, but all the documentation
72 of all the earlier versions remain in the document as
73 subsections.
74 October 24, 2018
75 Now supports reading MacOS dSYM object files.
76 May 17, 2017
77 Now supports some COMDAT groups as well as split-dwarf.
78 Some new functions added so consumer code can know
79 what the sections and groups contain.
80 Some compilers emit groups findable only with relocation
81 data: libdwarf does not understand those groups.
82 April 02, 2017
83 The consumer code now reads DWARF5 split-dwarf sections.
84 The functions dwarf_init_b() and dwarf_elf_init_b()
85 and dwarf_object_init_b() have a groupnumber argument
86 added. For non-split-dwarf objects the original
87 dwarf_init() and dwarf_elf_init() and
88 dwarf_object_init() functions continue to work properly.
89 September 11, 2016
90 The producer code is getting a new batch of functions.
91
92 For each existing producer call returning
93 a value other than DW_DLV_OK/DW_DLV_ERROR/DW_DLV_NO_ENTRY
94 a new function returning one of those three codes with
95 a pointer argument added to return the actual desired
96 value (that used to be the 'return').
97 The existing calls require the caller to do ugly casting
98 to determine whether the call did its work or got an error.
99 The new calls have type-safe interfaces that separate
100 the desired result from the error-indication.
101 So producer calls look more like consumer calls.
102
103 The existing historical producer interfaces will remain
104 unchanged and will continue to be supported. The
105 existing interfaces will simply call the new interfaces
106 so there is no code duplication: Old and new use the same
107 implementation.
108
109 Source and binary compatibility is retained, but
110 users of the producer code can, when they wish,
111 partially or fully convert to the new interfaces.
112
113 This work will be ongoing and gradual, not 'all at once'.
114
115 August 27, 2016
116 Now the producer is capable of producing .debug_str strings.
117 Strings are never duplicated in .debug_str.
118 See dwarf_pro_set_default_string_form() in libdwarf2p.1.pdf
119 May 23, 2016
120 When building a shared-library the soname is set
121 in the dynamic section "libdwarf.so.1".
122 Much more testing of object correctness is done
123 to catch corrupted dwarf and corrupted object files.
124 March 14, 2016
125 When libdwarf callers provide neither an error argument nor
126 an error-handler function pointer libdwarf gives up on detecting
127 an error. Before now it emitted a short message on stderr
128 and did abort(). Now it emits a short message on stdout
129 and does abort(). Having libdwarf just stop application
130 processing (stopping the entire application) was never
131 good application-development policy, so one hopes no one
132 ever relied on doing no-error-handling themselves.
133 So one hopes no one will actually notice this change.
134 The change makes it much easier to test that the error
135 handling is all behaving as intended.
136 March 1, 2016
137 Much support of GNU extensions to dwarf and
138 of DWARF5 features now exist in libdwarf.
139 Including the ability to deal with the most
140 usual forms of split-dwarf.
141 Handling of zlib compression of dwarf is now
142 automatic (assuming you had zlib visible when
143 configuring libdwarf).
144 May 01, 2015
145 dwarf_next_cu_header_d() is the latest extension for CU reading.
146 Earlier versions still supported.
147 dwarf_die_from_hash_signature() added so readers can
148 use a hash to access a dwp package file DIE.
149 New support for some of DWARF5 and for dwp debug-fission
150 package file reading.
151 February 25, 2015
152 Now gennames uses dwgetopt() instead of getopt.
153 So it will more easily build where no getopt() available.
154 We copied dwgetopt.h, .c here (rather than reaching around
155 to dwarfdump) to keep the libdwarf build more easily
156 buildable separate from dwarfdump.
157
158 January 8, 2015
159 When malloc fails (out of space) dwarfdump will now
160 use a statically-allocated Dwarf_Error_s struct so it can get
161 the original malloc failure (or other error) reported back to
162 the calling client.
163
164 Some checks for invalid Elf files were changed to actually
165 report errors properly. Thanks to Edward Williamson for
166 providing test cases with odd errors in the Elf and DWARF.
167
168 May 19, 2014
169 REASON FOR RELEASE
170 Now handles DebugFission (part of the unreleased standard
171 named DWARF5) in which debug information can be split from
172 objects and gathered into separate object files.
173
174 MINOR POINT:
175
176 Added a caveat that dwarf_errmsg() returned string pointers are not
177 necessarily pointers that can be relied on to be valid for the
178 duration of the current executable. It's best for consumers
179 to print or copy the string right away and then forget the returned
180 pointer. This restriction is probably already met by
181 most conservative consumer code: earlier, nothing was said about
182 the lifetime of the string! Eventually it would be nice to
183 actually have more ephemeral strings as then some much better
184 error strings could easily be produced with no leakage and
185 no growth in the size of the running executable.
186 For now, though, all dwarf_errmsg() strings continue to point to
187 static strings. Just please don't depend on it!
188
189 BINARY & SOURCE INCOMPATIBLITY:
190
191 The Producer code drops old dwarf_producer_init* functions
192 and provides an old name with a new interface: dwarf_producer_init().
193 The producer callback function is renamed Dwarf_Callback_Func.
194 Hence code calling the libdwarf producer must change.
195
196 Code calling the consumer interface is not affected.
197
198 The determination of what/how to emit DWARF is now determined
199 at run time, not at build time. It's now much simpler to
200 get the sort of output you want. Provision is made for emitting
201 DWARF3,4,5 and 5 (though that provision is at a very early stage
202 and not much supported yet).
203
204 The postal addresses for SGI in the copyright comments
205 changed from time to time and are no longer accurate.
206 So they are gradually being removed.
207 March 17, 2014
208 The dwarf.v2.mm and index.v2.mm and their pdf files have been
209 removed from the distribution. Those files are available
210 on dwarfstd.org and they are 20 years old, so removed
211 from libdwarf.
212 January 29, 2014
213 Now using dwarf_tsearch() instead of the original complicated
214 allocation code.
215 October 14, 2013
216 The Callback_Func declarations in libdwarf.h were missing a
217 const on the name argument. Adding it removes compiler warnings.
218 But removing it means client code calling
219 producer functions has to change to get their
220 callback function declarations/definitions to match.
221 The change does not affect those calling the consumer interfaces.
222 August 15, 2013
223 Now the printf (stdout) here go through a callback function instead
224 of actually using stdout. That way dwarfdump and other apps have full
225 control of libdwarf output from dwarf_print_lines() for example.
226 It also means callers of dwarf_print_lines() need to have called
227 dwarf_register_printf_callback() to get any actual print output.
228 January 26, 2013
229 Retracted the incompatible change. The interfaces are
230 again compatible with previous releases and the January 25
231 release is withdrawn. Has all the fixes of Jan 25 present
232 in the code.
233 January 25, 2013
234 The definition of the Dwarf_Loc struct
235 could not handle DW_OP_GNU_const_type
236 so it had to change. The new field added makes this version of libdwarf
237 incompatible with any existing dwarfdump. Rebuild dwarfdump
238 and dwarfdump2 to use it with this libdwarf.
239 Moved firmly into C89/C90 usage by more complete use of const
240 and be using int x(void) for example to prototype parameter-less
241 functions. Compiles close to cleanly with
242 gcc options -Wsystem-headers
243 -Wall -Wsign-compare
244 -Wno-format-y2k -W
245 -Wno-unused-parameter -Wstrict-prototypes
246 -Wmissing-prototypes -Wpointer-arith
247 -Wreturn-type -Wcast-qual -Wwrite-strings
248 -Wswitch -Wshadow -Wunused-parameter
249 -Wcast-align -Wchar-subscripts -Winline
250 -Wnested-externs -Wredundant-decls
251 -Wold-style-definition -Wno-pointer-sign
252
253 November 29, 2012
254 The function dwarf_formflag() now returns the actual flag value
255 instead of just 1 or 0. It has been coded wrong a very long time.
256 The DWARF documents (DWARF2 on) have always made it clear any non-zero
257 value means true and zero means false. Now consumers can properly
258 note the value the compiler actually put into the flag byte.
259 November 17, 2012
260 New headers contain the relocation codes for various object
261 ABIs. These headers are needed in libdwarf and expected
262 by builds of dwarfdump[2] for best dwarfdump[2] relocation
263 handling.
264 It is best to build libdwarf and dwarfdump together for
265 best handling of relocatable objects.
266 GNU compilers may generate the operator
267 DW_OP_GNU_implicit_pointer which is generated differently in
268 DWARF2 versus DWARF3/4. Hence a new interface to libdwarf
269 dwarf_loclist_from_expr_b() adds the compilation unit
270 DWARF version number to the argument list (as compared
271 to dwarf_loclist_from_expr_a()). Hopefully few
272 consumers will need to change to use the new interface.
273 December 13, 2011
274 dwarf_lineoff() is now deprecated, dwarf_lineoff_b() is
275 strongly recommended instead.
276 dwarf_add_line_entry() does not have all the line fields
277 needed for generating DWARF3/4, use dwarf_add_line_entry_b() instead.
278 Generation of DWARF3/4 is not yet functional, this new function
279 is a first step.
280 October 29, 2011
281 Added support for reading .debug_types (type unit) data.
282 October 26,2011
283 Revised the Makefile.in and README to make building libdwarf
284 easier to accomplish with unusual locations of libelf headers
285 or other headers or libraries.
286 June 04,2011
287 Non-Elf objects could be used with libdwarf, but
288 no one has contributed non-elf-reading code for libdwarf
289 and a crucial detail was not documented so those writing
290 such object-reading code have not done it entirely correctly.
291 Fundamentally such code must treat a section index of 0 as
292 a real but empty section with no name (an empty name).
293 dwarf_elf_access.c and dwarf_elf_init_finish.c have some comments
294 on this point now.
295 March 29,2011
296 All the code changed a lot because indentations were all over
297 the map, now they are consistent.
298 Additions were made to DWARF4 support.
299 Now we use dicheck (a new open source application) to check indentation.
300 Library users will not see any change, all interfaces remain
301 as before.
302 January 12,2010
303 A libdwarf user has noticed that the April 4, 2009
304 consumer function changes introduced
305 a problem: the default CFA column was DW_FRAME_CFA_COL
306 even when a newer DWARF3 consumer frame interface like
307 dwarf_get_fde_info_for_all_regs3() is used. The
308 libdwarf2.1.pdf documentation
309 stated the default should be DW_FRAME_CFA_COL3 in that case.
310
311 The introduction of a caller-specified frame-column
312 function (dwarf_set_frame_cfa_value())
313 in that April 4, 2009 release was flawed in that it failed
314 to match the documentation.
315
316 Now the default frame column is DW_FRAME_CFA_COL3 unless
317 the configure option --enable-oldframecol
318 is used at libdwarf build time.
319 If you are using libdwarf old frame consumer interfaces
320 dwarf_get_fde_info_for_reg(), dwarf_get_fde_info_for_cfa_reg(),
321 and dwarf_get_fde_info_for_all_regs() and want unchanged operation
322 then please configure libdwarf with --enable-oldframecol .
323 or add the call dwarf_set_frame_cfa_value(dbg,DW_FRAME_CFA_COL)
324 after calling a libdwarf initialization function.
325 It is impossible to configure a single libdwarf.a so that
326 it transparently defaults to both DW_FRAME_CFA_COL
327 and DW_FRAME_CFA_COL3.
328
329 A call such as dwarf_set_frame_cfa_value(dbg,DW_FRAME_CFA_COL3)
330 or dwarf_set_frame_cfa_value(dbg,DW_FRAME_CFA_COL)
331 (or some other name/value of your choosing)
332 following the dwarf_init() call gives your application
333 full control of the frame cfa column independent of the libdwarf
334 configure option. See the libdwarf2.1.pdf documentation for details.
335 We strongly recommend that you use dwarf_set_frame_cfa_value()
336 to avoid a configure-time dependency.
337
338 July 7, 2009
339 Implemented support for elf 'rela' relocations so libdwarf and dwarfdump
340 can read *nix .o files with such relocations reasonably,
341 at least for some machines
342 (see dwarf_elf_access.c for EM_ in 'case' statements.)
343 This changes the binary access for non-Elf object users (folks
344 who have coded there own non-Elf access routines do reference
345 internals of dwarf_opaque.h), but the new data can be left zero
346 and the rest of the code should work fine.
347 dwarf_opaque.h gathers section data in Dwarf_Section_s structs
348 which simplifies the code in dwarf_init_finish.c and clarifies
349 what fields are section related.
350 July 4, 2009
351 When something erroneous is detected in a die
352 information about the CU context may be of interest.
353 So we added dwarf_CU_dieoffset_given_die(), a function which allows
354 clients to find the relevant CU die for any die.
355 The consumer can use normal attribute access functions to
356 print information about that CU die (and the erroneous die,
357 of course). See the libdwarf consumer document for more
358 information.
359 April 27, 2009
360 Interface additions: dwarf_loclist_from_expr_a() and
361 dwarf_get_ranges_a() are new interfaces like
362 dwarf_loclist_from_expr() and dwarf_get_ranges() respectively,
363 but with arguments allowing
364 full support for different CIEs
365 in an executable having different address-sizes
366 (and their compilation unit DIEs if .debug_info is present).
367 dwarf_get_loclist_entry() does not support
368 differing address sizes per CIE/CU.
369 April 4, 2009
370 Added new functions dwarf_set_frame_cfa_value()
371 dwarf_set_frame_same_value(), and
372 dwarf_set_frame_undefined_value(). These are essential
373 for ABIs where the real register numbers exceed 1033
374 (such as ppc). Failing to use these leads to
375 frame instructions DW_CFA_undefined and
376 DW_CFA_same_value emitting values that cannot be
377 interpreted correctly by a libdwarf consumer.
378 See dwarfdump for examples of use.
379 Feb 14, 2009
380 Added configure option --enable-nonstandardprintf
381 which makes it easy to get printf of Dwarf_Unsigned (etc)
382 types correct even for non-standard compilers.
383 Dec 30, 2008
384 Added interfaces for getting and printing the .debug_ranges
385 data.
386 Dec 8, 2008
387 Record the abbreviation 'code' (index) in each DIE.
388 Making it possible for a pretty-printer to print the
389 abbreviation code.
390 Sep 30, 2008
391 Phil Mucci provided an a.out test chase which demonstrates a bug
392 in 64bit DWARF2 output by gcc. Now libdwarf works around this
393 and with -v -v -v -v prints a warning.
394 Sep 29, 2008
395 Thanks to Phil Mucci for providing a little-endian 64bit
396 test object file that exposed a problem when there are 'extra' bytes
397 (possibly unused) after a line table prologue header and before the
398 line table itself. This releases fixes the bug.
399
400 Thanks to Matthew Legendre for pointing out that we were sharing
401 de_fde_count for eh and non-eh and that could cause erroneous
402 error returns in a couple of functions.
403 These counts are now separate.
404 April 9, 2008
405 libdwarf would behave badly if one compilation unit had more than 64K
406 abbreviations: It was both very slow dealing with abbreviations and would
407 get mixed up and error-off. Increased the size of some internal variables
408 and rewrote abbreviation lookup.
409 February 18, 2008
410 It is now possible to write one's own access to objects, making it possible
411 to use a different library than libelf or even read a completely
412 different object format than ELF.
413 See dwarf_object_init() and see the new source files
414 dwarf_original_elf_init.c and dwarf_elf_access.c for example
415 code using the new function-pointer approach as it's implementation.
416 Thanks to Josh Fuhs for doing the design and 99% of the work to make
417 this happen.
418 February 2, 2008 As of 2021 DW_DLC only in libdwarfp
419 Now pro_init() defaults to standard DWARF3 generated offset sizes.
420 But if a new flag DW_DLC_OFFSET_SIZE_64 or'd into flags passed to
421 dwarf_produser_init() or dwarf_producer_init_b,
422 the DWARF3 extended offset size is generated (if the address size
423 is 64 bit).
424 The new configure option --enable-dwarf-format-strict-32bit
425 forces pro_init() to always cause 32bit offset dwarf generation.
426 The new configure option --enable-dwarf-format-sgi-irix forces
427 the old SGI IRIX 64bit offset generation for 64bit pointer size objects.
428
429 This is intended to simplify standard DWARF3 generation with
430 the now-normal use of 32bit DWARF offsets for both 32 and 64
431 bit pointer objects.
432
433 It does require that anyone wanting SGI IRIX dwarf generation
434 with its non-standard offsets for 64bit objects use the new
435 --enable-dwarf-format-sgi-irix configure time option.
436
437 This has no effect on dwarf reader code. It affects code calling
438 the libdwarf producer interfaces.
439
440 December 8, 2007
441 Had to add an ugly configure conditional as libelf has
442 unconditional use of off64_t in recent libelf.h
443 July 3, 2007
444 A new interface function, dwarf_loclist_from_expr(),
445 allows easy extraction of dwarf expression bytes from
446 expressions in frame data.
447 May 8, 2007
448 Now documents released as .mm and .pdf (no longer as .ps).
449 May 7, 2007
450 Incorporates Sun Microsystems extensions to dwarf.h and
451 to the consumer and producer libraries. The changes
452 include corrections so the producer library cleans up it's memory
453 use on a call to dwarf_producer_finish(dbg).
454 Thanks to Chris Quenelle of Sun for these contributions.
455
456 March 20, 2007
457 nroff/troff and the AT&T -mm package are not widely available,
458 so now the Makefile refers to groff, which works quite nicely.
459
460 February 20, 2007
461 Documented libdwarf thread safety in README.
462 Fixed memory leak in dwarf macro reading code.
463 Removed use of static data in dwarf macro
464 reading code: now uses stack/heap (for
465 thread safety).
466
467 February 9, 2007
468 Maintenance of libdwarf is now outside SGI
469 as David Anderson has left SGI.
470
471 March 29, 2006
472 The March 27, 2006 version accommodates DWARF3.
473 Some people have been using the library without
474 altering dwarf.h, libdwarf.h to accommodate
475 large numbers of registers. This exposed a bug
476 (an off-by-one error) but also makes it clear
477 additional documentation is needed. So
478 in libdwarf large new comments near 'TARGET DEPENDENCY'
479 attempt to explain better.
480 Oct 03, 2005
481 The July version had an incompatible interface: old
482 dealloc code did not always work right. The incompatibility
483 is now fixed and the new features remain.
484
485 July 15, 2005
486 New optional alloc-check code optionally checks all
487 allocated memory is freed (malloc_check.h malloc_check.c)
488 Various new dealloc routines written as the previous approach
489 of letting client code do detailed dealloc turned out not
490 to dealloc all memory.
491 To get the new checking you must manually change a line
492 in malloc_check.h and rebuild libdwarf.
493
494
495 Mar 31, 2005
496 Documented the libexc.so/.debug_funcnames
497 dependency and the 64bit-offset DWARF extension in
498 mips_extentions.{mm,ps}.
499
500 Mar 21, 2005
501 gcc 3.3 and 3.4 .eh_frame 'z' augmentations are not handled
502 correctly, so libdwarf gives an error when attempting to
503 print such. gcc 2 'eh' augmentation is simpler and
504 prints correctly. (.eh_frame is a GNU section,
505 not DWARF2/3, and what is recorded in .eh_frame is not
506 specified by DWARF2/3, though .eh_frame does resemble
507 DWARF2/3 .debug_frame).
508
509
510 Oct 28, 2004
511 Updated contact address in copyright: SGI moved 1/4 mile
512 in 2003 to a new address: 1500 Crittenden Lane.
513
514 Documented additional vendor extensions.
515
516 Oct 27, 2004
517 Added known vendor extensions to dwarf2/3 to dwarf.h
518 HP, GNU, PGI and UPC extensions are now recorded.
519 Recorded vendor extensions from Concurrent.
520
521 Feb 3, 2004
522 If 'Dwarf_Word' is 64 bits, two macros reading leb numbers
523 fail to initialize upper bits of the values read.
524 First noticed with bogus line numbers printing from dwarfdump.
525 Now we use already-existing functions, avoiding the problem.
526
527 Oct 02, 2003
528 Support .debug_loc section fully.
529
530 Sept 29, 2003
531 Support DW_FORM_indirect properly.
532 Supports loclists in part (but not multiple loclist entries yet).
533 Support 'padding bytes' at end of .debug_arange and
534 .debug_pubnames and .debug_pubtypes per CU
535 (recent dwarf committee email made it clear this is appropriate).
536
537 May 23, 2002
538 Libdwarf now asks for sections only when they are
539 used, so that unneeded sections aren't loaded.
540 Support for using SGI's ELF library as an alternative to
541 using AT&T libelf-style has been added (the SGI ELF
542 library is presently only available internally to SGI).
543
544 Jan 10, 2002
545 Fixed memory leak in dwarf_finish().
546
547 Aug 21, 2001
548 If one called dwarf_add_file_decl()
549 or dwarf_add_directory_decl() but never added a line,
550 .debug_line was not produced. This was a mistake,
551 as if any file or directory was provided .debug_line
552 should be produced. Now it is produced.
553
554 June 14, 2001
555 Given a cu header offset, it was not easy to derive the
556 CU header DIE offset. Created the new
557 function dwarf_get_cu_die_offset_given_cu_header_offset()
558 do get the CU header DIE offset.
559 Added the function dwarf_get_arange_cu_header_offset()
560 so the cu header offset could be retrieved from .debug_aranges
561 information.
562
563 June 07, 2001
564 Major bug in dwarf_leb.c decoding large integers
565 (Dwarf_Signed 64 bit where library is compiled in ILP32)
566 found and fixed.
567
568 May 21, 2001
569 Some small fixes have been found by various folks,
570 so it seems time to prepare a new source release.
571 See ChangeLog for details.
572
573 April 15, 2000
574 The libdwarf copyright has changed to
575 version 2.1 of the GNU Lesser General Public License.
576 Anyone holding a version of libdwarf that was published
577 before this new copyright is allowed to use
578 the copyright published in that earlier libdwarf source
579 on the earlier source
580 or to use
581 this new copyright on the earlier source,
582 at their option.
583
584
585 December 08, 1999
586 The dwarf committee has adopted the offset-extension
587 proposal. This allows compatibly emitting
588 dwarf with 64bit offsets.
589
590 The dwarf reader now automatically figures out which is in use.
591 The dwarf writer configures itself at the time the
592 writer initialization routine is called, though
593 the writer is restricted, at libdwarf
594 compile time, to one of
595 mips/sgi pure 32/pure 64 offsets/pointers.
596
597 32bit offsets only (per dwarf 2.0.0 and cygnus)
598
599 32bit offsets with extension to 64bit offsets
600 allowed (the offset-extension newly passed).
601
602 In addition, a great deal of duplicate code
603 for the sgi .debug_weaknames, .debug_funcnames,
604 .debug_varnames and .debug_typenames sections has
605 been removed: a single set of functions does the real work now.
606
607 Sept 29, 1999
608 Just found out that cygnus is, on 64bit targets, generating
609 32bit offsets (as elf32 has, for example) with 64 bit
610 pointers (in references to text and data).
611 Whereas sgi has always generated 64bit dwarf with
612 64 bit offsets (as in elf64) and 64bit pointers for
613 64bit pointer objects.
614 I'll call the sgi approach 64-bit and the cygnus approach
615 32bit-offsets.
616
617 Cygnus is following the DWARF2 spec as written, so they are
618 right in doing only 32bit-offsets.
619
620 Folks at sgi (including me) think that, as for elf64,
621 the offsets in dwarf for 64bit pointer-apps should be
622 64 bits. We think it is only a matter of time
623 before we really *need* 64bit offsets and when that happens
624 it will be on an important app. Disk space is cheap,
625 so lets just go 64 bit on 64bit apps (such as ia64 apps)
626 to avoid a future problem.
627 I([email protected]) think the 'pointer-size' references in the dwarf
628 spec were really written for 64-bit pointer apps.
629 I don't recall serious consideration of 64bit pointer
630 apps in the committee deliberations (I did miss
631 a couple of meetings) and think 64bit offsets
632 are consistent with dwarf2, even though the speci
633 was not written for such. We think true full 64 bit
634 dwarf2 is the right way to go (the spec changes
635 are obvious: file and section offsets become 64bit
636 with 64bit pointer objects.
637
638 MIPS/SGI is definitely 64-bit offsets for 64 bit objects,
639 cygnus is definitely 32bit-offsets for earlier 64bit pointer
640 environments.
641
642 At any rate, now the dwarf reader allows and accommodates
643 both and the dwarf producer also accommodates both.
644 Some tweaking of the pro_init.c or dwarf_init_finish.c
645 files may be necessary in future: no other changes should
646 be needed to accommodate the two 64bit approaches, as
647 the library (and dwarfdump) now deal with both forms.
648
649
650 August 20, 1999
651 Added some #ifndef/#define to pro_util.h to let libdwarf build
652 on more hosts. (since those hosts don't need the producer
653 code, AFAIK, zero values suffice for missing #defines.)
654
655 July 21, 1999
656 Now reader transparently reads either-endianness data
657 from an either-endianness object.
658 Updated dwarf.h and libdwarf.h to recognize
659 GNU egcs dwarf extensions and to print the egcs eh_frame
660 section.
661
662 June 10, 1999
663 gnu configure version of libdwarf made available for the
664 first time.
665 Still allows only same-endian-as-host in objects.
666
667 August, 1994
668 libdwarf source made available for ftp on sgigate.sgi.com
669 /ftp/pub
670
671 June, 1994
672 Consumer interface changed completely, following
673 "Candy Machine Interfaces" chapter from
674 "Writing Solid Code" by Steve Maguire (Microsoft Press).
675
676 April, 1993
677 Initial version of libdwarf for dwarf version 2
678 written at sgi.