Fix race condition while building EH frame header.
authorCary Coutant <ccoutant@google.com>
Fri, 11 Oct 2013 21:12:16 +0000 (14:12 -0700)
committerCary Coutant <ccoutant@google.com>
Thu, 14 Nov 2013 18:33:36 +0000 (10:33 -0800)
commit7cdd7d57e6fa3932eb63aa785ae0e3fa837aab20
tree4e130cceefd5f2295ed39b574a4d43bea1567f23
parent918229560ce9db307532592047066eac0674190d
Fix race condition while building EH frame header.

gold/
PR gold/14860
* ehframe.cc (Eh_frame_hdr::Eh_frame_hdr): Initialize lock_.
(Ehframe_hdr::set_final_data_size): Allocate a Lock.
* ehframe.h (Eh_frame_hdr::record_fde): Hold the lock while
updating fde_offsets_.
(Eh_frame_hdr::lock_): New data member.
gold/ChangeLog
gold/ehframe.cc
gold/ehframe.h