Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: binutils/gold/common.cc

Issue 3018030: [binutils] Bump binutils to 2.20.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « binutils/gold/arm.cc ('k') | binutils/gold/copy-relocs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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.
OLDNEW
« no previous file with comments | « binutils/gold/arm.cc ('k') | binutils/gold/copy-relocs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698