projects
/
external
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Supported Tizen version parsing and verification
[external/binutils.git]
/
gold
/
target-select.cc
diff --git
a/gold/target-select.cc
b/gold/target-select.cc
index
9370a87
..
c8a0e0b
100644
(file)
--- a/
gold/target-select.cc
+++ b/
gold/target-select.cc
@@
-1,6
+1,6
@@
// target-select.cc -- select a target for an object file
// target-select.cc -- select a target for an object file
-// Copyright
2006, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
+// Copyright
(C) 2006-2019
Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
// 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*
// 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())
{
{
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))
{
&& 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;
}
if (ret != NULL)
return ret;
}