HomeFreeBSD

After r364423, which ensures the callbacks that dl_iterate_phdr(3)

Description

After r364423, which ensures the callbacks that dl_iterate_phdr(3)
performs are protected by an exclusive lock, even for statically linked
programs, it is safe to re-enable libunwind's FrameHeaderCache, which I
temporarily disabled in r364263.

Meanwhile upstream has also used the _LIBUNWIND_USE_FRAME_HEADER_CACHE
for this purpose, so the only thing needed is to add this as a
compile-time command line flag.

While here, reformat the CFLAGS lines a little bit.

MFC after: 6 weeks
X-MFC-With: r364284, r364423

(cherry picked from commit cc0b8830287282c96e26cd826383dc4794eb1268)

Details

Provenance
dimAuthored on Aug 25 2020, 8:07 PM
Parents
rG56de5aeb6870: After r364753, there should be no need to suppress -Watomic-alignment
Branches
Unknown
Tags
Unknown