diff options
author | Ian Lance Taylor <ian@airs.com> | 2010-02-23 17:45:38 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2010-02-23 17:45:38 +0000 |
commit | ca419a6f33e27d59324ba74c4655e551a381aad5 (patch) | |
tree | 71a934c1494b76fcad34218c010af2a09d755396 /gold/arm.cc | |
parent | 135b9c78b2e0da945e37dcd9e1206c6715854d44 (diff) | |
download | gdb-ca419a6f33e27d59324ba74c4655e551a381aad5.zip gdb-ca419a6f33e27d59324ba74c4655e551a381aad5.tar.gz gdb-ca419a6f33e27d59324ba74c4655e551a381aad5.tar.bz2 |
* arm.cc (Target_arm::do_finalize_sections): Create attribute
section if it does not already exist.
* attributes.cc (Attributes_section_data::Attributes_section_data):
Don't crash if size is zero.
Diffstat (limited to 'gold/arm.cc')
-rw-r--r-- | gold/arm.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/arm.cc b/gold/arm.cc index bc5557a..b8141e0 100644 --- a/gold/arm.cc +++ b/gold/arm.cc @@ -7554,6 +7554,11 @@ Target_arm<big_endian>::do_finalize_sections( const Input_objects* input_objects, Symbol_table* symtab) { + // Create an empty uninitialized attribute section if we still don't have it + // at this moment. + if (this->attributes_section_data_ == NULL) + this->attributes_section_data_ = new Attributes_section_data(NULL, 0); + // Merge processor-specific flags. for (Input_objects::Relobj_iterator p = input_objects->relobj_begin(); p != input_objects->relobj_end(); |