OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [gold/] [gold.cc] - Diff between revs 148 and 159

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 148 Rev 159
Line 1... Line 1...
// gold.cc -- main linker functions
// gold.cc -- main linker functions
 
 
// Copyright 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
// Copyright 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// Written by Ian Lance Taylor <iant@google.com>.
 
 
// This file is part of gold.
// This file is part of gold.
 
 
// This program is free software; you can redistribute it and/or modify
// This program is free software; you can redistribute it and/or modify
Line 28... Line 28...
#include <unistd.h>
#include <unistd.h>
#include <algorithm>
#include <algorithm>
#include "libiberty.h"
#include "libiberty.h"
 
 
#include "options.h"
#include "options.h"
 
#include "target-select.h"
#include "debug.h"
#include "debug.h"
#include "workqueue.h"
#include "workqueue.h"
#include "dirsearch.h"
#include "dirsearch.h"
#include "readsyms.h"
#include "readsyms.h"
#include "symtab.h"
#include "symtab.h"
Line 173... Line 174...
                    Workqueue* workqueue, Input_objects* input_objects,
                    Workqueue* workqueue, Input_objects* input_objects,
                    Symbol_table* symtab, Layout* layout, Mapfile* mapfile)
                    Symbol_table* symtab, Layout* layout, Mapfile* mapfile)
{
{
  if (cmdline.begin() == cmdline.end())
  if (cmdline.begin() == cmdline.end())
    {
    {
 
      bool is_ok = false;
      if (options.printed_version())
      if (options.printed_version())
 
        is_ok = true;
 
      if (options.print_output_format())
 
        {
 
          print_output_format();
 
          is_ok = true;
 
        }
 
      if (is_ok)
        gold_exit(GOLD_OK);
        gold_exit(GOLD_OK);
      gold_fatal(_("no input files"));
      gold_fatal(_("no input files"));
    }
    }
 
 
  int thread_count = options.thread_count_initial();
  int thread_count = options.thread_count_initial();

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.