https://sourceware.org/bugzilla/show_bug.cgi?id=31447
--- Comment #4 from Di Chen ---
@mjw
I have function dwelf_relocation_debug_sections() added in libdwelf.a.
```
$ pwd
/home/dichen/elfutils
$ eu-readelf -s libdwelf/libdwelf.a | grep dwelf_relocation_debug_sections
libdwelf/libdwelf.a(dwelf_
https://sourceware.org/bugzilla/show_bug.cgi?id=31447
Aaron Merey changed:
What|Removed |Added
CC||amerey at redhat dot com
--- Comment #5
From: Heather McIntyre
Apply locking during __libelf_readall.
Signed-off-by: Heather S. McIntyre
Signed-off-by: Aaron Merey
Signed-off-by: Mark Wielaard
---
v3 changes:
Update comments and change order or child lock aquisition.
libelf/common.h | 24 ++--
libelf/el
From: Heather McIntyre
* libelf/elf_cntl.c (elf_cntl): Move rwlock_wrlock, rwlock_unlock,
inside case switch statements. Remove unnecessary early return.
Signed-off-by: Heather S. McIntyre
Signed-off-by: Aaron Merey
Signed-off-by: Mark Wielaard
---
v3 changes:
Remove unneces
From: Heather McIntyre
Add struct search_tree to hold tree root and lock. Add new eu_t*
functions for ensuring synchronized tree access.
Replace tsearch, tfind, etc with eu_t* equivalents.
lib:
* Makefile.am (libeu_a_SOURCES): Add eu-search.c.
(noinst_HEADERS): Add eu-search.h
From: Heather McIntyre
Add dwarf_lock for Dwarf as well as abbrev_lock for Dwarf_CU.
* libdw/dwarf_begin_elf.c (dwarf_begin_elf): Init dwarf_lock.
* libdw/dwarf_end.c (cu_free): Free abbrev_lock.
(dwarf_end): Free dwarf_lock.
* libdw/libdwP.h (struct Dwarf): Defin
From: Heather McIntyre
* libdw/dwarf_getalt.c (dwarf_getalt): Add locking.
* libdw/dwarf_setalt.c (dwarf_setalt): Ditto.
Signed-off-by: Heather S. McIntyre
Signed-off-by: Aaron Merey
Signed-off-by: Mark Wielaard
---
v3 changes:
Check for NULL argument before acquiring lock.
From: Heather McIntyre
* libdw/dwarf_formref_die.c (dwarf_formref_die): Add locking
around call to __libdw_intern_next_unit.
* libdw/libdwP.h (__libdw_dieabbrev): Add locking.
Signed-off-by: Heather S. McIntyre
Signed-off-by: Aaron Merey
Signed-off-by: Mark Wielaard
From: Heather McIntyre
* libdw/libdwP.h (struct Dwarf_CU): Add split_lock.
* libdw/libdw_find_split_unit.c (__libdw_find_split_unit):
Add locking.
Signed-off-by: Heather S. McIntyre
Signed-off-by: Aaron Merey
Signed-off-by: Mark Wielaard
---
v3 changes:
Move Dwarf s
From: Heather McIntyre
* libdw/libdw_findcu.c (__libdw_findcu): Add locking.
Signed-off-by: Heather S. McIntyre
Signed-off-by: Aaron Merey
Signed-off-by: Mark Wielaard
---
v3 changes:
Fix indentation and move rwlock_init calls to other patches in this
series.
libdw/libdw_findcu.c |
From: Heather McIntyre
* configure.ac (--enable-thread-safety): Remove experimental
warning.
Signed-off-by: Heather S. McIntyre
Signed-off-by: Aaron Merey
Signed-off-by: Mark Wielaard
---
No changes between v2 and v3.
PR31967 (datarace in elf_compress[_gnu]) was recently file
From: Heather McIntyre
* tests/eu_search_cfi.c: New file.
* tests/eu_search_die.c: New file.
* tests/eu_search_lines.c: New file.
* tests/eu_search_macros.c: New file.
* tests/run-eu-search-tests.sh: New test.
* tests/Makefile.am: Add USE_LOCKS cond
12 matches
Mail list logo