OLD | NEW |
1 // common.cc -- handle common symbols for gold | 1 // common.cc -- handle common symbols for gold |
2 | 2 |
3 // Copyright 2006, 2007, 2008 Free Software Foundation, Inc. | 3 // Copyright 2006, 2007, 2008 Free Software Foundation, Inc. |
4 // Written by Ian Lance Taylor <iant@google.com>. | 4 // Written by Ian Lance Taylor <iant@google.com>. |
5 | 5 |
6 // This file is part of gold. | 6 // This file is part of gold. |
7 | 7 |
8 // This program is free software; you can redistribute it and/or modify | 8 // This program is free software; you can redistribute it and/or modify |
9 // it under the terms of the GNU General Public License as published by | 9 // it under the terms of the GNU General Public License as published by |
10 // the Free Software Foundation; either version 3 of the License, or | 10 // the Free Software Foundation; either version 3 of the License, or |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 name = ".lbss"; | 232 name = ".lbss"; |
233 ds_name = "** large common"; | 233 ds_name = "** large common"; |
234 break; | 234 break; |
235 default: | 235 default: |
236 gold_unreachable(); | 236 gold_unreachable(); |
237 } | 237 } |
238 | 238 |
239 Output_data_space *poc = new Output_data_space(addralign, ds_name); | 239 Output_data_space *poc = new Output_data_space(addralign, ds_name); |
240 Output_section *os = layout->add_output_section_data(name, | 240 Output_section *os = layout->add_output_section_data(name, |
241 elfcpp::SHT_NOBITS, | 241 elfcpp::SHT_NOBITS, |
242 » » » » » » flags, poc); | 242 » » » » » » flags, poc, false); |
243 if (os != NULL) | 243 if (os != NULL) |
244 { | 244 { |
245 if (commons_section_type == COMMONS_SMALL) | 245 if (commons_section_type == COMMONS_SMALL) |
246 os->set_is_small_section(); | 246 os->set_is_small_section(); |
247 else if (commons_section_type == COMMONS_LARGE) | 247 else if (commons_section_type == COMMONS_LARGE) |
248 os->set_is_large_section(); | 248 os->set_is_large_section(); |
249 } | 249 } |
250 | 250 |
251 // Allocate them all. | 251 // Allocate them all. |
252 | 252 |
(...skipping 17 matching lines...) Expand all Loading... |
270 ssym->allocate_common(poc, off); | 270 ssym->allocate_common(poc, off); |
271 off += ssym->symsize(); | 271 off += ssym->symsize(); |
272 } | 272 } |
273 | 273 |
274 poc->set_current_data_size(off); | 274 poc->set_current_data_size(off); |
275 | 275 |
276 commons->clear(); | 276 commons->clear(); |
277 } | 277 } |
278 | 278 |
279 } // End namespace gold. | 279 } // End namespace gold. |
OLD | NEW |