aboutsummaryrefslogtreecommitdiff
path: root/gold/ehframe.h
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2013-11-14 13:15:06 -0800
committerCary Coutant <ccoutant@google.com>2013-11-14 13:15:55 -0800
commitcafdd5697b0e6c1f6344caee64f798e7e72424d4 (patch)
tree6c14132b43c58511208d2d81982662a4172cf6e8 /gold/ehframe.h
parent8fe1b6533885f19680a2fbd827cb677c2e3c68ac (diff)
downloadgdb-cafdd5697b0e6c1f6344caee64f798e7e72424d4.zip
gdb-cafdd5697b0e6c1f6344caee64f798e7e72424d4.tar.gz
gdb-cafdd5697b0e6c1f6344caee64f798e7e72424d4.tar.bz2
Revert "Fix race condition while building EH frame header."
This reverts commit 7cdd7d57e6fa3932eb63aa785ae0e3fa837aab20.
Diffstat (limited to 'gold/ehframe.h')
-rw-r--r--gold/ehframe.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/gold/ehframe.h b/gold/ehframe.h
index d5ac668..8aab8b8 100644
--- a/gold/ehframe.h
+++ b/gold/ehframe.h
@@ -60,10 +60,7 @@ class Eh_frame_hdr : public Output_section_data
record_fde(section_offset_type fde_offset, unsigned char fde_encoding)
{
if (!this->any_unrecognized_eh_frame_sections_)
- {
- Hold_lock(*this->lock_);
- this->fde_offsets_.push_back(std::make_pair(fde_offset, fde_encoding));
- }
+ this->fde_offsets_.push_back(std::make_pair(fde_offset, fde_encoding));
}
protected:
@@ -160,8 +157,6 @@ class Eh_frame_hdr : public Output_section_data
// Whether we found any .eh_frame sections which we could not
// process.
bool any_unrecognized_eh_frame_sections_;
- // Lock held while updating fde_offsets_.
- Lock* lock_;
};
// This class holds an FDE.