Merge branch 'master' into merge-job
[deliverable/binutils-gdb.git] / gold / target-select.cc
index 9370a8714ab6a027160d343de24aecef8598cd82..f47d79c6c19f4ac93c80efbbec3afac28f76891f 100644 (file)
@@ -1,6 +1,6 @@
 // target-select.cc -- select a target for an object file
 
-// Copyright 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+// Copyright (C) 2006-2020 Free Software Foundation, Inc.
 // Written by Ian Lance Taylor <iant@google.com>.
 
 // This file is part of gold.
@@ -98,8 +98,9 @@ Target_selector::do_target_bfd_name(const Target* target)
 // Find the target for an ELF file.
 
 Target*
-select_target(int machine, int size, bool is_big_endian, int osabi,
-             int abiversion)
+select_target(Input_file* input_file, off_t offset,
+             int machine, int size, bool is_big_endian,
+             int osabi, int abiversion)
 {
   for (Target_selector* p = target_selectors; p != NULL; p = p->next())
     {
@@ -108,7 +109,8 @@ select_target(int machine, int size, bool is_big_endian, int osabi,
          && p->get_size() == size
          && (p->is_big_endian() ? is_big_endian : !is_big_endian))
        {
-         Target* ret = p->recognize(machine, osabi, abiversion);
+         Target* ret = p->recognize(input_file, offset,
+                                    machine, osabi, abiversion);
          if (ret != NULL)
            return ret;
        }
This page took 0.02314 seconds and 4 git commands to generate.