]> git.ipfire.org Git - thirdparty/gcc.git/blob - libbacktrace/ChangeLog
CET shouldn't be enabled in 32-bit run-time libraries by defualt
[thirdparty/gcc.git] / libbacktrace / ChangeLog
1 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2
3 PR target/84148
4 * configure: Regenerate.
5
6 2018-02-15 Jakub Jelinek <jakub@redhat.com>
7
8 PR other/82368
9 * elf.c (SHT_PROGBITS): Undefine and define.
10
11 2018-02-14 Jakub Jelinek <jakub@redhat.com>
12
13 PR other/82368
14 * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define.
15 (struct elf_ppc64_opd_data): New type.
16 (elf_initialize_syminfo): Add opd argument, handle symbols
17 pointing into the PowerPC64 ELFv1 .opd section.
18 (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer
19 to structure with .opd data to elf_initialize_syminfo.
20
21 2018-01-31 Ian Lance Taylor <iant@golang.org>
22
23 * elf.c (elf_add): Close descriptor if we use a debugfile.
24 * btest.c (check_open_files): New static function.
25 (main): Call check_open_files.
26
27 2018-01-25 Ian Lance Taylor <iant@golang.org>
28
29 * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
30 desired CRC is zero.
31 (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
32
33 2018-01-25 Ian Lance Taylor <iant@golang.org>
34
35 * pecoff.c (coff_add): Only release syms_view if it is valid.
36
37 2018-01-25 Ian Lance Taylor <iant@golang.org>
38
39 * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
40
41 2018-01-24 Ian Lance Taylor <iant@golang.org>
42
43 * pecoff.c (coff_add): Use coff_read4, not memcpy.
44
45 2018-01-24 Ian Lance Taylor <iant@golang.org>
46
47 PR other/68239
48 * mmap.c (backtrace_free_locked): Don't put more than 16 entries
49 on the free list.
50
51 2018-01-19 Tony Reix <tony.reix@atos.net>
52
53 * xcoff.c (xcoff_incl_compare): New function.
54 (xcoff_incl_search): New function.
55 (xcoff_process_linenos): Use bsearch to find include file.
56 (xcoff_initialize_fileline): Sort include file information.
57
58 2018-01-16 Ian Lance Taylor <iant@golang.org>
59
60 * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
61 288.
62 (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
63 elf_zlib_inflate_table. Generate elf_zlib_default_dist_table.
64 (elf_zlib_default_table): Update.
65 (elf_zlib_default_dist_table): New static array.
66 (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
67 for block type 1.
68 * ztest.c (struct zlib_test): Add uncompressed_len.
69 (tests): Initialize uncompressed_len field. Add new test case.
70 (test_samples): Use uncompressed_len field.
71
72 2018-01-03 Jakub Jelinek <jakub@redhat.com>
73
74 Update copyright years.
75
76 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
77
78 * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
79 * aclocal.m4: Regenerate.
80 * Makefile.in: Likewise.
81 * configure: Likewise.
82
83 2017-10-06 Ian Lance Taylor <iant@golang.org>
84
85 * ztest.c (test_large): Pass unsigned long *, not size_t *, to
86 zlib uncompress function.
87
88 2017-10-05 Ian Lance Taylor <iant@golang.org>
89
90 * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
91 Read a four byte integer.
92 (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit
93 boundary before ever calling elf_zlib_fetch.
94 * ztest.c (test_large): Simplify print statements a bit.
95
96 2017-10-02 Ian Lance Taylor <iant@golang.org>
97
98 * ztest.c: #include <errno.h>.
99 (TEST_TIMING): Don't define, don't test.
100 (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
101 (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
102 (ZLIB_CLOCK_GETTIME_ARG): Define.
103 * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
104 * Makefile.am: Likewise.
105 * configure, Makefile.in: Rebuild.
106
107 2017-10-02 Thomas Schwinge <thomas@codesourcery.com>
108
109 PR other/67165
110 * Makefile.am: Append the content of clock_gettime_link to
111 ztest_LDADD.
112 * configure.ac: Test for the case that clock_gettime is in librt.
113 * Makefile.in: Regenerate.
114 * configure: Likewise.
115
116 PR other/67165
117 * configure.ac: Check for clock_gettime.
118 * config.h.in: Regenerate.
119 * configure: Likewise.
120 * ztest.c (average_time, test_large): Conditionalize test timing
121 on clock_gettime availability.
122
123 2017-09-29 Tony Reix <tony.reix@atos.net>
124
125 * xcoff.c: Initial support for DWARF debug sections in XCOFF.
126 (STYP_DWARF, SSUBTYP_DW*): Define.
127 (enum dwarf_section): Define.
128 (struct dwsect_info): Define.
129 (xcoff_add): Look for DWARF sections, pass them to
130 backtrace_dwarf_add.
131
132 2017-09-28 Ian Lance Taylor <iant@golang.org>
133
134 PR other/67165
135 * elf.c (__builtin_prefetch): Define if not __GNUC__.
136 (unlikely): Define.
137 (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
138 (b_elf_chdr): Define type.
139 (enum debug_section): Add ZDEBUG_xxx values.
140 (debug_section_names): Add names for new sections.
141 (struct debug_section_info): Add compressed field.
142 (elf_zlib_failed, elf_zlib_fetch): New static functions.
143 (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
144 (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
145 (HUFFMAN_SECONDARY_SHIFT): Define.
146 (ZDEBUG_TABLE_SIZE): Define.
147 (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
148 (final_next_secondary): New static variable if
149 BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
150 (elf_zlib_inflate_table): New static function.
151 (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
152 function to produce fixed Huffman table.
153 (elf_zlib_default_table): New static variable.
154 (elf_zlib_inflate): New static function.
155 (elf_zlib_verify_checksum): Likewise.
156 (elf_zlib_inflate_and_verify): Likewise.
157 (elf_uncompress_zdebug): Likewise.
158 (elf_uncompress_chdr): Likewise.
159 (backtrace_uncompress_zdebug): New extern function.
160 (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
161 sections, and uncompress them.
162 * internal.h (backtrace_compress_zdebug): Declare.
163 * ztest.c: New file.
164 * configure.ac: Check for -lz and check whether the linker
165 supports --compress-debug-sections.
166 * Makefile.am (ztest_SOURCES): New variable.
167 (ztest_CFLAGS, ztest_LDADD): New variables.
168 (check_PROGRAMS): Add ztest.
169 (ctestg_SOURCES): New variable.
170 (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
171 (ctesta_SOURCES): New variable.
172 (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
173 (check_PROGRAMS): Add ctestg and ctesta.
174 * configure, config.h.in, Makefile.in: Rebuild.
175
176 2017-09-22 Ian Lance Taylor <iant@golang.org>
177
178 PR sanitizer/77631
179 * configure.ac: Check for lstat and readlink.
180 * elf.c (lstat, readlink): Provide dummy versions if real versions
181 are not available.
182 * configure, config.h.in: Rebuild.
183
184 2017-09-21 Ian Lance Taylor <iant@google.com>
185
186 PR go/82284
187 * elf.c (backtrace_initialize): Set pd.exe_filename.
188
189 2017-09-20 Ian Lance Taylor <iant@golang.org>
190 Denis Khalikov <d.khalikov@partner.samsung.com>
191
192 PR sanitizer/77631
193 Support for external debug info.
194 * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
195 (S_ISLNK): Define if not defined.
196 (xstrnlen): Define if strnlen is not available.
197 (b_elf_note): Define type.
198 (NT_GNU_BUILD_ID): Define macro.
199 (elf_crc32, elf_crc32_file): New static functions.
200 (elf_is_symlink, elf_readlink): New static functions.
201 (elf_open_debugfile_by_buildid): New static function.
202 (elf_try_debugfile): New static function.
203 (elf_find_debugfile_by_debuglink): New static function.
204 (elf_open_debugfile_by_debuglink): New static function.
205 (elf_add): Add filename and debuginfo parameters. Adjust all
206 callers. Look for external debug info notes, and try to fetch
207 debug info from external file.
208 (struct phdr_data): Add exe_filename field.
209 (phdr_callback): Pass filename to elf_add.
210 (backtrace_initialize): Add filename parameter.
211 * internal.h (backtrace_initialize): Add filename parameter.
212 * fileline.c (fileline_initialize): Pass filename to
213 backtrace_initialize.
214 * pecoff.c (fileline_initialize): Add unused filename parameter.
215 * unknown.c (fileline_initialize): Likewise.
216 * xcoff.c (fileline_initialize): Likewise.
217 * configure.ac: Check for objcopy --add-gnu-debuglink.
218 * Makefile.am (dtest): New test target.
219 * configure, Makefile.in: Rebuild.
220
221 2017-09-12 Steve Ellcey <sellcey@cavium.com>
222
223 PR other/81096
224 * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
225 * Makefile.in: Regenerate.
226
227 2017-09-12 Steve Ellcey <sellcey@cavium.com>
228
229 PR other/81096
230 * libbacktrace/Makefile.in
231 (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
232
233 2017-08-02 David Edelsohn <dje.gcc@gmail.com>
234
235 PR bootstrap/81638
236 * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
237
238 2017-07-28 Tony Reix <tony.reix@atos.net>
239
240 * xcoff.c: Don't leak a file descriptor if an archive is malformed.
241
242 2017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
243
244 * fileline.c (fileline_initialize): Print pid_t as long.
245
246 2017-07-26 Tony Reix <tony.reix@atos.net>
247
248 * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
249 * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
250 * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
251 * configure, config.h.in: Regenerate.
252
253 2017-07-21 Tony Reix <tony.reix@atos.net>
254
255 * filetype.awk: Add AIX XCOFF type detection.
256 * configure.ac: Recognize xcoff format.
257 * Makefile.am (FORMAT_FILES): Add xcoff.c.
258 * fileline.c: Include <unistd.h>.
259 (fileline_initialize): Add case for AIX procfs.
260 * xcoff.c: New file.
261 * configure, Makefile.in: Rebuild.
262
263 2017-06-21 Richard Biener <rguenther@suse.de>
264
265 * configure.ac: Add AC_SYS_LARGEFILE.
266 * config.h.in: Regenerate.
267 * configure: Likewise.
268
269 2017-06-11 Ian Lance Taylor <iant@golang.org>
270
271 * elf.c (backtrace_initialize): Always set *fileline_fn.
272 * ttest.c: New file.
273 * btest.c: Move support functions into testlib.c. Change calls to
274 check to pass file name.
275 * testlib.c: New file, copied from (part of) btest.c.
276 * testlib.h: New file, declarations for testlib.c.
277 * edtest.c: Use testlib.h and testlib.c.
278 * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
279 * Makefile.am (btest_SOURCES): Add testlib.c.
280 (edtest_SOURCES): Likewise.
281 (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
282 (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
283 * configure, Makefile.in: Rebuild.
284
285 2017-05-19 Than McIntosh <thanm@google.com>
286
287 * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
288 (read_line_header): Don't allocate dirs if dirs_count == 0.
289 * edtest.c: New file.
290 * edtest2.c: New file.
291 * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
292 (check_PROGRAMS): Add edtest.
293 (edtest2_build.c, gen_edtest2_build): New targets.
294 * Makefile.in: Rebuild.
295
296 2017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk>
297
298 * btest.c (test5): Replace #ifdef guard with 'unused' attribute
299 to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
300
301 2017-01-01 Jakub Jelinek <jakub@redhat.com>
302
303 Update copyright years.
304
305 2016-11-15 Matthias Klose <doko@ubuntu.com>
306
307 * configure: Regenerate.
308
309 2016-09-11 Carlos Liam <carlos@aarzee.me>
310
311 * all: Remove meaningless trailing whitespace.
312
313 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
314
315 PR target/71161
316 * elf.c (phdr_callback) [__i386__]: Add
317 __attribute__((__force_align_arg_pointer__)).
318
319 2016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
320
321 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
322 avoid possible crash.
323 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
324 missing debug info anymore.
325
326 2016-02-06 John David Anglin <danglin@gcc.gnu.org>
327
328 * mmap.c (MAP_FAILED): Define if not defined.
329
330 2016-01-04 Jakub Jelinek <jakub@redhat.com>
331
332 Update copyright years.
333
334 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
335
336 * configure.ac: Specify that DJGPP do not have mmap
337 even when sys/mman.h exists.
338 * configure: Regenerate
339
340 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
341
342 PR libgfortran/68115
343 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
344 * configure: Regenerate.
345 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
346 to void.
347
348 2015-09-17 Ian Lance Taylor <iant@google.com>
349
350 * posix.c (backtrace_open): Cast second argument of open() to int.
351
352 2015-09-11 Ian Lance Taylor <iant@google.com>
353
354 * Makefile.am (backtrace.lo): Depend on internal.h.
355 (sort.lo, stest.lo): Add explicit dependencies.
356 * Makefile.in: Rebuild.
357
358 2015-09-09 Hans-Peter Nilsson <hp@axis.com>
359
360 * backtrace.c: #include <sys/types.h>.
361
362 2015-09-08 Ian Lance Taylor <iant@google.com>
363
364 PR other/67457
365 * backtrace.c: #include "internal.h".
366 (struct backtrace_data): Add can_alloc field.
367 (unwind): If can_alloc is false, don't try to get file/line
368 information.
369 (backtrace_full): Set can_alloc field in bdata.
370 * alloc.c (backtrace_alloc): Don't call error_callback if it is
371 NULL.
372 * mmap.c (backtrace_alloc): Likewise.
373 * internal.h: Update comments for backtrace_alloc and
374 backtrace_free.
375
376 2015-09-08 Ian Lance Taylor <iant@google.com>
377
378 PR other/67457
379 * mmap.c (backtrace_alloc): Correct test for mmap failure.
380
381 2015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
382
383 * configure.ac: For spu-*-* targets, set have_fcntl to no.
384 * configure: Regenerate.
385
386 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
387
388 * configure.ac: Remove [disable-shared] argument to LT_INIT.
389 Remove setting PIC_FLAG when building as target library.
390 * configure: Regenerate.
391
392 2015-08-26 Hans-Peter Nilsson <hp@axis.com>
393
394 * configure.ac: Only compile with -fPIC if the target
395 supports it.
396 * configure: Regenerate.
397
398 2015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
399
400 * configure.ac: Set have_mmap to no on spu-*-* targets.
401 * configure: Regenerate.
402
403 2015-08-13 Ian Lance Taylor <iant@google.com>
404
405 * dwarf.c (read_function_entry): Add vec_inlined parameter.
406 Change all callers.
407
408 2015-06-11 Martin Sebor <msebor@redhat.com>
409
410 PR sanitizer/65479
411 * dwarf.c (struct line): Add new field idx.
412 (line_compare): Use it.
413 (add_line): Set it.
414 (read_line_info): Reset it.
415
416 2015-05-29 Tristan Gingold <gingold@adacore.com>
417
418 * pecoff.c: New file.
419 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
420 * Makefile.in: Regenerate.
421 * filetype.awk: Detect pecoff.
422 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
423 Add pecoff.
424 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
425 true.
426 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
427 * configure: Regenerate.
428 * pecoff.c: New file.
429
430 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
431
432 * Makefile.in: Regenerated with automake-1.11.6.
433 * aclocal.m4: Likewise.
434 * configure: Likewise.
435
436 2015-01-24 Matthias Klose <doko@ubuntu.com>
437
438 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
439 * configure: Regenerate.
440
441 2015-01-05 Jakub Jelinek <jakub@redhat.com>
442
443 Update copyright years.
444
445 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
446
447 PR bootstrap/63784
448 * configure: Regenerated.
449
450 2014-11-11 David Malcolm <dmalcolm@redhat.com>
451
452 * ChangeLog.jit: New.
453
454 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
455
456 PR target/63610
457 * configure: Regenerate.
458
459 2014-10-23 Ian Lance Taylor <iant@google.com>
460
461 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
462 Fix to return void *.
463
464 2014-05-08 Ian Lance Taylor <iant@google.com>
465
466 * mmap.c (backtrace_free): If freeing a large aligned block of
467 memory, call munmap rather than holding onto it.
468 (backtrace_vector_grow): When growing a vector, double the number
469 of pages requested. When releasing the old version of a grown
470 vector, pass the correct size to backtrace_free.
471
472 2014-03-07 Ian Lance Taylor <iant@google.com>
473
474 * sort.c (backtrace_qsort): Use middle element as pivot.
475
476 2014-03-06 Ian Lance Taylor <iant@google.com>
477
478 * sort.c: New file.
479 * stest.c: New file.
480 * internal.h (backtrace_qsort): Declare.
481 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
482 (read_line_info, read_function_entry): Likewise.
483 (read_function_info, build_dwarf_data): Likewise.
484 * elf.c (elf_initialize_syminfo): Likewise.
485 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
486 (stest_SOURCES, stest_LDADD): Define.
487 (check_PROGRAMS): Add stest.
488
489 2014-02-07 Misty De Meo <misty@brew.sh>
490
491 PR target/58710
492 * configure.ac: Use AC_LINK_IFELSE in check for
493 _Unwind_GetIPInfo.
494 * configure: Regenerate.
495
496 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
497
498 Update copyright years
499
500 2013-12-06 Jakub Jelinek <jakub@redhat.com>
501
502 * elf.c (ET_DYN): Undefine and define again.
503 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
504 return early -1 without closing the descriptor.
505 (struct phdr_data): Add exe_descriptor.
506 (phdr_callback): If pd->exe_descriptor is not -1, for very first
507 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
508 otherwise backtrace_close the exe_descriptor if not -1. Adjust
509 call to elf_add.
510 (backtrace_initialize): Adjust call to elf_add. If it returns
511 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
512
513 2013-12-05 Ian Lance Taylor <iant@google.com>
514
515 * alloc.c (backtrace_vector_finish): Add error_callback and data
516 parameters. Call backtrace_vector_release. Return address base.
517 * mmap.c (backtrace_vector_finish): Add error_callback and data
518 parameters. Return address base.
519 * dwarf.c (read_function_info): Get new address base from
520 backtrace_vector_finish.
521 * internal.h (backtrace_vector_finish): Update declaration.
522
523 2013-11-27 Ian Lance Taylor <iant@google.com>
524
525 * dwarf.c (find_address_ranges): New static function, broken out
526 of build_address_map.
527 (build_address_map): Call it.
528 * btest.c (check): Check for missing filename or function, rather
529 than crashing.
530 (f3): Check that enough frames were returned.
531
532 2013-11-19 Jakub Jelinek <jakub@redhat.com>
533
534 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
535 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
536 last argument.
537 * btest.c (struct symdata): Add size field.
538 (callback_three): Add symsize argument. Copy it to the data->size
539 field.
540 (f23): Set symdata.size to 0.
541 (test5): Likewise. If sizeof (int) > 1, lookup address of
542 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
543 values.
544
545 * atomic.c: Include sys/types.h.
546
547 2013-11-18 Ian Lance Taylor <iant@google.com>
548
549 * configure.ac: Check for support of __atomic extensions.
550 * internal.h: Declare or #define atomic functions for use in
551 backtrace code.
552 * atomic.c: New file.
553 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
554 (dwarf_fileline, backtrace_dwarf_add): Likewise.
555 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
556 (backtrace_initialize): Likewise.
557 * fileline.c (fileline_initialize): Likewise.
558 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
559 * configure, config.h.in, Makefile.in: Rebuild.
560
561 2013-11-18 Jakub Jelinek <jakub@redhat.com>
562
563 * elf.c (SHN_UNDEF): Define.
564 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
565 with st_shndx == SHN_UNDEF. Add base_address to address fields.
566 (elf_add): Adjust caller.
567
568 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
569
570 2013-11-16 Ian Lance Taylor <iant@google.com>
571
572 * backtrace.h (backtrace_create_state): Correct comment about
573 threading.
574
575 2013-11-15 Ian Lance Taylor <iant@google.com>
576
577 * backtrace.h (backtrace_syminfo): Update comment and parameter
578 name to take any address, not just a PC value.
579 * elf.c (STT_OBJECT): Define.
580 (elf_nosyms): Rename parameter pc to addr.
581 (elf_symbol_search): Rename local variable pc to addr.
582 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
583 (elf_syminfo): Rename parameter pc to addr.
584 * btest.c (global): New global variable.
585 (test5): New test.
586 (main): Call test5.
587
588 2013-10-17 Ian Lance Taylor <iant@google.com>
589
590 * elf.c (elf_add): Don't get the wrong offsets if a debug section
591 is missing.
592
593 2013-10-15 David Malcolm <dmalcolm@redhat.com>
594
595 * configure.ac: Add --enable-host-shared, setting up
596 pre-existing PIC_FLAG variable within Makefile.am et al.
597 * configure: Regenerate.
598
599 2013-09-20 Alan Modra <amodra@gmail.com>
600
601 * configure: Regenerate.
602
603 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
604
605 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
606
607 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
608
609 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
610 dl_iterate_phdr callbacks.
611
612 2013-03-25 Ian Lance Taylor <iant@google.com>
613
614 * alloc.c: #include <sys/types.h>.
615 * mmap.c: Likewise.
616
617 2013-01-31 Ian Lance Taylor <iant@google.com>
618
619 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
620 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
621
622 2013-01-25 Jakub Jelinek <jakub@redhat.com>
623
624 PR other/56076
625 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
626 attribute was not seen.
627
628 2013-01-16 Ian Lance Taylor <iant@google.com>
629
630 * dwarf.c (struct unit): Add filename and abs_filename fields.
631 (build_address_map): Set new fields when reading unit.
632 (dwarf_lookup_pc): If we don't find an entry in the line table,
633 just return the main file name.
634
635 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
636
637 Update copyright years.
638
639 2013-01-01 Ian Lance Taylor <iant@google.com>
640
641 PR bootstrap/54834
642 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
643 $(MULTIBUILDTOP)/../../gcc/include.
644 * Makefile.in: Rebuild.
645
646 2013-01-01 Ian Lance Taylor <iant@google.com>
647
648 PR other/55536
649 * mmap.c (backtrace_alloc): Don't call sync functions if not
650 threaded.
651 (backtrace_free): Likewise.
652
653 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
654
655 * mmapio.c: Define MAP_FAILED if not defined.
656
657 2012-12-11 Jakub Jelinek <jakub@redhat.com>
658
659 PR bootstrap/54926
660 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
661 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
662 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
663 accepts it.
664 * Makefile.in: Regenerated.
665 * configure: Regenerated.
666
667 2012-12-07 Jakub Jelinek <jakub@redhat.com>
668
669 PR bootstrap/54926
670 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
671 * Makefile.in: Regenerated.
672
673 2012-11-20 Ian Lance Taylor <iant@google.com>
674
675 * dwarf.c (read_attribute): Always clear val.
676
677 2012-11-13 Ian Lance Taylor <iant@google.com>
678
679 PR other/55312
680 * configure.ac: Only add -Werror if building a target library.
681 * configure: Rebuild.
682
683 2012-11-12 Ian Lance Taylor <iant@google.com>
684 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
685 Gerald Pfeifer <gerald@pfeifer.com>
686
687 * configure.ac: Check for getexecname.
688 * fileline.c: #include <errno.h>. Define getexecname if not
689 available.
690 (fileline_initialize): Try to find the executable in a few
691 different ways.
692 * print.c (error_callback): Only print the filename if it came
693 from the backtrace state.
694 * configure, config.h.in: Rebuild.
695
696 2012-10-29 Ian Lance Taylor <iant@google.com>
697
698 * mmap.c (backtrace_vector_release): Correct last patch: add
699 aligned, not size.
700
701 2012-10-29 Ian Lance Taylor <iant@google.com>
702
703 * mmap.c (backtrace_vector_release): Make sure freed block is
704 aligned on 8-byte boundary.
705
706 2012-10-26 Ian Lance Taylor <iant@google.com>
707
708 PR other/55087
709 * posix.c (backtrace_open): Add does_not_exist parameter.
710 * elf.c (phdr_callback): Do not warn if shared library could not
711 be opened.
712 * fileline.c (fileline_initialize): Update calls to
713 backtrace_open.
714 * internal.h (backtrace_open): Update declaration.
715
716 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
717
718 PR target/55061
719 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
720 * configure: Regenerate.
721
722 2012-10-24 Ian Lance Taylor <iant@google.com>
723
724 PR target/55061
725 * configure.ac: Check whether -funwind-tables option works.
726 * configure: Rebuild.
727
728 2012-10-11 Ian Lance Taylor <iant@google.com>
729
730 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
731 * configure: Rebuild.
732
733 2012-10-10 Ian Lance Taylor <iant@google.com>
734
735 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
736 lower case.
737
738 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
739
740 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
741
742 2012-10-09 Ian Lance Taylor <iant@google.com>
743
744 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
745 (backtrace_dwarf_add): Likewise.
746
747 2012-10-09 Ian Lance Taylor <iant@google.com>
748
749 Add support for tracing through shared libraries.
750 * configure.ac: Check for link.h and dl_iterate_phdr.
751 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
752 ELF macros before #defining them.
753 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
754 dl_iterate_phdr.
755 (struct elf_syminfo_data): Add next field.
756 (elf_initialize_syminfo): Initialize next field.
757 (elf_add_syminfo_data): New static function.
758 (elf_add): New static function, broken out of
759 backtrace_initialize. Call backtrace_dwarf_add instead of
760 backtrace_dwarf_initialize.
761 (struct phdr_data): Define.
762 (phdr_callback): New static function.
763 (backtrace_initialize): Call elf_add.
764 * dwarf.c (struct dwarf_data): Add next and base_address fields.
765 (add_unit_addr): Add base_address parameter. Change all callers.
766 (add_unit_ranges, build_address_map): Likewise.
767 (add_line): Add ddata parameter. Change all callers.
768 (read_line_program, add_function_range): Likewise.
769 (dwarf_lookup_pc): New static function, broken out of
770 dwarf_fileline.
771 (dwarf_fileline): Call dwarf_lookup_pc.
772 (build_dwarf_data): New static function.
773 (backtrace_dwarf_add): New function.
774 (backtrace_dwarf_initialize): Remove.
775 * internal.h (backtrace_dwarf_initialize): Don't declare.
776 (backtrace_dwarf_add): Declare.
777 * configure, config.h.in: Rebuild.
778
779 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
780
781 * btest.c (f23): Avoid uninitialized variable warning.
782
783 2012-10-04 Ian Lance Taylor <iant@google.com>
784
785 * dwarf.c: If the system header files do not declare strnlen,
786 provide our own version.
787
788 2012-10-03 Ian Lance Taylor <iant@google.com>
789
790 * dwarf.c (read_uleb128): Fix overflow test.
791 (read_sleb128): Likewise.
792 (build_address_map): Don't change unit_buf.start.
793
794 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
795
796 PR other/54761
797 * configure.ac (EXTRA_FLAGS): New.
798 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
799 * configure, Makefile.in: Regenerate.
800
801 2012-09-29 Ian Lance Taylor <iant@google.com>
802
803 PR other/54749
804 * fileline.c (fileline_initialize): Pass errnum as -1 when
805 reporting that we could not read executable information after a
806 previous failure.
807
808 2012-09-27 Ian Lance Taylor <iant@google.com>
809
810 PR bootstrap/54732
811 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
812 * Makefile.am: Add dependencies for all objects.
813 * configure, aclocal.m4, Makefile.in: Rebuild.
814
815 2012-09-27 Ian Lance Taylor <iant@google.com>
816
817 PR other/54726
818 * elf.c (backtrace_initialize): Set *fileln_fn, not
819 state->fileln_fn.
820
821 2012-09-19 Ian Lance Taylor <iant@google.com>
822
823 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
824 as a target library.
825 * configure: Rebuild.
826
827 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
828 Ian Lance Taylor <iant@google.com>
829
830 * configure.ac (GCC_HEADER_STDINT): Invoke.
831 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
832 * btest.c: Don't include <stdint.h>.
833 * dwarf.c: Likewise.
834 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
835
836 2012-09-18 Ian Lance Taylor <iant@google.com>
837
838 PR bootstrap/54623
839 * Makefile.am (AM_CPPFLAGS): Define.
840 (AM_CFLAGS): Remove -I options.
841 * Makefile.in: Rebuild.
842
843 2012-09-18 Ian Lance Taylor <iant@google.com>
844
845 * posix.c (O_BINARY): Define if not defined.
846 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
847 HAVE_FCNTL is defined.
848 * configure.ac: Test for the fcntl function.
849 * configure, config.h.in: Rebuild.
850
851 2012-09-18 Ian Lance Taylor <iant@google.com>
852
853 * btest.c (test1, test2, test3, test4): Add the unused attribute.
854
855 2012-09-18 Ian Lance Taylor <iant@google.com>
856
857 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
858
859 2012-09-18 Ian Lance Taylor <iant@google.com>
860
861 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
862 * mmapio.c: Don't define _GNU_SOURCE.
863 * configure, config.h.in: Rebuild.
864
865 2012-09-18 Ian Lance Taylor <iant@google.com>
866
867 * configure.ac: Check whether strnlen is declared.
868 * dwarf.c: Declare strnlen if not declared.
869 * configure, config.h.in: Rebuild.
870
871 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
872
873 * fileline.c: Include <stdlib.h>.
874 * mmap.c: Likewise.
875
876 2012-09-17 Ian Lance Taylor <iant@google.com>
877
878 PR bootstrap/54611
879 * nounwind.c (backtrace_full): Rename from backtrace. Add state
880 parameter.
881
882 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
883
884 PR bootstrap/54611
885 * nounwind.c (backtrace_simple): Add state parameter.
886
887 2012-09-17 Ian Lance Taylor <iant@google.com>
888
889 PR bootstrap/54609
890 * unknown.c (unknown_fileline): Add state parameter, remove
891 fileline_data parameter, name error_callback parameter.
892 (backtrace_initialize): Add state parameter.
893
894 2012-09-17 Ian Lance Taylor <iant@google.com>
895
896 * Initial implementation.
897 \f
898 Copyright (C) 2012-2018 Free Software Foundation, Inc.
899
900 Copying and distribution of this file, with or without modification,
901 are permitted in any medium without royalty provided the copyright
902 notice and this notice are preserved.